/* CSS Variables for Light Theme (Default) */
:root {
  /* Base colors */
  --bg-primary: #ffffff;
  --bg-secondary: #F9F7F5;
  --bg-tertiary: #F3F0ED;
  --bg-footer: #E2DBD4;
  --bg-navbar: #fffffff6;
  --bg-mobile-navbar: #fffffff6;
  --bg-ceo: #f5f5f5;
  --bg-transparent: transparent;
  
  /* Text colors */
  --text-primary: #333333;
  --text-secondary: #333;
  --text-white: #ffffff;
  --text-placeholder: #585858;
  --text-light: #f0f0f0;
  
  /* Accent and brand colors */
  --accent-primary: #cd9933;
  --accent-hover: #cd9a33ca;
  --accent-gold: #e3a83b;
  --accent-star: #cd9a33ca;
  
  /* Border and shadow */
  --border-primary: #333333;
  --border-light: #eee;
  --shadow-navbar: 0 2px 4px rgba(0, 0, 0, 0.037);
  --shadow-mobile: 0 2px 8px rgba(0,0,0,0.07);
  
  /* Form and input colors */
  --input-bg-light: rgba(255, 255, 255, 0.152);
  --input-bg-medium: rgba(255, 255, 255, 0.27);
  --input-bg-heavy: rgba(255, 255, 255, 0.222);
  
  /* Interactive elements */
  --carousel-bg: rgba(0, 0, 0, 0.089);
  --dot-bg: rgba(0, 0, 0, 0.5);
  
  /* Set color scheme */
  color-scheme: light dark;
}

