/* ============================================
   RENOVALUZ - CSS COMPLETO PARA NOVAS FUNCIONALIDADES
   ============================================ */

/* ========== VARIÁVEIS DE CORES COMPLETAS ========== */
:root {
  /* Novas cores Renovaluz */
  --renovaluz-primary: #0a8a13;
  --renovaluz-dark: #004800;
  --renovaluz-white: #ffffff;
  --renovaluz-light-green: rgba(10, 138, 19, 0.1);
  --renovaluz-gradient: linear-gradient(135deg, #0a8a13 0%, #004800 100%);

  /* Paleta Verde Refinada */
  --primary-hue: 135;
  --secondary-hue: 120;
  --neutral-hue: 38;
  --danger-hue: 0;
  --warning-hue: 45;
  --success-hue: 140;
  --info-hue: 210;
  --white-hue: 0;
  --black-hue: 0;

  /* Primária - #018a13 */
  --primary-color: #018a13;
  --primary-color-alt: #017a10;
  --primary-color-darker: #016a0e;
  --primary-color-light: #e6f7e8;
  --primary-color-lighter: #f2fcf3;
  --primary-color-gradient: linear-gradient(135deg, #018a13, #016a0e);
  --primary-glow: rgba(1, 138, 19, 0.35);

  /* Secundária - #004800 */
  --secondary-color: #004800;
  --secondary-color-alt: #003800;
  --secondary-color-darker: #002800;
  --secondary-color-light: #e6f0e6;
  --secondary-color-lighter: #f2f7f2;
  --secondary-color-gradient: linear-gradient(135deg, #004800, #002800);
  --secondary-glow: rgba(0, 72, 0, 0.3);

  /* Feedback */
  --danger-color: hsl(var(--danger-hue), 90%, 55%);
  --danger-color-alt: hsl(var(--danger-hue), 85%, 50%);
  --danger-light-color: hsl(var(--danger-hue), 90%, 94%);
  --warning-color: hsl(var(--warning-hue), 100%, 60%);
  --warning-color-alt: hsl(var(--warning-hue), 95%, 55%);
  --warning-light-color: hsl(var(--warning-hue), 100%, 94%);
  --success-color: hsl(var(--success-hue), 65%, 48%);
  --success-color-alt: hsl(var(--success-hue), 60%, 42%);
  --success-light-color: hsl(var(--success-hue), 70%, 92%);
  --info-text-color: hsl(var(--info-hue), 60%, 40%);
  --info-light-color: hsl(var(--info-hue), 70%, 93%);

  /* Paleta Modo Claro (DEFAULT) */
  --title-color: hsl(var(--neutral-hue), 35%, 15%);
  --text-color: hsl(var(--neutral-hue), 20%, 30%);
  --text-color-light: hsl(var(--neutral-hue), 15%, 50%);
  --text-color-lighter: hsl(var(--neutral-hue), 15%, 65%);
  --body-color: #ffffff;
  --container-color: hsl(var(--neutral-hue), 40%, 98%);
  --border-color: hsl(var(--neutral-hue), 30%, 88%);
  --border-color-light: hsl(var(--neutral-hue), 30%, 92%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: hsla(var(--neutral-hue), 20%, 80%, 0.3);
  --glass-shadow: 0 6px 20px hsla(var(--neutral-hue), 20%, 60%, 0.1);
  --shadow-color: hsla(var(--neutral-hue), 40%, 50%, 0.08);
  --shadow-color-medium: hsla(var(--neutral-hue), 40%, 50%, 0.12);
  --shadow-color-strong: hsla(var(--neutral-hue), 40%, 45%, 0.18);
  --scroll-bar-color: hsl(var(--neutral-hue), 20%, 94%);
  --scroll-bar-thumb-color: #018a13;
  --preloader-bg-color: var(--body-color);
  --preloader-text-color: var(--text-color-light);
  --preloader-spinner-color: var(--primary-color);
  --hero-shape-color: rgba(1, 138, 19, 0.6);
  --section-subtitle-color: var(--secondary-color);
  --input-bg-color: #ffffff;
  --input-border-color: var(--border-color-light);
  --input-focus-border-color: var(--primary-color);
  --input-focus-shadow: rgba(1, 138, 19, 0.2);
  --modal-bg-color: var(--body-color);
  --modal-overlay-color: hsla(var(--neutral-hue), 40%, 10%, 0.75);
  --sidebar-bg-color: hsla(var(--neutral-hue), 30%, 98%, 0.85);
  --sidebar-border-color: hsla(var(--neutral-hue), 30%, 88%, 0.7);
  --sidebar-shadow: 5px 0 25px hsla(var(--neutral-hue), 30%, 40%, 0.1);
  --transaction-positive-color: var(--success-color);
  --transaction-negative-color: var(--danger-color);
  --map-grayscale: 10%;

  /* Font and typography */
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 2.0rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.15rem;
  --normal-font-size: 0.9rem;
  --small-font-size: .8rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .68rem;

  /* Font weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /* Margenes Bottom */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  --mb-4: 4rem;

  /* z index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-sidebar: 1010;
  --z-preloader: 2000;

  /* Border Radius */
  --radius-tiny: 4px;
  --radius-small: 6px;
  --radius-medium: 8px;
  --radius-large: 12px;
  --radius-extra-large: 20px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s ease;
  --transition-elastic: cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.4s;

  /* Box Shadow */
  --shadow-soft: 0 3px 10px var(--shadow-color);
  --shadow-medium: 0 6px 20px var(--shadow-color);
  --shadow-strong: 0 10px 30px var(--shadow-color);
  --shadow-inset: inset 0 1px 3px hsla(0, 0%, 0%, 0.06);
}

/* ========== DARK THEME COMPLETO ========== */
body[data-theme="dark"] {
  --title-color: hsl(var(--neutral-hue), 15%, 95%);
  --text-color: hsl(var(--neutral-hue), 15%, 78%);
  --text-color-light: hsl(var(--neutral-hue), 15%, 65%);
  --body-color: hsl(var(--neutral-hue), 20%, 8%);
  --container-color: hsl(var(--neutral-hue), 20%, 12%);
  --border-color: hsl(var(--neutral-hue), 15%, 25%);
  --glass-bg: hsla(var(--neutral-hue), 20%, 15%, 0.7);
  --glass-border: hsla(var(--neutral-hue), 10%, 30%, 0.5);
  --shadow-color: hsla(0, 0%, 0%, 0.2);
  --scroll-bar-color: hsl(var(--neutral-hue), 15%, 20%);
  --scroll-bar-thumb-color: #018a13;
  --preloader-bg-color: var(--body-color);
  --preloader-text-color: var(--text-color);
  --preloader-spinner-color: var(--primary-color);
  --hero-shape-color: rgba(0, 72, 0, 0.4);
  --section-subtitle-color: #004800;
  --input-bg-color: hsl(var(--neutral-hue), 15%, 18%);
  --input-border-color: var(--border-color);
  --input-focus-border-color: #018a13;
  --modal-bg-color: hsl(var(--neutral-hue), 20%, 15%);
  --modal-overlay-color: hsla(0, 0%, 0%, 0.75);
  --sidebar-bg-color: hsla(var(--neutral-hue), 20%, 10%, 0.9);
  --sidebar-border-color: hsla(var(--neutral-hue), 15%, 28%, 0.8);
  --sidebar-shadow: 5px 0 30px hsla(0, 0%, 0%, 0.25);
  --transaction-positive-color: hsl(var(--success-hue), 55%, 55%);
  --transaction-negative-color: hsl(var(--danger-hue), 80%, 60%);

  /* Ajustes específicos para modo escuro */
  --renovaluz-light-green: rgba(10, 138, 19, 0.05);
}

/* ============================================
   SEÇÃO SERVIÇOS - LAYOUT MATRIZ 3x3 RESPONSIVO
   ============================================ */
.servicos {
  background: var(--renovaluz-light-green);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  width: 100%;
}

.servicos .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.servicos__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  width: 100%;
}

.servico__card {
  background: var(--container-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.servico__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--renovaluz-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.servico__card:hover::before {
  opacity: 0.02;
}

.servico__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(10, 138, 19, 0.15);
  border-color: var(--renovaluz-primary);
}

.servico__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.servico__icon {
  width: 60px;
  height: 60px;
  background: var(--renovaluz-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--renovaluz-white);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.servico__card:hover .servico__icon {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(10, 138, 19, 0.3);
}

.servico__icon .material-icons {
  font-size: 1.5rem;
}

.servico__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.3;
  margin: 0;
}

.servico__description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.servico__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--renovaluz-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding: 0.5rem 0;
}

.servico__card:hover .servico__more {
  gap: 1rem;
  color: var(--renovaluz-dark);
}

.servico__more i {
  transition: transform 0.3s ease;
}

.servico__card:hover .servico__more i {
  transform: rotate(90deg);
}

/* ============================================
   SEÇÃO QUEM SOMOS
   ============================================ */
.quem-somos {
  background: var(--body-color);
  padding: 5rem 0;
  position: relative;
}

.quem-somos .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.quem-somos__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.quem-somos__image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.quem-somos__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--renovaluz-primary);
  box-shadow: 0 10px 40px rgba(10, 138, 19, 0.3);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.quem-somos__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--renovaluz-gradient);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

.quem-somos__content {
  position: relative;
  z-index: 2;
}

.quem-somos__description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin: 1.5rem 0;
}

