/* CABEÇALHO */
header { background: var(--green); color: #fff; }
.head { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 225px; }
.brand img { height: 76px; width: 72px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.brand > div { min-width: 0; }
.brand strong { font: bold 32px Georgia, serif; color: #fff; letter-spacing: 1px; }
.brand small { display: block; color: #e0eee5; font-size: 14px; line-height: 1.45; }
.search { display: flex; flex: 1; border: 2px solid var(--dark); border-radius: 30px; overflow: hidden; background: #fff; }
.search input { min-width: 0; flex: 1; padding: 15px 20px; border: 0; background: transparent; }
.search button { background: none; color: var(--green); font-size: 23px; padding: 0 18px; }
.head > .primary { background: #fff; color: var(--green); white-space: nowrap; }
.head > .outline { color: var(--dark); white-space: nowrap; }
.nav { border-top: 1px solid #ffffff20; border-bottom: 1px solid #ffffff20; }
.nav .wrap { display: flex; justify-content: space-between; overflow-x: auto; }
.nav a { padding: 18px 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav a:hover { background: #ffffff15; }

/* CARROSSEL */
.hero {
  position: relative; overflow: hidden; min-height: 430px; color: #fff; background-color: var(--dark);
  background-image: linear-gradient(90deg, #062d25f5 0%, #082e25d9 26%, #082e2566 48%, transparent 72%), var(--hero-photo);
  background-size: cover; background-position: center 5%; transition: background-color .6s;
}
.hero::after {
  content: ''; position: absolute; right: -150px; top: -230px; width: 420px; height: 680px;
  border: 55px solid #176749a6; transform: rotate(26deg); border-radius: 50%; pointer-events: none;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 430px;
  align-items: center; position: relative; z-index: 1; max-width: 1380px; padding-left: 85px; padding-right: 85px;
}
.hero .copy { padding: 25px 0; }
.hero h1 { font-size: 53px; font-weight: 800; line-height: 1.05; margin: 16px 0; text-shadow: 0 2px 15px #0002; }
.hero h1 em { color: #bce8ca; font-style: normal; }
.hero p { max-width: 430px; font-size: 15px; line-height: 1.5; color: #f0f7f2; }
.hero .eyebrow { color: #d0efdb; }
.hero .primary { margin-top: 5px; padding: 13px 23px; border: 1px solid #91c9a7; }
.hero .primary:hover { background: #21815c; }
.hero-facts { display: flex; gap: 14px; color: #e1f0e7; font-size: 14px; margin: 20px 0 10px; }
.hero-facts span { border: 1px solid #ffffff4a; border-radius: 20px; padding: 7px 12px; }
.hero-visual { height: 430px; }
.banner-note { display: block; font-size: 14px; color: #ffffffbd; margin: 18px 0 30px; }
.carousel-arrow {
  position: absolute; z-index: 2; top: 43%; width: 48px; height: 48px; border-radius: 50%;
  font: 44px/35px Arial; color: #54645b; background: #fff; border: 2px solid #ccd4ce; box-shadow: 0 3px 10px #0002;
}
.carousel-arrow:hover { background: var(--light); }
.carousel-arrow.prev { left: 25px; }
.carousel-arrow.next { right: 25px; }
.carousel-controls { position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; align-items: center; z-index: 2; }
.dots { display: flex; align-items: center; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; }
.dots button.active { background: #fff; }
.carousel-pause { background: none; border: 1px solid #ffffff70; color: #fff; border-radius: 50%; width: 25px; height: 25px; font-size: 14px; }

/* CATÁLOGO E FILTROS */
.finder { background: #f4f4f4; padding: 17px 0 30px; }
.breadcrumb { font-size: 14px; color: #6b7b71; margin-bottom: 24px; }
.finder h2 { text-align: center; font-size: 23px; margin: 0 0 24px; }
.finder-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr 1fr; gap: 16px; }
.finder-grid select { border: 2px solid var(--green); }
.finder-grid button { border-radius: 28px; box-shadow: 0 5px 10px #0002; }
.catalog { padding-top: 42px; padding-bottom: 55px; }
.section-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; gap: 15px; }
.section-top h2 { font-size: 28px; margin: 8px 0; }
.demo { font-size: 14px; background: #f4f0e8; color: #806539; border-radius: 4px; padding: 6px 9px; }
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid #dce5df; gap: 35px; margin: 25px 0; }
.tabs button { white-space: nowrap; padding: 16px 2px; background: none; color: #748078; font-weight: bold; border-bottom: 3px solid transparent; }
.tabs button.active { color: var(--green); border-color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.filters select { width: 200px; font-size: 14px; }
.filters button { background: none; color: var(--green); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.card { border: 1px solid #dfe7e1; border-radius: 12px; overflow: hidden; background: #fff; transition: .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px #103c3010; }
.card-art { height: 155px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-art::before, .card-art::after { content: ''; position: absolute; width: 200px; height: 200px; border: 1px solid #ffffff26; border-radius: 50%; right: -50px; top: -100px; }
.card-art::after { width: 260px; height: 260px; top: -120px; right: -80px; }
.book { font: 66px Georgia, serif; color: #d4e7dc; transform: rotate(-9deg); }
.tag { position: absolute; left: 18px; top: 17px; font-size: 14px; color: #fff; border: 1px solid #ffffff60; border-radius: 4px; padding: 5px 8px; letter-spacing: 1px; }
.card-body { padding: 24px; }
.card h3 { font: 23px Georgia, serif; margin: 0 0 12px; }
.card p { font-size: 14px; color: #69786e; line-height: 1.6; min-height: 43px; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #53695b; margin: 20px 0; }
.card-bottom { padding-top: 17px; border-top: 1px solid #e6ece7; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.card-bottom small { font-size: 14px; color: #7d8981; }

/* PÁGINA DE CURSO */
.course-banner { background: var(--dark); color: #fff; padding: 55px 0; }
.course-banner h1 { font: 46px Georgia, serif; margin: 20px 0; }
.back-course { color: #cae5d4; font-size: 14px; }
.course-subnav { display: flex; gap: 25px; flex-wrap: wrap; border-bottom: 1px solid #dce5df; padding: 22px 0; font-size: 14px; }
.course-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; padding-top: 40px; padding-bottom: 50px; }
.course-layout h2 { font: 27px Georgia, serif; }
.course-layout p { line-height: 1.8; color: #617368; }
.course-layout li { margin: 12px 0; }
.course-box { border: 1px solid #cfddd3; border-radius: 12px; padding: 27px; align-self: start; position: sticky; top: 25px; }
.course-box label { display: block; font-size: 14px; margin: 18px 0 8px; }
.course-box .primary { width: 100%; margin-top: 20px; }

/* INSTITUCIONAL */
.faq { padding-top: 40px; padding-bottom: 50px; }
.faq h2 { font: 30px Georgia, serif; }
.faq details, .course-layout details { border-bottom: 1px solid #dce5df; padding: 20px 0; }
.faq summary, .course-layout summary { font-weight: 700; font-size: 14px; }
.faq p { font-size: 14px; line-height: 1.8; color: #617368; }
.interest-areas { display: flex; gap: 12px; flex-wrap: wrap; }
.interest-areas button { background: var(--light); color: var(--green); border: 1px solid #d9e5dc; border-radius: 7px; padding: 17px; }
.journey { background: var(--light); padding: 45px 0; }
.journey .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.journey h2 { font: 32px/1.25 Georgia, serif; margin: 10px 0; }
.journey p { font-size: 14px; line-height: 1.8; color: #617368; }
.steps { display: grid; gap: 20px; }
.step { display: flex; gap: 17px; align-items: center; }
.step b { border: 1px solid #b8d1c1; color: var(--green); border-radius: 50%; padding: 13px; font-size: 14px; }
.step strong { font-size: 14px; }
.step p { margin: 4px 0; font-size: 14px; }

/* FORMULÁRIO E MODAL */
dialog { border: 0; border-radius: 14px; width: min(560px, 90vw); max-height: 90vh; overflow-y: auto; padding: 35px; color: var(--ink); }
dialog::backdrop { background: #08281dcc; backdrop-filter: blur(4px); }
dialog h2 { font: 30px Georgia, serif; }
dialog p { line-height: 1.7; color: #627168; }
.close { float: right; background: var(--light); border-radius: 50%; width: 30px; height: 30px; }
dialog input { padding: 13px; width: 100%; margin: 7px 0; border: 1px solid #cbd8cf; border-radius: 5px; }
dialog label { font-size: 14px; }
dialog .primary { margin-top: 15px; }
#enrollmentForm label { display: block; margin: 16px 0 7px; }
#enrollmentForm select, #enrollmentForm textarea { width: 100%; border: 1px solid #cbd8cf; border-radius: 6px; padding: 12px; }
#enrollmentForm .enroll-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
#enrollConsent { width: 18px; flex: 0 0 18px; margin: 2px 0; }
#enrollStatus { color: var(--wine); font-size: 14px; }
#enrollSubmit:disabled { opacity: .6; cursor: wait; }

/* RODAPÉ E REDES SOCIAIS */
footer { background: var(--dark); color: #cadbd1; padding: 35px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 30px; }
footer strong { font: 25px Georgia, serif; color: #fff; }
footer p { line-height: 1.8; }
.developer-credit { background: #071124; border-top: 1px solid #ffffff14; margin: 30px 0 -35px; padding: 27px 20px; }
.developer-credit a { display: flex; align-items: center; justify-content: center; gap: 22px; width: fit-content; margin: auto; color: #d3dbe9; }
.developer-label { font-size: 14px; }
.developer-brand { display: flex; gap: 8px; align-items: center; }
.developer-brand svg { width: 52px; height: 52px; }
.developer-name { display: block; font: bold 27px/1.2 Arial, sans-serif; letter-spacing: .6px; color: #e5e7ed; }
.developer-name > span { color: #557aff; }
.developer-tagline { display: block; font-size: 14px; letter-spacing: 1.2px; color: #d1d6e1; }
.social-float { position: fixed; right: 24px; bottom: 24px; z-index: 4; display: flex; flex-direction: column; gap: 12px; }
.social-float button { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 5px 18px #0003; transition: transform .18s, box-shadow .18s; }
.social-float button:hover { transform: translateY(-3px); box-shadow: 0 8px 22px #0004; }
.social-float svg { width: 28px; height: 28px; }
.social-whatsapp { background: #128c4e; }
.social-instagram { background: linear-gradient(35deg, #f5a623, #dc2743 45%, #833ab4 85%); }

/* RESPONSIVIDADE */
@media (max-width: 900px) {
  .head { flex-wrap: wrap; gap: 15px; }
  .brand { flex: 1; }
  .search { order: 3; flex-basis: 100%; }
  .hero .wrap { padding-left: 75px; padding-right: 75px; }
  .hero h1 { font-size: 42px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 800px) {
  .hero { background-position: 63% top; background-image: linear-gradient(90deg, #062d25f5, #082e25cc 48%, #082e2522), var(--hero-photo); }
  .hero .wrap { grid-template-columns: 1fr .6fr; }
  .hero::after { display: none; }
  .finder-grid, .cards { grid-template-columns: 1fr 1fr; }
  .section-top { align-items: start; }
  .section-top h2 { font-size: 24px; }
  .tabs { gap: 20px; }
  .tabs button { font-size: 14px; }
  .course-layout { grid-template-columns: 1fr; gap: 20px; }
  .course-banner h1 { font-size: 34px; }
  .course-box { position: static; }
  .journey .wrap { grid-template-columns: 1fr; gap: 25px; }
  footer .wrap { flex-direction: column; }
}
@media (max-width: 600px) {
  .head { gap: 10px; }
  .brand { min-width: 0; flex-basis: calc(100% - 110px); }
  .brand img { height: 58px; width: 54px; }
  .brand strong { font-size: 26px; }
  .brand small { font-size: 14px; line-height: 1.4; }
  .head > .primary { font-size: 14px; padding: 11px; }
  .head > .outline { font-size: 14px; padding: 10px; order: 4; }
  .head .search { flex-basis: calc(100% - 135px); }
  .hero { min-height: 440px; background-position: 67% top; background-image: linear-gradient(90deg, #062d25f5, #082e25df 43%, #082e2570), var(--hero-photo); }
  .hero .wrap { grid-template-columns: 1fr; min-height: 440px; padding: 22px 50px; }
  .hero .copy { padding: 0; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 14px; max-width: 280px; }
  .hero-visual { display: none; }
  .hero-facts { flex-wrap: wrap; gap: 8px; }
  .banner-note { margin-bottom: 35px; }
  .carousel-arrow { width: 32px; height: 32px; font-size: 31px; line-height: 24px; }
  .carousel-arrow.prev { left: 9px; }
  .carousel-arrow.next { right: 9px; }
  .finder h2 { font-size: 20px; }
  .finder-grid, .cards { grid-template-columns: 1fr; }
  .filters select { width: calc(50% - 10px); }
  .filters #sort { width: 100%; }
  .social-float { right: 16px; bottom: 16px; }
  .social-float button { width: 50px; height: 50px; }
  .developer-credit a { gap: 12px; }
  .developer-label { font-size: 14px; }
  .developer-name { font-size: 23px; }
  .developer-brand svg { width: 44px; height: 44px; }
  .developer-tagline { font-size: 14px; }
}