/* Dark Mode - Explicitly use Light Theme Values */
@media (prefers-color-scheme: dark) {
  :root {
    /* Keep ALL colors exactly the same as light mode */
    --bg-primary: #ffffff;
    --bg-secondary: #F9F7F5;
    --bg-tertiary: #F3F0ED;
    --bg-footer: #E2DBD4;
    --bg-navbar: #fffffff6;
    --bg-mobile-navbar: #fffffff6;
    --bg-ceo: #f5f5f5;
    --bg-transparent: transparent;
    
    --text-primary: #333333;
    --text-secondary: #333;
    --text-white: #ffffff;
    --text-placeholder: #585858;
    --text-light: #f0f0f0;
    
    --accent-primary: #cd9933;
    --accent-hover: #cd9a33ca;
    --accent-gold: #e3a83b;
    --accent-star: #cd9a33ca;
    
    --border-primary: #333333;
    --border-light: #eee;
    --shadow-navbar: 0 2px 4px rgba(0, 0, 0, 0.037);
    --shadow-mobile: 0 2px 8px rgba(0,0,0,0.07);
    
    --input-bg-light: rgba(255, 255, 255, 0.152);
    --input-bg-medium: rgba(255, 255, 255, 0.27);
    --input-bg-heavy: rgba(255, 255, 255, 0.222);
    
    --carousel-bg: rgba(0, 0, 0, 0.089);
    --dot-bg: rgba(0, 0, 0, 0.5);
  }
  
  /* Force base elements to use light theme colors */
  html {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
  }
  
  body {
    background-color: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
  }
  
  /* Typography elements */
  h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
  }
  
  p, span, div, li, label {
    color: var(--text-primary) !important;
  }
  
  /* Links */
  a {
    color: var(--text-secondary) !important;
  }
  
  a:hover {
    color: var(--accent-primary) !important;
  }
  
  /* Form elements */
  input, textarea, select {
    background-color: var(--input-bg-light) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
  }
  
  input::placeholder, textarea::placeholder {
    color: var(--text-placeholder) !important;
  }
  
  /* Buttons */
  button {
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
  }
  
  .btn, .contacto .btn {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
  }
  
  .btn:hover, .contacto .btn:hover {
    background-color: var(--accent-hover) !important;
    color: var(--text-white) !important;
  }
  
  .download-btn {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
  }
  
  .download-btn:hover {
    background-color: var(--accent-hover) !important;
    color: var(--text-white) !important;
  }
  
  /* Layout containers */
  .navbar {
    background-color: var(--bg-navbar) !important;
    box-shadow: var(--shadow-navbar) !important;
  }
  
  .mobile-navbar {
    background-color: var(--bg-mobile-navbar) !important;
    box-shadow: var(--shadow-mobile) !important;
  }
  
  .container-sm {
    background-color: var(--bg-tertiary) !important;
  }
  
  .Serviços-p .container-b, 
  .Resultados-p .container-b,
  .Serviços-E .container-b, 
  .Serviços-D .container-b {
    background-color: var(--bg-secondary) !important;
  }
  
  .CEO {
    background-color: var(--bg-ceo) !important;
  }
  
  .container-c {
    background-color: var(--bg-secondary) !important;
  }
  
  .footer {
    background-color: var(--bg-footer) !important;
  }
  
  .conteiner-title, .conteiner-title-R {
    background-color: var(--bg-footer) !important;
  }
  
  /* Specific form inputs with custom backgrounds */
  .input-group input {
    background-color: var(--input-bg-light) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
  }
  
  .form-section .main-input {
    background-color: var(--input-bg-medium) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
  }
  
  .form-section .description {
    background-color: var(--input-bg-heavy) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
  }
  
  /* Interactive elements */
  .carousel-buttons button, .carousel-g-buttons button {
    background-color: var(--carousel-bg) !important;
    color: var(--text-white) !important;
  }
  
  .carousel-dots .dot, .carousel-g-dots .dot-g {
    background-color: var(--dot-bg) !important;
  }
  
  .carousel-dots .dot.active, .carousel-g-dots .dot-g.active {
    background-color: var(--accent-primary) !important;
  }
  
  /* Stars and icons */
  .star i, .Testemunhos .carousel-t .star i {
    color: var(--accent-star) !important;
  }
  
  .social-icons a {
    color: black !important;
  }
  
  .social-icons a:hover, .footer-right a:hover {
    color: var(--accent-gold) !important;
  }
  
  /* Specific hover states for links */
  .Intro ul li:nth-child(3) a:hover,
  .texto ul li:nth-child(3) a:hover {
    color: var(--accent-hover) !important;
  }
  
  .Testemunhos .link a:hover {
    color: var(--accent-hover) !important;
  }
  
  /* Mobile menu specific */
  .mobile-navbar .mobile-menu {
    background: var(--bg-primary) !important;
    box-shadow: var(--shadow-mobile) !important;
  }
  
  .mobile-navbar .mobile-menu ul li a {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-light) !important;
  }
  
  .mobile-navbar .mobile-menu ul li a:hover {
    background: var(--bg-tertiary) !important;
    color: var(--accent-primary) !important;
  }
  
  /* Prevent image inversion */
  img, picture, video, svg, canvas {
    filter: none !important;
  }
  
  /* Override any browser autofill styling */
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
  }
  
  /* EXCEPTIONS - Elements that should maintain their original colors in dark mode */
  
  /* Keep overlay text white on hero images */
  .horizontal-image .overlay-text,
  .horizontal-image-ceo .overlay-text {
    color: white !important;
  }
  
  .horizontal-image .overlay-text .autor,
  .horizontal-image-ceo .overlay-text .autor {
    color: #f0f0f0 !important;
  }
  
  /* Keep button backgrounds white */
  .btn, .contacto .btn {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
  }
  
  .btn:hover, .contacto .btn:hover {
    background-color: var(--accent-hover) !important;
    color: var(--text-white) !important;
  }
  
  /* DARK MODE ONLY: Clean approach - Only give hover effects to navigation elements */
  /* Remove all default hover effects, then selectively add them back */
  
  /* Disable transitions for most elements, but preserve carousel animations and scroll animations */
  *:not(.carousel-images):not(.carousel-g-images):not(.carousel-t ul):not(.Intro):not(.Best-quality):not(.Best-quality .Point-1):not(.Best-quality .Point-2):not(.Best-quality .Point-3):not(.Testemunhos):not(.description2):not(.Serviços-E):not(.Serviços-D):not(.galeria):not(.mobile-carousel) {
    transition: none !important;
  }
  
  a:hover, a:focus, a:active {
    color: var(--text-primary) !important;
    background-color: transparent !important;
  }
  
  /* ONLY allow hover effects on actual navigation buttons */
  .navbar ul li a:hover {
    color: var(--accent-primary) !important;
  }
  
  .Intro ul li:nth-child(3) a:hover {
    color: var(--accent-primary) !important;
  }
  
  .texto ul li:nth-child(3) a:hover {
    color: var(--accent-primary) !important;
  }
  
  .Testemunhos .link a:hover {
    color: var(--accent-primary) !important;
  }
  
  .footer a:hover {
    color: var(--accent-gold) !important;
  }
  
  .mobile-navbar ul li a:hover {
    background: var(--bg-tertiary) !important;
    color: var(--accent-primary) !important;
  }
  
  /* FORCE AGGRESSIVE BROWSERS TO USE OUR CUSTOM DARK MODE */
  /* Samsung Browser, Edge, Opera Auto Dark Mode Override */
  
  /* Disable browser auto dark mode - force them to use OUR colors */
  html {
    forced-color-adjust: none !important;
    -webkit-forced-color-adjust: none !important;
  }
  
  /* Prevent Samsung/Edge/Opera from inverting images */
  img, picture, video, svg, canvas, iframe {
    filter: none !important;
    -webkit-filter: none !important;
  }
  
  /* Force browsers to respect our form styling */
  input, textarea, select, button {
    forced-color-adjust: none !important;
    -webkit-forced-color-adjust: none !important;
    color-scheme: light !important;
  }
  
  /* Prevent auto inversion on specific Samsung Browser targets */
  body, main, section, article, aside, header, footer, nav {
    forced-color-adjust: none !important;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--text-secondary);
}

ul {
  list-style: none;
}

img {
  width: 100%;
}

/* Navbar */
.navbar {
  background-color: var(--bg-navbar);
  padding: 13px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: padding 0.3s ease;
  box-shadow: var(--shadow-navbar);
}

.navbar-scrolled {
  padding: 0;
}

.navbar .conteiner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo img {
  width: 260px;
  height: auto;
}

.navbar .main-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar .main-menu ul {
  display: flex;
}

.navbar ul li a {
  padding: 10px 20px;
  display: block;
  font-weight: 600;
  transition: 0.5s;
}

.navbar ul li a:hover {
  color: var(--accent-primary);
}

.contacto .btn {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-primary);
  padding: 8px 16px;
  background-color: var(--bg-tertiary);
  border-radius: 3px;
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contacto .btn:hover {
  background-color: var(--accent-hover);
  color: var(--text-white);
}

.contacto .btn i {
  margin-right: 8px;
}

.horizontal-image {
  position: relative;
  top: 100px;
  overflow: hidden; /* keeps zoom inside container */
  /* Ensure immediate visibility - no loading delays */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: block !important;
  /* High priority for immediate rendering */
  z-index: 10;
  contain: layout style paint;
  /* Prevent any flash or repainting */
  backface-visibility: hidden;
  will-change: auto;
}

