:root {
  --primary: #a2889c;
  --accent: #9ca671;
  --neutral: #f3eee8;
  --text: #3d3d3d;
  --white: #ffffff;
  --secondary: #66405d;

  --font-main: 'Nunito', sans-serif;
  --font-size-base: 16px;
  --container-width: 1200px;
  --gap: 1.5rem;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  background: var(--neutral);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Fade-slide */
.fade-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.8s ease;
}
.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Container */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Header */
.header {
  background: var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 48px;
}
.nav-list {
  display: flex;
  gap: var(--gap);
  list-style: none;
}
.nav-list li a {
  color: var(--neutral);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-list li a:hover {
  color: var(--secondary);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

/* Intro Section */
.intro-section {
  padding: 4rem 0;
}
.intro-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.intro-image {
  position: relative;
  display: inline-block;
  max-width: 400px;
}
.intro-image::before {
  content: '';
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 1rem;
  z-index: -1;
}
.intro-image img {
  border-radius: 1rem;
  display: block;
  position: relative;
  z-index: 1;
}
.intro-text {
  flex: 2;
  min-width: 280px;
}
.intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.intro-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}
.btn-primary:hover {
  background-color: #7e8a58;
}

/* About Section */
.about-section {
  background: var(--accent);
  color: var(--white);
  padding: 4rem 0;
}
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
  min-width: 280px;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-list {
  font-weight: 600;
  margin: 1rem 0 1.5rem 1.5rem;
  color: #fff;
  list-style: disc inside;
  font-size: 1.05rem;
}
.about-list li {
  margin-bottom: 0.5rem;
}

.about-image-container img {
  flex: 1;
  min-width: 260px;
  position: relative;
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

/* Services Section */
.services-section {
  background: var(--white);
  color: var(--text);
  padding: 4rem 1rem;
}

.strong-title {
  font-size: 18px;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.title-service {
  font-size: 20px;
}

.link-external {
  color: mediumblue;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  background: #cc8040;
  color: var(--white);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card h3 {
  font-size: 1.2rem;
  margin: 0.8rem 0 0.5rem;
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}
.service-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

/* Articles Section */
.articles-section {
  background: var(--neutral);
  padding: 4rem 1rem;
  color: var(--text);
}
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.article-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
}
.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.article-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}
.read-more {
  margin-top: auto;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
.read-more:hover {
  color: #7e8a58;
}

/* Contact Section */
.contact-section {
  background: #a88ca2;
  color: var(--white);
  padding: 4rem 1rem;
}

.contact-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.contact-info,
.contact-form {
  flex: 1 1 320px; /* cresce e encolhe, mínimo 320px */
  min-width: 280px;
}

/* Para telas maiores, lado a lado */
@media (min-width: 768px) {
  .contact-section .container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .contact-info {
    max-width: 45%;
  }
  .contact-form {
    max-width: 45%;
  }
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.contact-details img {
  width: 20px;
  height: 20px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  background: #a6b57e;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background: #8ea36c;
}

.whatsapp-btn img {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.contact-message {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--white);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 4px;
  padding: 0.8rem;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  background: #fefaf3;
  color: #a88ca2;
  padding: 1rem;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Footer */
.footer {
  background: #f5f0eb;
  padding: 40px 20px;
  color: #7b647c;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.footer-logo img {
  min-width: 300px;
}
.footer-sections {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-services ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}
.footer-services h3,
.footer-contact h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #7b647c;
}
.footer-services li,
.footer-contact li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.footer-contact .whatsapp-btn {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #9cac6c;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.footer-contact .whatsapp-btn:hover {
  background: #869d5c;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.whatsapp-float:hover {
  background: #7e8a58;
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
}

/* Accordion Services */
.services-accordion {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem;
}
/* Corrigir fundo laranja duplicado ao expandir */
.service-category {
  background: #fff8f2;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  margin: 0;
}
.category-toggle {
  background: #cc8040 !important;
  color: #fff !important;
  width: 100%;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: none;
}
.subcategory-list {
  background: #f3c892;
  color: #3d3d3d;
  margin: 0;
  padding: 1.8rem 2rem 1.8rem 3.5rem;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: none;
}
.subcategory-list li {
  margin-top: 0.7rem;
}
.service-category.open {
  transform: none;
  transition: none;
  z-index: auto;
}
.service-category:not(.open) .subcategory-list {
  display: none;
}

/* Chevron seta simples à direita, sem quadrado */
.category-toggle .chevron {
  background: none;
  color: #fff;
  width: auto;
  height: auto;
  min-height: unset;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  right: unset;
  top: unset;
  bottom: unset;
  margin: 0 0 0 auto;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.category-toggle .chevron::before {
  content: '\25BC'; /* seta para baixo */
  display: block;
  transition: transform 0.3s;
}
.service-category.open .category-toggle .chevron::before {
  content: '\25BC';
  transform: rotate(180deg);
}

/* Chevron seta estilizada */
.category-toggle .chevron {
  margin-left: auto;
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
}
.category-toggle .chevron::before {
  content: '\25BC'; /* seta para baixo */
  display: block;
}
.service-category.open .category-toggle .chevron::before {
  content: '\25B2'; /* seta para cima */
}
.service-category.open .category-toggle .chevron {
  transform: none;
}

.category-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  padding: 1.5rem 2rem;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.category-toggle:hover,
.category-toggle.active {
  background: #a86c2c;
}
.subcategory-list {
  list-style: disc inside;
  background: #fff8f2;
  color: #3d3d3d;
  margin: 0;
  padding: 0 2rem 1.2rem 2.5rem;
  display: none;
  font-size: 1rem;
}
.service-category.open .subcategory-list {
  display: block;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ícones nas categorias do acordeão */
.category-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.category-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-right: 0.5rem;
  display: inline-block;
}

/* Chevron SVG seta animada à direita */
.category-toggle .chevron {
  margin: 0 0 0 auto;
  transition: transform 0.3s;
  color: #fff;
  display: flex;
  align-items: center;
  transform-origin: 50% 50%;
}
.service-category.open .category-toggle .chevron {
  transform: rotate(180deg);
}

/* Accordion Services em 2 colunas */
.services-accordion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .services-accordion {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive Header Toggle */
@media (max-width: 1023px) {
  .nav-list {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--primary);
    padding: 1rem;
    border-radius: 0 0 0 10px;
    z-index: 999;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .nav-list li {
    margin-bottom: 1rem;
    width: 100%;
    text-align: left;
  }
  .nav-list li:last-child {
    margin-bottom: 0;
  }

  .about-image-container {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .category-toggle {
    font-size: 1rem;
    padding: 1.2rem 1.2rem 1.2rem 2.2rem;
  }
  .category-toggle .category-icon {
    width: 28px;
    height: 28px;
  }
  .category-toggle .chevron {
    width: 32px;
    height: 32px;
    font-size: 2rem;
  }
  .subcategory-list {
    padding: 1.2rem 1rem 1.2rem 2.2rem;
    font-size: 0.97rem;
  }
}

.subservice-desc {
  display: block;
  margin: 0.7rem 0 1.2rem 0;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;

  border-radius: 0.4rem;
  padding: 0.7rem 1.1rem 0.7rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.subservice-desc ul {
  margin: 0.5rem 0 0.5rem 1.2rem;
  padding-left: 1.2rem;
  list-style: disc inside;
}
.subservice-desc li {
  margin-bottom: 0.3rem;
}

.cta-servizi {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.btn-cta-servizi {
  display: inline-block;
  font-size: 1.15rem;
  padding: 1rem 2.2rem;
  border-radius: 0.7rem;
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.2s;
  text-align: center;
}
.btn-cta-servizi:hover {
  background: #7e8a58;
  transform: translateY(-2px) scale(1.04);
}