.quem-somos__features {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.quem-somos__feature {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--renovaluz-light-green);
  border-radius: 12px;
  border-left: 4px solid var(--renovaluz-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quem-somos__feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--renovaluz-gradient);
  opacity: 0.1;
  transition: left 0.3s ease;
}

.quem-somos__feature:hover::before {
  left: 0;
}

.quem-somos__feature:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 20px rgba(10, 138, 19, 0.2);
}

.quem-somos__feature .material-icons {
  color: var(--renovaluz-primary);
  font-size: 2.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.quem-somos__feature-content {
  position: relative;
  z-index: 2;
}

.quem-somos__feature h4 {
  color: var(--title-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.quem-somos__feature p {
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   SEÇÃO PARCEIROS (Carrossel Infinito)
   ============================================ */
.parceiros {
  background: var(--body-color);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}

.parceiros .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.parceiros__slider-wrapper {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
}

.parceiros__slider {
  display: flex;
  animation: scroll-infinite 30s linear infinite;
  width: max-content;
}

.parceiro__item {
  flex: 0 0 200px;
  height: 100px;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--container-color);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
}

.parceiro__item:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(10, 138, 19, 0.2);
}

.parceiro__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.parceiro__item:hover img {
  filter: grayscale(0%);
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Duplicar itens para efeito infinito */
.parceiros__slider::after {
  content: "";
  display: flex;
}

/* ============================================
   SEÇÃO CONTADORES
   ============================================ */
.contadores {
  background: var(--renovaluz-gradient);
  padding: 5rem 0;
  color: var(--renovaluz-white);
  position: relative;
  overflow: hidden;
}

.contadores::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.contadores .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.contadores__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.contador__item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contador__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contador__item:hover::before {
  opacity: 1;
}

.contador__item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contador__icon {
  font-size: 3rem !important;
  margin-bottom: 1rem;
  display: block;
  color: var(--renovaluz-white);
  position: relative;
  z-index: 2;
}

.contador__number {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--renovaluz-white);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contador__label {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

/* ============================================
   GALERIA DE PROJETOS - LAYOUT MATRIZ 3x3 RESPONSIVO
   ============================================ */
.galeria-projetos {
  background: var(--renovaluz-light-green);
  padding: 5rem 0;
  position: relative;
}

.galeria-projetos .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  width: 100%;
}

.galeria__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  background: var(--container-color);
}

.galeria__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--renovaluz-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.galeria__item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(10, 138, 19, 0.3);
}

.galeria__item:hover::before {
  opacity: 0.1;
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  position: relative;
  z-index: 0;
}

.galeria__item:hover img {
  transform: scale(1.1);
}

.galeria__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--renovaluz-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--renovaluz-white);
  padding: 1rem;
  text-align: center;
  z-index: 2;
}