.horizontal-image img {
  filter: brightness(0.99);
  width: 100%;
  height: auto;
  display: block !important;
  object-fit: cover;
  animation: slowZoom 5s ease-in-out infinite alternate;
  transform-origin: center center; /* keeps zoom centered */
  /* Ensure immediate image display without any loading effects */
  opacity: 1 !important;
  visibility: visible !important;
  /* Critical resource hints */
  image-rendering: auto;
  will-change: transform;
  /* Prevent layout shifts */
  backface-visibility: hidden;
  /* Remove any transition effects */
  transition: none !important;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

.horizontal-image .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 5.7vw;
  font-weight: bold;
  text-align: center;
  max-width: 74%;
  width: 100%;
}

@media (max-width: 600px) {
  .horizontal-image .overlay-text {
    font-size: 6.4vw;
  }
}


@keyframes jiggle {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-50%, calc(-50% - 3%)); }
  75% { transform: translate(-50%, calc(-50% + 3%)); }
}

@keyframes jiggle-horizontal {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.horizontal-image .overlay-text.jiggle {
  animation: jiggle 0.6s ease-in-out;
}

.contact-form.jiggle-side {
  animation: jiggle-horizontal 0.8s ease-in-out;
}





.Intro {
  text-align: center;
  position: relative;
  top: 60px;
  /* Ensure Intro appears on top of horizontal image */
  z-index: 15;
  /* Animation setup - starts visible but lower down */
  opacity: 1;
  transform: translateY(40px);
  transition: transform 0.7s ease-out;
}

/* Animation state when section slides up */
.Intro.slide-up {
  transform: translateY(0);
}

/* Big screens - make it move up more */
@media (min-width: 1024px) {
  .Intro {
    transform: translateY(60px);
  }
  
  .Intro.slide-up {
    transform: translateY(0);
  }
}

/* Small screens - ensure proper reset behavior */
@media (max-width: 1023px) {
  .Intro {
    transform: translateY(20px);
  }
  
  .Intro.slide-up {
    transform: translateY(0);
  }
}

/* Best Quality section positioning - on top of Intro */
.Best-quality {
  position: relative;
  z-index: 20;
}

/* Best Quality Animation Styles */
.Best-quality .Point-1,
.Best-quality .Point-2,
.Best-quality .Point-3 {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Big screens - all come from left */
@media (min-width: 1024px) {
  .Best-quality .Point-1,
  .Best-quality .Point-2,
  .Best-quality .Point-3 {
    transform: translateX(-50px);
  }
  
  .Best-quality.animate-in .Point-1,
  .Best-quality.animate-in .Point-2,
  .Best-quality.animate-in .Point-3 {
    opacity: 1;
    transform: translateX(0);
  }
  
  .Best-quality.animate-in .Point-1 {
    transition-delay: 0.2s;
  }
  
  .Best-quality.animate-in .Point-2 {
    transition-delay: 0.6s;
  }
  
  .Best-quality.animate-in .Point-3 {
    transition-delay: 1.0s;
  }
  
  /* Reverse animation when scrolling up from bottom - Desktop */
  .Best-quality.animate-in-reverse .Point-1,
  .Best-quality.animate-in-reverse .Point-2,
  .Best-quality.animate-in-reverse .Point-3 {
    opacity: 1;
    transform: translateX(0);
  }
  
  .Best-quality.animate-in-reverse .Point-1 {
    transition-delay: 1.0s;
  }
  
  .Best-quality.animate-in-reverse .Point-2 {
    transition-delay: 0.6s;
  }
  
  .Best-quality.animate-in-reverse .Point-3 {
    transition-delay: 0.2s;
  }
}

/* Small screens - alternating left/right */
@media (max-width: 1023px) {
  .Best-quality .Point-1 {
    transform: translateX(-30px);
  }
  
  .Best-quality .Point-2 {
    transform: translateX(30px);
  }
  
  .Best-quality .Point-3 {
    transform: translateX(-30px);
  }
  
  /* Individual box animations for mobile */
  .Best-quality .Point-1.animate-individual,
  .Best-quality .Point-2.animate-individual,
  .Best-quality .Point-3.animate-individual {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Fallback: Original section-wide animation */
  .Best-quality.animate-in .Point-1,
  .Best-quality.animate-in .Point-2,
  .Best-quality.animate-in .Point-3 {
    opacity: 1;
    transform: translateX(0);
  }
  
  .Best-quality.animate-in .Point-1 {
    transition-delay: 0.2s;
  }
  
  .Best-quality.animate-in .Point-2 {
    transition-delay: 0.6s;
  }
  
  .Best-quality.animate-in .Point-3 {
    transition-delay: 1.0s;
  }
  
  /* Reverse animation when scrolling up from bottom - Mobile */
  .Best-quality.animate-in-reverse .Point-1,
  .Best-quality.animate-in-reverse .Point-2,
  .Best-quality.animate-in-reverse .Point-3 {
    opacity: 1;
    transform: translateX(0);
  }
  
  .Best-quality.animate-in-reverse .Point-1 {
    transition-delay: 1.0s;
  }
  
  .Best-quality.animate-in-reverse .Point-2 {
    transition-delay: 0.6s;
  }
  
  .Best-quality.animate-in-reverse .Point-3 {
    transition-delay: 0.2s;
  }
}

.Intro ul {
  display: block;
  text-align: center;
  max-width: clamp(0px, 90vw, 2000px);
  margin: 0 auto;
}

.Intro ul li {
  margin-bottom: 30px;
}

.Intro ul li a {
  font-family: Garamond, serif;
  font-weight: 600;
  font-size: 32px;
  width: 100%;
}

.Intro ul li:nth-child(2) a {
  font-weight: 400;
  font-size: 17px;
  font-family: 'Poppins', sans-serif;
}

.Intro ul li:nth-child(3) a {
  font-weight: 300;
  font-size: 20px;
  
}
.Intro ul li:nth-child(3) a:hover{
  color: #cd9a33ca;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}


@media (max-width: 600px) {

.Intro {
  top: 80px;
}

.Intro ul li {
  margin-bottom: 30px;
  margin-top: 30px;
}

.Intro ul li a {
  font-size: 32px;
}

.Intro ul li:nth-child(2) a {
  font-size: 17px;
}

.Intro ul li:nth-child(3) a {
  font-size: 16px;
}

}

.Best-quality .container-sm-w {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  top: 30px;
  gap: 50px;
  flex-wrap: nowrap;
}

.Point-1, .Point-2, .Point-3 {
  display: flex;
  text-align: center;
  border: 2px solid var(--border-primary);
  padding: 10px 20px;
  background-color: var(--bg-primary);
  border-radius: 3px;
  color: var(--text-primary);
  flex: 1;
}

.Point-1 ul li, .Point-2 ul li, .Point-3 ul li {
  margin: 20px 0 10px;
}

.Point-1 ul li:first-child a, .Point-2 ul li:first-child a, .Point-3 ul li:first-child a {
  font-weight: 600;
  font-size: 21px;
  font-family: Garamond, serif;
}

.Point-1 ul li:nth-child(2) a, .Point-2 ul li:nth-child(2) a, .Point-3 ul li:nth-child(2) a {
  font-weight: 400;
  font-size: 16px;
}

.Best-quality .points-row {
  display: flex;
  flex-direction: row;
  gap: 50px;
  width: 100%;
}
.Best-quality .Point-3 {
  margin-top: 0;
  max-width: none;
}

.Serviços-p .container-b, .Resultados-p .container-b {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: var(--bg-secondary);
  text-align: center;
  position: relative;
  top: 60px;
}

.Serviços-p ul, .Resultados-p ul {
  display: block;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.Serviços-p ul li, .Resultados-p ul li {
  margin-bottom: 40px;
}

.Serviços-p .texto, .Resultados-p .texto {
  flex: 1;
  position: relative;
  top: 60px;
}

.Serviços-p .texto ul li:first-child a, .Resultados-p .texto ul li:first-child a {
  font-weight: 600;
  font-size: 30px;
  font-family: Garamond, serif;
}

.Serviços-p .texto ul li:nth-child(2) a, .Resultados-p .texto ul li:nth-child(2) a {
  font-weight: 400;
  font-size: 18px;
}

.Serviços-p .texto ul li:nth-child(2), .Resultados-p .texto ul li:nth-child(2)  {
  padding-left: 20px; /* Adjust the padding value as needed */
  padding-right: 20px; /* Adjust the padding value as needed */
}


.Serviços-p .img, .Resultados-p .img {
  flex: 1;
}

.Serviços-p .img img, .Resultados-p .img img {
  width: 100%;
  height: auto;
  display: block;
}

.Serviços-p, .Resultados-p {
  margin-bottom: 10px;
}

.Testemunhos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 50px; /* All container */
  /* Animation setup - starts from lower position */
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation state when section slides up from bottom */
.Testemunhos.slide-up-from-bottom {
  opacity: 1;
  transform: translateY(10px);
}

.Testemunhos .carousel-t .coment{
  overflow: hidden;
  text-align: center;
  margin-bottom: 15px;
}

.Testemunhos .carousel-t .star{
  overflow: hidden;
  text-align: center;
  margin-bottom: 38px;
}


.Testemunhos .carousel-t .coment a {
  color: #333 !important; /* Change text color */
  font-size: 18px !important; /* Change text size */
}


.Testemunhos .carousel-t .star i {
  color: #cd9a33ca !important; /* Change star color */
  font-size: 18px !important; /* Change star size */
}


.Testemunhos .carousel-t ul {
  display: flex;
  animation: slide 25s infinite;
  list-style: none;
  padding: 0;
  margin: 0;
  
}

.Testemunhos .carousel-t ul li {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  font-size: 15px;
  font-style: italic;
}

@keyframes slide {
  0% { transform: translateX(0); }
  33% { transform: translateX(0); }
  36% { transform: translateX(-100%); }
  69% { transform: translateX(-100%); }
  72% { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}


.Testemunhos .title {
  font-weight: 600;
  font-size: 35px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-family: Garamond, serif;
}



.Testemunhos .link {
  font-weight: 300;
  font-size: 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Garamond, serif;
}




.Testemunhos .link a {
  display: flex;
  align-items: center;

}


.Testemunhos .link a .google-icon {
  margin-right: 10px; /* Adjust the margin as needed */
  font-size: 18px; /* Adjust the size as needed */
  display: flex;
  align-items: center;

}

.Testemunhos .link a:hover{
  color: #cd9a33ca;
  font-weight: 400;

}

.Testemunhos .link a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.Testemunhos .title a {
  display: flex;
  align-items: center;
}



.contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120vh;
  background-color: #ffffff;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

.contact-form.loaded {
  opacity: 1;
  transform: translateY(0);
}

.contact-form.fade-in-stage-3 {
  transition-delay: 0.3s;
}



.container-c {
  display: flex;
  background: #F9F7F5;
  width: 65%; /* Adjust the width as needed */
  margin: 0 auto;
}
.form-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.form-section h2 {
  font-size: 24px;
  letter-spacing: 1px;
  font-weight: normal;
  font-family: Garamond, serif;
}
.form-section h1 {
  font-size: 30px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 20px;
  font-family: Garamond, serif;
}
.input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}
.input-group input {
  flex: 1;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #000;
  outline: none;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.152);  
}
.form-section .main-input {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  border: none;
  border-bottom: 1px solid #000;
  outline: none;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.27);
}
.form-section .description {
  width: 100%;
  height: 200px;
  padding: 10px;
  margin-top: 15px;
  border: none; /* Removed top and lateral borders */
  border-bottom: 1px solid #000; /* Only bottom border */
  outline: none;
  font-size: 16px;
  resize: none;
  background-color: rgba(255, 255, 255, 0.222);
  font-family: 'Poppins', sans-serif; /* Ensure consistent font */
}

.form-section .description::placeholder {
  color: #585858; /* Placeholder color */
  font-family: 'Poppins', sans-serif; /* Ensure consistent font */
  size: 12px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center; /* Center align text */
  border: 2px solid var(--border-primary);
  padding: 12px 24px; /* Increase padding for bigger size */
  background-color: var(--bg-tertiary);
  border-radius: 3px;
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  letter-spacing: 1px;
  margin-top: 30px; /* Increase margin to make it lower */
  align-self: center; /* Center the button within the form */
}

.download-btn:hover {
  background-color: var(--accent-hover);
  color: var(--text-white);
}

.image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-section img {
  width: 80%;
  height: auto;
  object-fit: cover;
}






.footer {
  width: 100%;
  background-color: var(--bg-footer);
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.footer-container {
  width: 80%;
  padding: 15px;
  
  border-radius: 10px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left h3 {
  margin: 0;
  font-size: 1.2em; /* Smaller title */
}

.social-icons {
  margin-top: 5px;
}

.social-icons a {
  font-size: 1.5em; /* Bigger icons */
  margin-right: 15px;
  color: black; /* Default black */
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #e3a83b; /* Turn gold on hover */
}

.footer-middle p {
  margin: 5px 0;
  display: block;
  text-align: center;
  font-size: 18px;
}


.footer-right p {
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.footer-right a {
  color: black; /* Default black */
  text-decoration: none;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #e3a83b; /* Turn gold on hover */
  text-decoration: none; /* No underline */
}

.footer-right i {
  margin-right: 8px;
  font-size: 1.2em;
}




/*

SERVIÇOS

*/

.Title {
  text-align: center;
  position: relative;
  top: 60px;
  margin-bottom: 10px;
}

.Title ul {
  display: block;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.Title ul li {
  margin-bottom: 30px;
}

.Title ul li a {
  font-family: Garamond, serif;
  font-weight: 600;
  font-size: 36px;
  width: 100%;
}




.Serviços-E .container-b, .Serviços-D .container-b {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #F9F7F5;
  text-align: center;
  position: relative;
  top: 60px;
  margin-bottom: 10px;
}

.texto {
  flex: 1;
  padding-right: 20px;
}

.texto ul {
  display: block;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.texto ul li:first-child a {
  font-weight: 600;
  font-size: 35px;
  font-family: Garamond, serif;
}

.texto ul li:nth-child(2) a {
  font-weight: 400;
  font-size: 18px;
}

.texto ul li:nth-child(2) {
  padding-left: 20px;
  padding-right: 20px;
}

/* Add spacing between the three textual items (title, paragraph, button) */
.texto ul li {
  margin-bottom: 26px; /* space between each list item */
}

.texto ul li:nth-child(2) {
  margin-bottom: 28px; /* slightly larger gap after the paragraph */
  line-height: 1.6; /* improve paragraph readability */
}

.texto ul li:nth-child(3) {
  margin-top: 6px; /* small gap before the action/link */
}

.texto ul li:nth-child(3) a {
  font-weight: 300;
  font-size: 25px;
  font-family: Garamond, serif;
}

.texto ul li:nth-child(3) a:hover {
  color: #cd9a33ca;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carousel {
  width: 50%; /* Matches your 50% layout */
  position: relative;
  overflow: hidden; /* Ensure clipping happens at the carousel level */
}

.carousel-images {
  display: flex;
  width: 1200%; /* 5 images × (100% width + 100% gap) = 1000% */
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 10%; /* 100% / 5 images = 20% of .carousel-images, but adjusted for gap */
  height: auto;
  display: block;
  margin-right: 10%; /* Gap = image width */
}

/* Keep your button and dot styles unchanged */
.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-buttons button {
  background-color: rgba(0, 0, 0, 0.089);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.carousel-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.carousel-dots .dot.active {
  opacity: 1;
  background-color: #cd9a33;
}

/*
  Resultados
*/

.container-galeria {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;  /* Padding at top and bottom of the whole gallery */
  position: relative;
}

.grid {
  display: flex;   /* Lay out columns side-by-side */
  gap: 10px;       /* Horizontal gap between columns */
  height: 100%;    /* Will be set by JS if needed */
}

/* Each column is a flex container (vertical) */
.column {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* This will center the stacked images vertically within the column */
  /* We will remove any default vertical spacing here */
}

/* Add a fixed vertical gap between images */
.column img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px; /* fixed gap */
}

/* Remove gap after the last image in a column */
.column img:last-child {
  margin-bottom: 0;
}

/* Gallery Fade-in Animations */
.galeria {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.galeria.loaded {
  opacity: 1;
  transform: translateY(0);
}

.galeria.fade-in-stage-1 {
  transition-delay: 0.2s;
}

/* Individual image animations within gallery */
.galeria .column img {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Carousel Fade-in Animations */
.mobile-carousel {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mobile-carousel.loaded {
  opacity: 1;
  transform: translateY(0);
}

.mobile-carousel.fade-in-stage-2 {
  transition-delay: 0.1s;
}

/* Carousel scale animation */
.mobile-carousel .carousel-g {
  transform: scale(1);
  transition: transform 0.6s ease-out;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .galeria,
  .mobile-carousel,
  .contact-form,
  .galeria .column img,
  .mobile-carousel .carousel-g {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/*
Sobre nós
*/
.CEO {
  margin-top: 65px; /* add this for space before the box */
  background-color: #f5f5f5;
}
.CEO .container-b {
  display: flex;
  align-items: center;
  justify-content: center;
}

.CEO .img {
  flex: 0 0 35%;
}

.CEO .texto {
  flex: 1;
  line-height: 1.0;
}

.CEO ul {
  display: block;
  text-align: center;
  max-width: clamp(24px, 50vw, 1000px);
  margin: 0 auto;
}

.CEO ul li {
  margin-bottom: 40px;
}

.CEO .texto ul li:first-child a {
  font-weight: 600;
  font-family: Garamond, serif;
  text-decoration: none;
  color: inherit;
  font-size: clamp(24px, 2.0vw, 100px); /* scales with window width */
}

.CEO .img img {
  width: 100%;
  height: auto;
  display: block;
}

.CEO {
  margin-bottom: 10px;
}

.CEO .autor {
  margin-top: 60px;
  font-size: 24px;
  font-style: italic;
}


.description2 {
  position: relative;
  top: 60px;
  text-align: justify;
  /* Animation setup - starts from left side */
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

/* Animation state when section slides from left */
.description2.slide-from-left {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Base Styles ---------- */

.description2 ul {
  display: block;
  text-align: justify;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.description2 ul li {
  margin: 15px 0; /* smaller spacing between paragraphs */
}

.description2 ul li a {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: inherit;
  text-decoration: none;
  text-align: justify;
}

/* ---------- Responsive Styles ---------- */

@media (max-width: 1100px) {
  .description2 .container-sm {
    padding: 40px 10vw;
    max-width: 92%;
  }

  .description2 ul li a {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  .description2 {
    top: 60px;
  }

  .description2 ul li {
    margin: 12px 0;
  }

  .description2 ul li a {
    font-size: 15px;
    line-height: 1.5;
  }
}


.horizontal-image-ceo {
  margin-top: 70px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden; /* keep zoom inside */
}

.horizontal-image-ceo img {
  filter: brightness(0.99);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  animation: slowZoomCEO 4s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes slowZoomCEO {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

.horizontal-image-ceo .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  /* Smaller default limits while remaining responsive */
  font-size: clamp(18px, 3.2vw, 48px);
  font-weight: bold;
  text-align: center;
  max-width: 80%;
  width: 100%;
  padding: 0 6%; /* give some horizontal breathing room on very small screens */
}

.horizontal-image-ceo .overlay-text .autor {
  display: block;
  /* spacing that scales with viewport width */
  margin-top: clamp(12px, 3vw, 40px);
  /* make the author/subtext responsive; increase max so it's larger on wide screens */
  font-size: clamp(14px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 600;
  color: #f0f0f0;
}

/* Mobile tweaks: reduce sizes and spacing further for small screens */
@media (max-width: 600px) {
  .horizontal-image-ceo .overlay-text {
    font-size: clamp(16px, 5.2vw, 28px);
    max-width: 90%;
    padding: 0 8%;
  }

  .horizontal-image-ceo .overlay-text .autor {
    margin-top: clamp(8px, 3.5vw, 18px);
    font-size: clamp(12px, 3.5vw, 16px);
  }
}




/*
  Container
*/
.conteiner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 40px;
}

.conteiner-b {
  margin: 0 auto;
}

.container-sm {
  max-width: min(calc(100% - 100px));
  margin: 0 auto;
  padding: 80px 200px;
  background-color: var(--bg-tertiary);
}

.container-lw {
  max-width: 500px;
  margin: 0 auto;
}

.container-lw * {
  width: 100%;
}

.container-sm-w {
  max-width: min(calc(100% - 250px), 1350px);
  margin: 0 auto;
  padding: 0 20px;
  background-color: #ffffff00;
}

.container-lg {
  margin: 0 auto;
}

section {
  margin: 0;
  padding: 0;
}

.conteiner-title{
  width: 100%;
  background-color:#E2DBD4;
  display: flex;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 30px;
  position: relative;
  margin-top: 40px;
}

.conteiner-title-R{
  width: 100%;
  background-color:#E2DBD4;
  display: flex;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 30px;
  position: relative;
  margin-top: 40px;
  margin-bottom: 50px;
}

/* MOBILE NAVBAR STYLES */
@media (max-width: 1100px) {
  .navbar {
    display: none;
  }
  .mobile-navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-mobile-navbar);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: var(--shadow-mobile);
    padding: 22px 0 13px 0;
  }
  .mobile-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  /* Fix logo selector for mobile navbar */
  .mobile-navbar .mobile-logo {
    width: 200px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 0;
    
  }
  .mobile-navbar .mobile-logo img {
    width: 100%;
    height: auto;
  }
  .mobile-navbar .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    margin: 0;
    background: none;
    border: none;
    outline: none;
    height: 60px;
    width: 60px;
  }
  .mobile-navbar .mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-top: 10px;
    padding-bottom: 10px;
    animation: slideDown 0.3s;
  }
  .mobile-navbar .mobile-menu.open {
    display: flex;
  }
  .mobile-navbar .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .mobile-navbar .mobile-menu ul li {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .mobile-navbar .mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-navbar .mobile-menu ul li a:hover {
    background: #f3f0ed;
    color: #cd9933;
  }
  .mobile-navbar .mobile-menu .contacto {
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
  }
  .mobile-navbar .mobile-menu .btn {
    padding: 10px 30px;
    font-size: 16px;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Hide mobile navbar on desktop */
.mobile-navbar {
  display: none;
}
@media (max-width: 1100px) {
  .mobile-navbar {
    display: flex;
  }
  .Intro .container-sm {
    padding: 40px 10vw; /* Reduce horizontal padding, scale with viewport width */
    max-width:  92%;
  }
  .Intro ul li a {
    font-size: 28px; 
  }
  

  /*
  TO JUSTIFY THE SECOND ITEM IN INTRO 
  .Intro ul li:nth-child(2) {
    text-align: justify !important;
  }
  */
  .Intro ul li:nth-child(2) a {
    font-size: 13.5px;
    text-align: inherit;
    display: block;
  }
  .Intro ul li:nth-child(3) a {
    font-size: 11.5px; /* Same as desktop version */
  }
  
}


/* Minimal fix for Best-quality layout between 1100px and 440px */
@media (max-width: 1100px) {
  .Best-quality .container-sm-w {
    max-width: 98vw;
    padding: 0 3vw;
  }
  .Best-quality .points-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px; /* keep gap fixed */
  }
  .Best-quality .Point-1,
  .Best-quality .Point-2 {
    flex: 0 1 320px;
    max-width: 340px;
    min-width: 220px;
    width: 45%;
  }
  .Best-quality .Point-3 {
    flex: 0 1 100%;
    max-width: 340px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .Point-1 ul li:nth-child(2) a, .Point-2 ul li:nth-child(2) a, .Point-3 ul li:nth-child(2) a {
  font-weight: 400;
  font-size: 14px;
}
}

@media (max-width: 1100px) {
  .Serviços-p .container-b {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .Resultados-p .container-b {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0;
  }
  .Serviços-p .texto,
  .Resultados-p .texto,
  .Serviços-p .img,
  .Resultados-p .img {
    width: 100%;
    flex: unset;
    top: 0;
    padding: 0;
  }
  .Serviços-p .img img,
  .Resultados-p .img img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .Serviços-p .texto ul li:first-child,
  .Resultados-p .texto ul li:first-child {
   margin-top: 25px;
  }
  .Serviços-p .texto ul li:nth-child(2) a,
  .Resultados-p .texto ul li:nth-child(2) a {
    font-size: 13px;
  }

    .Serviços-p .texto ul li:nth-child(3) a,
  .Resultados-p .texto ul li:nth-child(3) a {
    font-size: 11.5px;
  }

}

@media (max-width: 1100px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer-left,
  .footer-middle,
  .footer-right {
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
    font-size: 12px; /* Control all font size here */
  }
  .footer-left *,
  .footer-middle *,
  .footer-right * {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  .social-icons a {
    font-size: 1.2em;
  }
}

@media (max-width: 1100px) {
  .contact-form {
    height: auto;
    padding: 0;
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .container-c {
    flex-direction: column;
    width: 95%;
    max-width: 600px;
    min-width: 0;
    margin: 0 auto;
  }
  .form-section {
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: center;
    width: 100%;
  }
  .image-section {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
  .image-section img {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
  .form-section input[type="text"],
  .form-section input[type="email"],
  .form-section textarea {
    font-size: 12px;
    
  }
    .form-section .description {
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .container-sm {
    padding-left: calc(12.5vw - 15px);
    padding-right: calc(12.5vw - 15px);
    max-width: 95vw;
  }

.Testemunhos .title {
  font-size: 28px; /* Larger for the title */
}

.Testemunhos .carousel-t .star i {
  color: #cd9a33ca !important; /* Change star color */
  font-size: 11px !important; /* Change star size */
}

.Testemunhos .carousel-t .coment a {
  font-size: 13px !important; /* Change text size */
}

.Testemunhos .link a {
  font-size: 10px; /* FINAL SIZE ADJUST - Google link reduced for mobile */
}
}


@media (max-width: 1100px) {
  .Serviços-E .container-b,
  .Serviços-D .container-b {
    flex-direction: column !important;
  }
  .Serviços-E .texto,
  .Serviços-D .texto {
    order: 1;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 50px;
  }

 .Serviços-E .texto ul li:nth-child(2) a,
  .Serviços-D .texto ul li:nth-child(2) a {
    display: block;      /* <-- allows margins to work */
    margin-top: 40px;    /* adjust spacing between title and paragraph */
    font-size: 13px;
  }


  .Serviços-E .carousel,
  .Serviços-D .carousel {
    order: 2;
    width: 100%;
    margin-top: 18px;
  }
.Servicos .contact-form {
  position: relative;
  top: 30px;
}
}

@media (max-width: 1000px) and (min-width:601px) {
  .grid {
    flex-wrap: wrap;     /* allow items to go to next row */
    justify-content: center;
  }

  .grid .column {
    flex: 1 1 45%;       /* each column takes about half width */
    max-width: 45%;
  }
.galeria:nth-of-type(1) {
    margin-bottom: 650px; /* first gallery */
  }

/* Progressive loading fade-in system */
.galeria, .mobile-carousel, .contact-form {
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 0.5s ease-out;
  transform: translateY(15px);
}

/* Loaded states */
.galeria.loaded, .mobile-carousel.loaded {
  opacity: 1;
  transform: translateY(0);
}

.contact-form.loaded {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Loading animation keyframes */
@keyframes fadeInProgressive {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Progressive fade-in classes with enhanced transitions */
.fade-in-stage-1 {
  animation: fadeInProgressive 0.9s ease-out forwards;
}

.fade-in-stage-2 {
  animation: fadeInProgressive 1.1s ease-out forwards;
  animation-delay: 0.25s;
}

.fade-in-stage-3 {
  animation: fadeInProgressive 1.3s ease-out forwards;
  animation-delay: 0.5s;
}

/* Ensure images don't cause layout shift during loading */
.galeria img, .mobile-carousel img {
  transition: opacity 0.4s ease-in-out, filter 0.3s ease;
  will-change: opacity;
}

/* Subtle blur effect while loading */
.galeria:not(.loaded) img, .mobile-carousel:not(.loaded) img {
  filter: blur(1px);
  opacity: 0.7;
}

.galeria.loaded img, .mobile-carousel.loaded img {
  filter: blur(0);
  opacity: 1;
}

/* Enhanced skeleton loading effect */
.galeria img:not([loaded]), .mobile-carousel img:not([loaded]) {
  background: linear-gradient(90deg, 
    rgba(240, 240, 240, 0.8) 25%, 
    rgba(224, 224, 224, 0.9) 50%, 
    rgba(240, 240, 240, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite ease-in-out;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Smooth transitions for responsive behavior */
@media (max-width: 600px) {
  .galeria, .mobile-carousel {
    transform: translateY(10px); /* Less dramatic on mobile */
  }
  
  .fade-in-stage-1, .fade-in-stage-2, .fade-in-stage-3 {
    animation-duration: 0.8s; /* Faster on mobile */
  }
}

}

/* Default: show grid, hide carousel */
.mobile-carousel { display: none; }

/* Independent carousel-g styles */
.carousel-g {
  width: 50%;
  position: relative;
  overflow: hidden;
  top: 10px;
}

.carousel-g-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-g-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation buttons */
.carousel-g-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-g-buttons button {
  background-color: rgba(0, 0, 0, 0.089);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* Dots */
.carousel-g-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.carousel-g-dots .dot-g {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.carousel-g-dots .dot-g.active {
  opacity: 1;
  background-color: #cd9a33;
}


/* On small screens: hide grid, show carousel */
@media (max-width: 600px) {
  .container-galeria { display: none; }
  .mobile-carousel { display: block; width: 100%; }

  /* Override the 50% width from default */
  .mobile-carousel .carousel-g{
    width: 100%;
  }

  .carousel-g-images {
    width: 100%; /* 4 images side by side */
  }

  .carousel-g-images img {
    width: 100%;   /* each slide takes full width */
    margin-top: 10px; /* add some space between images */
  }
}

@media (max-width: 600px) {
  .input-group input {
    flex: 0 0 48%;   /* each input takes ~half the row */
    max-width: 48%;  /* prevents them from stretching too wide */
  }
}

@media (max-width: 600px) {

.Intro {
  top: 80px;
}

.Intro ul li {
  margin-bottom: 40px;
  margin-top: 10px;
}

.Intro ul li a {
  font-size: 26px; /* Reduced from 28px for better mobile readability */
}

  .Best-quality .container-sm-w {
    max-width: 98vw;
    padding: 75px 3vw 0px 3vw;
  }
  .Best-quality .points-row {
    gap: 12px; /* keep gap fixed */
  }
  
  /* Best-quality Point titles for mobile */
  .Point-1 ul li:first-child a, .Point-2 ul li:first-child a, .Point-3 ul li:first-child a {
    font-size: 18px; /* Reduced from 21px for mobile */
  }
  
  .Point-1 ul li:nth-child(2) a, .Point-2 ul li:nth-child(2) a, .Point-3 ul li:nth-child(2) a {
    font-weight: 400;
    font-size: 13px;
  }

}

/* Mobile styles for Serviços titles */
@media (max-width: 600px) {
  .texto ul li:first-child a {
    font-size: 28px; /* Reduced from 35px for mobile */
  }
}

   /* Action links sizing: make the page action links larger and easier to tap on smaller screens
     Targets: Intro right-hand link, the .texto action link (Serviços / Resultados),
     and the testimonials .link a. This does not affect navbar or footer buttons. */
  .Intro ul li:nth-child(3) a,
  .texto ul li:nth-child(3) a,
  .link a {
    display: inline-block; /* allow padding to take effect */
    padding: 6px 10px;    /* small clickable area on desktop */
    border-radius: 4px;   /* subtle rounded touch target */
    font-size: 22px;      /* default size (keeps existing look) */
    font-weight: 400;
    line-height: 1.2;
  }

  /* Increase size a bit for medium screens (tablets / small laptops) */
  @media (max-width: 1100px) {
    .Intro ul li:nth-child(3) a,
    .texto ul li:nth-child(3) a,
    .link a {
      font-size: 18px;    /* larger text for readability */
      padding: 8px 12px;  /* larger tap/click area */
    }
  }

  /* Increase further on small screens / phones */
  @media (max-width: 600px) {
    .Intro ul li:nth-child(3) a,
    .texto ul li:nth-child(3) a,
    .link a {
      font-size: 16px;     /* clear, tappable text */
      padding: 10px 14px;  /* more generous touch target */
    }
  }

  /* Ensure the span inside the testimonial link scales too
     (some rules target .Testemunhos .link a > span; make it explicit) */
  .link a span {
    display: inline-block; /* lets font-size and padding apply reliably */
    font-size: 22px; /* base */
    padding-left: 6px; /* spacing from the icon */
  }

  @media (max-width: 1100px) {
    .link a span {
      font-size: 18px; /* FINAL SIZE ADJUST - Tablet size for "Veja todos os comentários" text */
    }
  }

  @media (max-width: 600px) {
    .link a span {
      font-size: 17px; /* FINAL SIZE ADJUST - Mobile size for "Veja todos os comentários" text */
    }
  }

/* Simple fade-in animation for Serviços sections */
.Serviços-E,
.Serviços-D, .Intro, .horizontal-image {
  opacity: 0;
  animation: simpleFadeIn 0.8s ease-out forwards;
}
.horizontal-image {
  animation-delay: 0.05s;
}
.Serviços-E, .Intro {
  animation-delay: 0.1s;
}

.Serviços-D {
  animation-delay: 0.3s;
}

@keyframes simpleFadeIn {
  from {
    opacity: 0;
  
  }
  to {
    opacity: 1;

  }
}