:root {
  --cor-principal: #00468a;
  --cor-secundaria: #1b9fdf;
  --cor-destaque: #e3ff00;
  --cor-neutra: #f3efe4;
  --branco: #fff;
  --cinza: #e0e0e0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--cor-neutra);
  color: var(--cor-principal);
}

/* Header */
header {
  background: var(--cinza);
  color: var(--cor-principal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8vw;
}

.logo {
  display: flex;
  align-items: center;
  /*gap: 0px;*/
}
.logo img {
  height: 60px;
  width: auto;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
}
nav a {
  color: var(--cor-principal);
  text-decoration: none;
  margin-left: 32px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
nav a:hover {
  color: var(--cor-secundaria);
}

/* Hero */
.hero {
  background: linear-gradient(
    90deg,
    var(--cor-principal) 60%,
    var(--cor-secundaria) 100%
  );
  color: var(--branco);
  padding: 32px 8vw 48px 8vw;
  text-align: left;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 90%;
}
.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}
.hero .cta {
  background: var(--cor-destaque);
  color: var(--cor-principal);
  border: none;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s;
}
.hero .cta:hover {
  background: var(--cor-principal);
  color: var(--cor-destaque);
  border: 2px solid var(--cor-destaque);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px #0003;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: box-shadow 0.2s, transform 0.2s;
}
.whatsapp-float:hover {
  box-shadow: 0 8px 32px #0004;
  transform: scale(1.08);
  background: #1ebe57;
}
.whatsapp-float img {
  width: 34px;
  height: 34px;
  filter: invert(1);
}
@media (max-width: 600px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }
}

/* Carrossel de Artigos */
.carrossel-section {
  background: var(--cor-neutra);
  padding: 56px 8vw 40px 8vw;
}
.carrossel-title {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--cor-principal);
  text-align: center;
}
.carrossel-container {
  display: flex;
  align-items: center;
  position: relative;
}
.carrossel-btn {
  background: var(--cor-principal);
  color: var(--cor-destaque);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.carrossel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.carrossel {
  display: flex;
  width: 900px;
  max-width: 100vw;
  min-height: 260px;
}
.artigo-card {
  background: var(--branco);
  border: 2px solid var(--cor-secundaria);
  border-radius: 18px;
  box-shadow: 0 2px 8px #0001;
  padding: 24px 18px 18px 18px;
  min-width: 260px;
  max-width: 280px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border 0.2s;
  margin-right: 20px;
}
.artigo-card:hover {
  border: 2px solid var(--cor-destaque);
}
.artigo-card h3 {
  color: var(--cor-principal);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.artigo-card p {
  color: #333;
  font-size: 1rem;
  margin-bottom: 18px;
}
.artigo-card a {
  color: var(--cor-secundaria);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--cor-destaque);
  transition: color 0.2s;
}
.artigo-card a:hover {
  color: var(--cor-principal);
}
.artigo-card:not(:last-child) {
  margin-right: 20px;
}
.artigo-card:last-child {
  margin-right: 0; /* Remove o espaço do último card */
}

/* Sobre */
.sobre-section {
  background: var(--branco);
  padding: 56px 8vw 56px 8vw;
  display: flex;
  align-items: center;
  /*gap: 48px;*/
  flex-wrap: wrap;
  justify-content: center;
}
.sobre-foto {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cor-secundaria);
  box-shadow: 0 2px 12px #0001;
  background: var(--cinza);
}
.sobre-desc {
  flex: 1 1 320px;
  max-width: 600px;
}
.sobre-desc h2 {
  color: var(--cor-principal);
  font-size: 2rem;
  margin-bottom: 12px;
}
.sobre-desc p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--cor-principal);
  color: var(--branco);
  text-align: center;
  padding: 24px 8vw;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Responsivo */
@media (max-width: 1100px) {
  .carrossel {
    width: 100vw;
  }
  .artigo-card {
    min-width: 220px;
    max-width: 240px;
    margin-right: 12px;
  }
  .artigo-card:not(:last-child) {
    margin-right: 12px;
  }
  .artigo-card:last-child {
    margin-right: 0;
  }
}
@media (max-width: 900px) {
  .carrossel {
    width: 98vw;
  }
  .sobre-section {
    flex-direction: column;
    /*gap: 32px;*/
    text-align: center;
  }
  .sobre-desc {
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  header,
  .hero,
  .carrossel-section,
  .sobre-section,
  footer {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .carrossel {
    width: 96vw;
  }
  .artigo-card:not(:last-child) {
    margin-right: 8px;
  }
  .artigo-card {
    min-width: 180px;
    max-width: 200px;
    padding: 16px 8px 12px 8px;
    margin-right: 8px;
  }
  .artigo-card:last-child {
    margin-right: 0;
  }
}
@media (max-width: 600px) {
  .carrossel {
    width: 90vw;
  }
  .artigo-card {
    min-width: 140px;
    max-width: 160px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .carrossel-title,
  .sobre-desc h2 {
    font-size: 1.3rem;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  -webkit-overflow-scrolling: touch;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--branco);
  color: var(--cor-principal);
  border-radius: 16px;
  max-width: 500px;
  width: 92vw;
  max-height: 80vh;
  overflow: hidden;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 8px 32px #0003;
  position: relative;
  animation: modalIn 0.2s;
  display: flex;
  flex-direction: column;
}
.modal-scroll {
  overflow-y: auto;
  border-radius: inherit;
  max-height: 60vh;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
@keyframes modalIn {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.modal-close {
  position: absolute;
  top: 0px;
  right: 9px;
  font-size: 2rem;
  color: var(--cor-principal);
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--cor-destaque);
}
@media (max-width: 600px) {
  .modal-content {
    padding: 18px 8px 12px 8px;
    max-width: 98vw;
  }
}