.galeria__item:hover .galeria__overlay {
  opacity: 0.95;
}

.galeria__overlay i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.galeria__item:hover .galeria__overlay i {
  transform: scale(1.2);
}

.galeria__overlay p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Modal da Galeria */
.galeria-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay-color);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.galeria-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.galeria-modal__content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria-modal__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.galeria-modal__caption {
  text-align: center;
  color: var(--renovaluz-white);
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: 500;
}

.galeria-modal__close,
.galeria-modal__prev,
.galeria-modal__next {
  position: absolute;
  background: var(--renovaluz-primary);
  color: var(--renovaluz-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.galeria-modal__close:hover,
.galeria-modal__prev:hover,
.galeria-modal__next:hover {
  background: var(--renovaluz-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.galeria-modal__close {
  top: 2rem;
  right: 2rem;
}

.galeria-modal__prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.galeria-modal__next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================
   RESPONSIVIDADE COMPLETA - MATRIZ 3x3 → 2x2
   ============================================ */

/* Tablets: Matriz 2x2 para serviços e galeria */
@media screen and (max-width: 1024px) {
  .servicos__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .servico__card {
    padding: 1.75rem;
    min-height: 260px;
  }
  
  .servico__icon {
    width: 55px;
    height: 55px;
  }
  
  .servico__title {
    font-size: 1.15rem;
  }
  
  .servico__description {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
  
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
  
  .galeria__overlay p {
    font-size: 0.95rem;
  }
  
  .quem-somos__container {
    gap: 3rem;
  }
  
  .quem-somos__image-wrapper {
    width: 350px;
    height: 350px;
  }
  
  .contadores__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Tablets Pequenos: Otimização */
@media screen and (max-width: 868px) {
  .servicos__container {
    gap: 1rem;
  }
  
  .servico__card {
    padding: 1.5rem;
    min-height: 240px;
  }
  
  .servico__icon {
    width: 50px;
    height: 50px;
  }
  
  .servico__title {
    font-size: 1.1rem;
  }
  
  .servico__description {
    font-size: 0.85rem;
  }
  
  .galeria__grid {
    gap: 0.75rem;
  }
  
  .quem-somos__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .quem-somos__image-wrapper {
    width: 320px;
    height: 320px;
  }
}

/* Mobile Grande: Matriz 2x2 miniaturizada */
@media screen and (max-width: 768px) {
  .servicos {
    padding: 4rem 0;
  }
  
  .servicos__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
  }
  
  .servico__card {
    padding: 1.25rem;
    min-height: 220px;
    border-radius: 12px;
  }
  
  .servico__header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .servico__icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
  }
  
  .servico__icon .material-icons {
    font-size: 1.3rem;
  }
  
  .servico__title {
    font-size: 1.05rem;
  }
  
  .servico__description {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 3;
  }
  
  .servico__more {
    font-size: 0.85rem;
  }
  
  .galeria-projetos {
    padding: 4rem 0;
  }
  
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
  }
  
  .galeria__item {
    border-radius: 10px;
  }
  
  .galeria__overlay {
    padding: 0.75rem;
  }
  
  .galeria__overlay i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .galeria__overlay p {
    font-size: 0.9rem;
  }
  
  .contadores {
    padding: 4rem 0;
  }
  
  .contadores__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .contador__item {
    padding: 1.5rem;
  }
  
  .contador__icon {
    font-size: 2.5rem !important;
  }
  
  .contador__number {
    font-size: 2.5rem;
  }
  
  .contador__label {
    font-size: 1rem;
  }
  
  .galeria-modal__close,
  .galeria-modal__prev,
  .galeria-modal__next {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .galeria-modal__close {
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .galeria-modal__prev {
    left: 1.5rem;
  }
  
  .galeria-modal__next {
    right: 1.5rem;
  }
}

/* Mobile Médio: Ajustes detalhados */
@media screen and (max-width: 640px) {
  .servicos__container {
    gap: 0.875rem;
  }
  
  .servico__card {
    padding: 1.125rem;
    min-height: 200px;
  }
  
  .servico__icon {
    width: 42px;
    height: 42px;
  }
  
  .servico__icon .material-icons {
    font-size: 1.25rem;
  }
  
  .servico__title {
    font-size: 1rem;
  }
  
  .servico__description {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
  }
  
  .servico__more {
    font-size: 0.8rem;
  }
  
  .galeria__grid {
    gap: 0.625rem;
  }
  
  .galeria__overlay i {
    font-size: 1.5rem;
  }
  
  .galeria__overlay p {
    font-size: 0.85rem;
  }
  
  .quem-somos__image-wrapper {
    width: 280px;
    height: 280px;
  }
  
  .quem-somos__feature {
    padding: 1.25rem;
    gap: 0.875rem;
  }
  
  .quem-somos__feature .material-icons {
    font-size: 2rem;
  }
}

/* Mobile Pequeno: Otimização extrema */
@media screen and (max-width: 480px) {
  .servicos {
    padding: 3rem 0;
  }
  
  .servicos__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
  }
  
  .servico__card {
    padding: 1rem;
    min-height: 180px;
    border-radius: 10px;
  }
  
  .servico__header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .servico__icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  
  .servico__icon .material-icons {
    font-size: 1.1rem;
  }
  
  .servico__title {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  
  .servico__description {
    font-size: 0.78rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    margin-bottom: 0.5rem;
  }
  
  .servico__more {
    font-size: 0.78rem;
    gap: 0.25rem;
  }
  
  .servico__card:hover .servico__more {
    gap: 0.5rem;
  }
  
  .galeria-projetos {
    padding: 3rem 0;
  }
  
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  
  .galeria__item {
    border-radius: 8px;
  }
  
  .galeria__overlay {
    padding: 0.5rem;
  }
  
  .galeria__overlay i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  
  .galeria__overlay p {
    font-size: 0.8rem;
  }
  
  .contadores {
    padding: 3rem 0;
  }
  
  .contadores__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .contador__item {
    padding: 1.25rem;
  }
  
  .contador__icon {
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
  }
  
  .contador__number {
    font-size: 2rem;
    margin: 0.5rem 0;
  }
  
  .contador__label {
    font-size: 0.9rem;
  }
  
  .parceiro__item {
    flex: 0 0 150px;
    height: 80px;
    margin: 0 1rem;
    padding: 0.75rem;
  }
}

/* Mobile Extra Pequeno: Garantir funcionalidade */
@media screen and (max-width: 360px) {
  .servicos__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .servico__card {
    padding: 0.875rem;
    min-height: 160px;
    border-radius: 8px;
  }
  
  .servico__icon {
    width: 35px;
    height: 35px;
    border-radius: 6px;
  }
  
  .servico__icon .material-icons {
    font-size: 1rem;
  }
  
  .servico__title {
    font-size: 0.9rem;
  }
  
  .servico__description {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
  }
  
  .servico__more {
    font-size: 0.75rem;
  }
  
  .galeria__grid {
    gap: 0.375rem;
  }
  
  .galeria__overlay p {
    font-size: 0.75rem;
  }
  
  .contadores__container {
    gap: 0.75rem;
  }
  
  .contador__item {
    padding: 1rem;
  }
  
  .contador__icon {
    font-size: 1.75rem !important;
  }
  
  .contador__number {
    font-size: 1.75rem;
  }
  
  .contador__label {
    font-size: 0.85rem;
  }
}

/* ============================================
   ANIMAÇÕES E EFECTOS ESPECIAIS PARA MOBILE
   ============================================ */
.servico__card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.galeria__item:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Melhorar acessibilidade em dispositivos touch */
@media (hover: none) {
  .servico__card:hover {
    transform: none;
  }
  
  .servico__card:active {
    transform: scale(0.95);
  }
  
  .servico__card:hover .servico__icon {
    transform: none;
  }
  
  .servico__card:hover .servico__more {
    gap: 0.5rem;
  }
  
  .galeria__item:hover {
    transform: none;
  }
  
  .galeria__item:active {
    transform: scale(0.95);
  }
  
  .galeria__item:hover img {
    transform: none;
  }
  
  .galeria__item:hover .galeria__overlay {
    opacity: 0.8;
  }
}

/* Garantir que textos não quebrem layout em mobile */
.servico__title,
.galeria__overlay p,
.contador__label {
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Prevenir seleção de texto em mobile */
.servico__card,
.galeria__item {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Otimização de performance para animações */
@media (prefers-reduced-motion: reduce) {
  .servico__card,
  .galeria__item,
  .contador__item,
  .quem-somos__feature,
  .parceiro__item {
    transition: none;
  }
  
  .servico__card:hover,
  .galeria__item:hover,
  .contador__item:hover,
  .quem-somos__feature:hover {
    transform: none;
  }
  
  .quem-somos__img {
    animation: none;
  }
  
  .quem-somos__glow {
    animation: none;
  }
  
  .parceiros__slider {
    animation: none;
  }
}

/* ============================================
   AJUSTES ESPECÍFICOS PARA DARK THEME
   ============================================ */
body[data-theme="dark"] .servico__card,
body[data-theme="dark"] .parceiro__item,
body[data-theme="dark"] .quem-somos__feature,
body[data-theme="dark"] .servico-item,
body[data-theme="dark"] .galeria__item {
  background: var(--container-color);
  border-color: var(--border-color);
}

body[data-theme="dark"] .servico__title,
body[data-theme="dark"] .servico-item h4,
body[data-theme="dark"] .quem-somos__feature h4 {
  color: var(--title-color);
}

body[data-theme="dark"] .servico__description,
body[data-theme="dark"] .servico-item p,
body[data-theme="dark"] .quem-somos__description,
body[data-theme="dark"] .quem-somos__feature p {
  color: var(--text-color);
}

body[data-theme="dark"] .galeria-modal__caption {
  color: var(--text-color);
}

body[data-theme="dark"] .galeria__item {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .servico__card:hover,
body[data-theme="dark"] .quem-somos__feature:hover {
  box-shadow: 0 8px 30px rgba(10, 138, 19, 0.3);
}

body[data-theme="dark"] .parceiro__item {
  background: var(--container-color);
}

body[data-theme="dark"] .parceiro__item:hover {
  box-shadow: 0 8px 25px rgba(10, 138, 19, 0.3);
}

/* Garantir contraste em modo escuro */
body[data-theme="dark"] .servico__more {
  color: var(--renovaluz-primary);
}

body[data-theme="dark"] .servico__card:hover .servico__more {
  color: #0da51a;
}

/* ============================================
   SEÇÃO NOTÍCIAS - CARDS MODERNOS E ATRAVES
   ============================================ */

.noticias {
    position: relative;
    background: linear-gradient(135deg, var(--body-color) 0%, var(--container-color) 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.noticias__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(10, 138, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 72, 0, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.noticias .container {
    position: relative;
    z-index: 2;
}

.noticias__intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 1rem auto 3rem;
    line-height: 1.6;
}

.noticias__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.noticia__card {
    background: var(--container-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--border-color-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.noticia__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--renovaluz-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.noticia__card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 25px 50px rgba(10, 138, 19, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--renovaluz-primary);
}

.noticia__card:hover::before {
    opacity: 0.02;
}

.noticia__image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.noticia__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.noticia__card:hover .noticia__image img {
    transform: scale(1.1);
}

.noticia__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--renovaluz-gradient);
    color: var(--renovaluz-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(10, 138, 19, 0.3);
}

.noticia__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    z-index: 2;
}

.noticia__date {
    color: var(--renovaluz-white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.noticia__content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.noticia__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia__excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.noticia__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.noticia__stat i {
    font-size: 1.25rem;
    color: var(--renovaluz-primary);
    margin-bottom: 0.25rem;
}

.noticia__stat span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color-light);
}

.noticia__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.noticia__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.noticia__author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--renovaluz-primary);
}

.noticia__author span {
    font-size: 0.85rem;
    color: var(--text-color-light);
    font-weight: 500;
}

.noticia__read-time {
    font-size: 0.8rem;
    color: var(--text-color-lighter);
    background: var(--renovaluz-light-green);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.noticia__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--renovaluz-gradient);
    color: var(--renovaluz-white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.noticia__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.noticia__btn:hover::before {
    left: 100%;
}

.noticia__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 138, 19, 0.4);
}

.noticia__btn span {
    font-size: 0.95rem;
}

.noticia__btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.noticia__btn:hover i {
    transform: translateX(4px);
}

.noticias__cta {
    text-align: center;
}

.noticias__all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--container-color);
    color: var(--renovaluz-primary);
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--renovaluz-primary);
    position: relative;
    overflow: hidden;
}

.noticias__all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--renovaluz-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.noticias__all-btn:hover {
    color: var(--renovaluz-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 138, 19, 0.3);
}

.noticias__all-btn:hover::before {
    opacity: 1;
}

.noticias__all-btn i {
    transition: transform 0.3s ease;
}

.noticias__all-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVIDADE - MATRIZ 3x1 → 2x2 → 1x3
   ============================================ */

/* Tablets: Matriz 2x2 */
@media screen and (max-width: 1024px) {
    .noticias__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .noticia__card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .noticia__image {
        height: 220px;
    }
    
    .noticia__content {
        padding: 1.75rem;
    }
    
    .noticia__title {
        font-size: 1.2rem;
    }
}

/* Tablets Pequenos: Ajustes */
@media screen and (max-width: 868px) {
    .noticias {
        padding: 5rem 0;
    }
    
    .noticias__container {
        gap: 1.25rem;
    }
    
    .noticia__image {
        height: 200px;
    }
    
    .noticia__content {
        padding: 1.5rem;
    }
    
    .noticia__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .noticia__stat span {
        font-size: 0.75rem;
    }
}

/* Mobile Grande: Matriz 2x2 compacta */
@media screen and (max-width: 768px) {
    .noticias__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .noticia__card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .noticia__card {
        border-radius: 20px;
    }
    
    .noticia__image {
        height: 180px;
    }
    
    .noticia__badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .noticia__content {
        padding: 1.25rem;
    }
    
    .noticia__title {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }
    
    .noticia__excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        margin-bottom: 1.25rem;
    }
    
    .noticia__stats {
        padding: 0.75rem 0;
        margin-bottom: 1.25rem;
    }
    
    .noticia__stat i {
        font-size: 1.1rem;
    }
    
    .noticia__meta {
        margin-bottom: 1.25rem;
    }
    
    .noticia__author img {
        width: 28px;
        height: 28px;
    }
    
    .noticia__author span {
        font-size: 0.8rem;
    }
    
    .noticia__read-time {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .noticia__btn {
        padding: 0.875rem 1.25rem;
        border-radius: 14px;
    }
    
    .noticia__btn span {
        font-size: 0.9rem;
    }
}

/* Mobile Médio: Otimização */
@media screen and (max-width: 640px) {
    .noticias__container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .noticia__card:nth-child(3) {
        grid-column: 1;
    }
    
    .noticia__image {
        height: 200px;
    }
    
    .noticia__content {
        padding: 1.5rem;
    }
    
    .noticia__title {
        font-size: 1.15rem;
    }
    
    .noticias__intro {
        font-size: 1.1rem;
        margin: 1rem auto 2.5rem;
    }
}

/* Mobile Pequeno: Miniaturização */
@media screen and (max-width: 480px) {
    .noticias {
        padding: 4rem 0;
    }
    
    .noticias__container {
        gap: 1rem;
    }
    
    .noticia__card {
        border-radius: 16px;
    }
    
    .noticia__image {
        height: 160px;
    }
    
    .noticia__badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .noticia__overlay {
        padding: 1rem;
    }
    
    .noticia__date {
        font-size: 0.8rem;
    }
    
    .noticia__content {
        padding: 1rem;
    }
    
    .noticia__title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .noticia__excerpt {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .noticia__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .noticia__stat i {
        font-size: 1rem;
    }
    
    .noticia__stat span {
        font-size: 0.7rem;
    }
    
    .noticia__meta {
        margin-bottom: 1rem;
    }
    
    .noticia__author {
        gap: 0.5rem;
    }
    
    .noticia__author img {
        width: 24px;
        height: 24px;
    }
    
    .noticia__author span {
        font-size: 0.75rem;
    }
    
    .noticia__read-time {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    
    .noticia__btn {
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }
    
    .noticia__btn span {
        font-size: 0.85rem;
    }
    
    .noticia__btn i {
        font-size: 1rem;
    }
    
    .noticias__all-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile Extra Pequeno: Otimização máxima */
@media screen and (max-width: 360px) {
    .noticias__container {
        gap: 0.875rem;
    }
    
    .noticia__image {
        height: 140px;
    }
    
    .noticia__content {
        padding: 0.875rem;
    }
    
    .noticia__title {
        font-size: 0.95rem;
    }
    
    .noticia__excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .noticia__stats {
        gap: 0.25rem;
    }
    
    .noticia__stat i {
        font-size: 0.9rem;
    }
    
    .noticia__stat span {
        font-size: 0.65rem;
    }
    
    .noticia__author span {
        font-size: 0.7rem;
    }
}

/* ============================================
   ANIMAÇÕES E EFEITOS ESPECIAIS
   ============================================ */

.noticia__card[data-animation] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.noticia__card[data-animation].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito de brilho ao hover */
.noticia__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 138, 19, 0.1) 0%, 
        rgba(0, 72, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.noticia__card:hover::after {
    opacity: 1;
}

/* Animação de pulso para badges */
@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.noticia__badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

/* ============================================
   MODE ESCURO - AJUSTES ESPECÍFICOS
   ============================================ */

body[data-theme="dark"] .noticias {
    background: linear-gradient(135deg, 
        hsl(var(--neutral-hue), 20%, 8%) 0%, 
        hsl(var(--neutral-hue), 20%, 12%) 100%);
}

body[data-theme="dark"] .noticia__card {
    background: var(--container-color);
    border-color: var(--border-color);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .noticia__card:hover {
    box-shadow: 
        0 25px 50px rgba(10, 138, 19, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .noticia__overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

body[data-theme="dark"] .noticia__read-time {
    background: rgba(10, 138, 19, 0.15);
    color: var(--text-color-light);
}

body[data-theme="dark"] .noticias__all-btn {
    background: var(--container-color);
    border-color: var(--renovaluz-primary);
}

body[data-theme="dark"] .noticias__all-btn:hover {
    color: var(--renovaluz-white);
}

/* ============================================
   ACESSIBILIDADE E OTIMIZAÇÃO
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .noticia__card,
    .noticia__btn,
    .noticias__all-btn {
        transition: none;
    }
    
    .noticia__card:hover {
        transform: none;
    }
    
    .noticia__badge {
        animation: none;
    }
}

/* Melhorar contraste para acessibilidade */
@media (prefers-contrast: high) {
    .noticia__card {
        border: 2px solid var(--renovaluz-primary);
    }
    
    .noticia__btn {
        border: 2px solid var(--renovaluz-dark);
    }
}

/* Suporte a touch devices */
@media (hover: none) {
    .noticia__card:hover {
        transform: none;
    }
    
    .noticia__card:active {
        transform: scale(0.98);
    }
    
    .noticia__btn:active {
        transform: scale(0.95);
    }
}

/* Garantir legibilidade em todos os dispositivos */
.noticia__title,
.noticia__excerpt,
.noticia__stat span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevenir seleção de texto em mobile */
.noticia__card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   CAROUSEL PROFISSIONAL - ANIMAÇÕES NIVEL FIGMA
   ============================================ */

.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 1200px;
    overflow: hidden;
    background: var(--body-color);
}

.carousel__container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ========== SLIDES ========== */
.carousel__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(50px);
}

.carousel__slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 10;
}

.carousel__slide.leaving {
    opacity: 0;
    transform: translateX(-50px);
}

/* ========== BACKGROUND DOS SLIDES ========== */
.slide__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.8);
}

.carousel__slide.active .slide__image {
    transform: scale(1);
}

.slide__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 138, 19, 0.4) 0%,
        rgba(0, 72, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* ========== CONTEÚDO DOS SLIDES ========== */
.slide__content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--renovaluz-white);
}

.slide__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--renovaluz-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel__slide.active .slide__badge {
    opacity: 1;
    transform: translateY(0);
}

.slide__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s;
}

.carousel__slide.active .slide__title {
    opacity: 1;
    transform: translateY(0);
}

.slide__title .highlight {
    background: linear-gradient(135deg, #4ade80, #0a8a13);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.slide__description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s;
}

.carousel__slide.active .slide__description {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ELEMENTOS VISUAIS ========== */
.slide__stats,
.slide__features,
.slide__partners,
.slide__awards {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s;
}

.carousel__slide.active .slide__stats,
.carousel__slide.active .slide__features,
.carousel__slide.active .slide__partners,
.carousel__slide.active .slide__awards {
    opacity: 1;
    transform: translateY(0);
}

.stat__item {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4ade80, #0a8a13);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.feature__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature__item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature__item i {
    font-size: 1.5rem;
    color: #4ade80;
}

.partner__logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.partner__logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.partner__logo:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.partner__logo img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.award__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.award__item i {
    font-size: 1.5rem;
    color: #ffd700;
}

/* ========== BOTÕES DE AÇÃO ========== */
.slide__actions {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s;
}

.carousel__slide.active .slide__actions {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, #0a8a13, #004800);
    color: var(--renovaluz-white);
    box-shadow: 0 8px 25px rgba(10, 138, 19, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(10, 138, 19, 0.5);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--renovaluz-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* ========== PADRÕES VISUAIS ========== */
.slide__pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.pattern__circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.pattern__circle--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.pattern__circle--2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.pattern__circle--3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ========== CONTROLES DO CAROUSEL ========== */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--renovaluz-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel__btn--prev {
    left: 2rem;
}

.carousel__btn--next {
    right: 2rem;
}

.carousel__indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.carousel__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.carousel__indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.carousel__indicator.active {
    background: var(--renovaluz-white);
    transform: scale(1.2);
}

.carousel__indicator.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.carousel__indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* ========== BARRA DE PROGRESSO ========== */
.carousel__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
}

.progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #0a8a13);
    width: 0%;
    transition: width 0.1s linear;
}

/* ========== ANIMAÇÕES PERSONALIZADAS ========== */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVIDADE ========== */
@media screen and (max-width: 1024px) {
    .hero-carousel {
        height: 80vh;
        min-height: 600px;
    }
    
    .carousel__btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .carousel__btn--prev {
        left: 1rem;
    }
    
    .carousel__btn--next {
        right: 1rem;
    }
    
    .slide__content {
        padding: 0 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide__stats,
    .slide__features,
    .slide__partners,
    .slide__awards {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .partner__logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slide__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .carousel__indicators {
        bottom: 2rem;
    }
    
    .pattern__circle {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide__content {
        padding: 0 1rem;
        text-align: center;
        align-items: center;
    }
    
    .slide__title {
        font-size: 2rem;
    }
    
    .slide__description {
        font-size: 1rem;
    }
    
    .carousel__btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat__number {
        font-size: 2rem;
    }
    
    .feature__item,
    .award__item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========== MODE ESCURO ========== */
body[data-theme="dark"] .hero-carousel {
    background: hsl(var(--neutral-hue), 20%, 8%);
}

body[data-theme="dark"] .slide__gradient {
    background: linear-gradient(
        135deg,
        rgba(10, 138, 19, 0.5) 0%,
        rgba(0, 72, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* ========== ACESSIBILIDADE ========== */
@media (prefers-reduced-motion: reduce) {
    .carousel__slide,
    .slide__image,
    .btn,
    .carousel__btn,
    .pattern__circle {
        transition: none;
        animation: none;
    }
    
    .carousel__slide.active {
        transform: none;
    }
}

/* Suporte a touch devices */
@media (hover: none) {
    .carousel__btn:hover {
        transform: translateY(-50%);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .feature__item:hover,
    .partner__logo:hover {
        transform: none;
    }
}

/* Indicadores de foco para acessibilidade */
.carousel__btn:focus,
.btn:focus,
.carousel__indicator:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}



        /* ===== CAROUSEL ESTÁTICO CENTRALIZADO ===== */
        .vantagens__container {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            gap: 1.5rem;
            padding: 1.5rem;
            margin: 0 auto;
            max-width: 100%;
            scrollbar-width: none; /* Firefox */
        }

        /* Esconder scrollbar no Chrome, Safari e Opera */
        .vantagens__container::-webkit-scrollbar {
            display: none;
        }

        .vantagem__item {
            flex: 0 0 280px;
            scroll-snap-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: var(--card-bg);
            padding: 2rem 1.5rem;
            border-radius: 16px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .vantagem__item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--primary-color), #4CAF50);
        }

        .vantagem__item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        }

        .vantagem__icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
            transition: transform 0.3s ease;
        }

        .vantagem__item:hover .vantagem__icon {
            transform: scale(1.15);
        }

        .vantagem__title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #222;
        }

        .vantagem__description {
            font-size: 0.95rem;
            color: #666;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .vantagem__expand-indicator {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: auto;
            color: var(--primary-color);
            font-weight: 500;
            font-size: 0.9rem;
            transition: gap 0.3s ease;
        }

        .vantagem__item:hover .vantagem__expand-indicator {
            gap: 0.75rem;
        }

        /* Indicadores de navegação */
        .vantagens__indicators {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            margin-top: 2rem;
        }

        .vantagens__indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .vantagens__indicator.active {
            background: var(--primary-color);
            transform: scale(1.2);
        }

        /* Instrução de swipe para mobile */
        .swipe-instruction {
            text-align: center;
            margin-top: 1rem;
            color: #888;
            font-size: 0.9rem;
            display: none;
        }

        .swipe-instruction i {
            margin-right: 0.5rem;
            color: var(--primary-color);
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .section__title {
                font-size: 1.7rem;
            }
            
            .vantagem__item {
                flex: 0 0 260px;
                padding: 1.75rem 1.25rem;
            }
            
            .vantagens__container {
                gap: 1.25rem;
                padding: 1rem;
            }
            
            .swipe-instruction {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .section__title {
                font-size: 1.5rem;
                margin-bottom: 2rem;
            }
            
            .vantagem__item {
                flex: 0 0 240px;
                padding: 1.5rem 1rem;
            }
            
            .vantagem__icon {
                font-size: 2.5rem;
            }
            
            .vantagem__title {
                font-size: 1.2rem;
            }
            
            .vantagens__container {
                gap: 1rem;
            }
        }

        /* Animações */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .fade-in {
            animation: fadeIn 0.8s ease forwards;
        }

        .slide-in-left {
            animation: slideInLeft 0.8s ease forwards;
        }