/* =============================
   Departamento Modelo — HTML puro (sem build, sem CMS, sem banco de dados)
   Para editar cores/textos: procure a seção correspondente pelos comentários abaixo.
============================= */

:root {
  --primary: #9B1B36;
  --primary-dark: #7a1529;
  --secondary: #D98C2B;
  --dark: #2B2B2B;
  --gray-700: #4a4a4a;
  --gray-500: #767676;
  --gray-200: #e4e4e4;
  --gray-100: #f2f2f2;
  --surface: #F4F4F4;
  --white: #ffffff;
  --edital: #1a6f5c;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(43, 43, 43, .08);
  --shadow-md: 0 12px 32px rgba(43, 43, 43, .12);
  --shadow-lg: 0 24px 60px rgba(43, 43, 43, .18);
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-700); line-height: 1.65; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.25; font-weight: 600; }

.section { padding: 88px 0; }
.section-surface { background: var(--surface); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--gray-500); font-size: 16px; }

.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title-row h2 { font-size: clamp(24px, 3.5vw, 30px); position: relative; padding-bottom: 14px; }
.section-title-row h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--primary); }

.lead { font-size: 17px; color: var(--gray-700); margin-bottom: 16px; }
.lead-center { font-size: 17px; color: var(--gray-500); text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: all .25s ease; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 24px rgba(155,27,54,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--surface); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 1.5px solid var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 20px; }
.btn-sm.active, .btn-sm:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== Cabeçalho / menu ===== */
header.site-header { position: sticky; top: 0; z-index: 500; background: var(--white); border-bottom: 1px solid var(--gray-200); transition: box-shadow .25s ease; }
header.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--dark); }
.logo span { color: var(--primary); }
.logo .logo-badge { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #c53a5a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; overflow: hidden; }
.logo .logo-badge-image { width: 54px; height: 96px; padding: 4px; border-radius: 4px; background: var(--white); border: 1px solid var(--gray-200); }
.logo .logo-badge-image img { width: 100%; height: 100%; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { font-weight: 500; font-size: 14.5px; color: var(--dark); padding: 8px 0; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--primary); }
.has-dropdown .dropdown { position: absolute; top: calc(100% + 14px); left: 0; background: var(--white); min-width: 210px; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--gray-700); }
.dropdown li a:hover { background: var(--surface); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--gray-200); align-items: center; justify-content: center; font-size: 20px; color: var(--dark); }

/* ===== Breadcrumb (topo das páginas internas) ===== */
.breadcrumb-hero { background: linear-gradient(120deg, var(--dark), #3a3a3a); padding: 50px 0; text-align: center; }
.breadcrumb-hero h1 { color: var(--white); font-size: clamp(24px, 4vw, 32px); margin-bottom: 12px; }
.breadcrumb-hero nav { display: flex; justify-content: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.breadcrumb-hero nav a { color: rgba(255,255,255,.85); }
.breadcrumb-hero nav a:hover { color: var(--secondary); }
.breadcrumb-hero nav span:not(:last-child)::after { content: "/"; margin-left: 8px; }

/* ===== Carrossel principal (home) ===== */
.hero-slider { position: relative; overflow: hidden; }
.hs-track { display: flex; transition: transform .6s ease; }
.hs-slide { position: relative; min-width: 100%; min-height: 480px; display: flex; align-items: center; text-align: center; background-size: cover; background-position: center; padding: 60px 0; }
.hs-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(155,27,54,.88), rgba(43,43,43,.78)); }
.hs-slide > .container { position: relative; z-index: 1; }
.hs-content { max-width: 640px; margin: 0 auto; color: #fff; }
.hs-content h1 { color: #fff; font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 16px; }
.hs-content p { max-width: 620px; margin: 0 auto 28px; font-size: 17px; color: rgba(255,255,255,.85); }
.hs-content .hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hs-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 2; transition: background .2s; }
.hs-nav:hover { background: rgba(255,255,255,.28); }
.hs-nav.prev { left: 24px; }
.hs-nav.next { right: 24px; }
.hs-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hs-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .25s; }
.hs-dots button.active { background: var(--white); width: 26px; border-radius: 6px; }

/* ===== Carrossel de fotos (genérico) ===== */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 320px; object-fit: cover; }
.carousel.plain .carousel-slide img { height: 260px; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); color: #fff; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s; z-index: 2; }
.carousel-nav:hover { background: var(--white); }
.carousel-nav.prev { left: 14px; }
.carousel-nav.next { right: 14px; }
.carousel-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 8px; z-index: 2; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .2s; }
.carousel-dots button.active { background: var(--white); width: 22px; border-radius: 5px; }

/* ===== Cards com ícone (destaques / serviços / cursos / programas / contato) ===== */
.icon-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.icon-cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.icon-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 34px 26px; text-align: center; transition: transform .25s, box-shadow .25s; }
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.icon-card .icon-circle { width: 58px; height: 58px; border-radius: 50%; background: rgba(155,27,54,.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 18px; }
.icon-card h3 { font-size: 17px; margin-bottom: 10px; }
.icon-card p { font-size: 14px; color: var(--gray-500); margin-bottom: 14px; }
.icon-card .card-link { font-size: 13.5px; font-weight: 700; color: var(--primary); }

/* ===== Cards de notícia ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; height: 100%; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card-body { padding: 20px 22px 24px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 5px 12px; border-radius: 20px; }
.badge-noticia { background: rgba(155,27,54,.1); color: var(--primary); }
.badge-edital { background: rgba(26,111,92,.1); color: var(--edital); }
.news-date { font-size: 12.5px; color: var(--gray-500); margin-left: 8px; }
.news-card-body h3 { font-size: 16px; margin: 12px 0 8px; }
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p { font-size: 13.5px; color: var(--gray-500); }

.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.news-filters.years { margin-bottom: 30px; }
.news-count { font-size: 13.5px; color: var(--gray-500); margin-top: 28px; }

/* ===== Quem somos ===== */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 360px; object-fit: cover; }
.about-split h2 { font-size: clamp(24px, 3.5vw, 30px); margin-bottom: 16px; }
.about-split p { color: var(--gray-500); margin-bottom: 24px; }

.dot-list { display: grid; gap: 12px; margin: 22px 0; }
.dot-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--gray-700); }
.dot-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.body-text { white-space: pre-line; color: var(--gray-700); }

/* ===== Equipe (docentes / funcionários) ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-card img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.team-card h3 { font-size: 16px; margin-bottom: 6px; }
.team-card p { font-size: 13.5px; color: var(--gray-500); }
.empty-state { text-align: center; color: var(--gray-500); font-size: 15px; padding: 40px 0; }

/* ===== Página de notícia individual ===== */
.news-detail { max-width: 760px; margin: 0 auto; }
.news-detail h1 { font-size: clamp(24px, 4vw, 32px); margin: 16px 0; }
.news-detail .lead { font-size: 17px; color: var(--gray-700); margin-bottom: 20px; }
.news-detail img.cover { width: 100%; border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.news-detail .body-text { font-size: 15.5px; line-height: 1.8; }
.news-detail .back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 600; color: var(--primary); }

.contact-lead { text-align: center; max-width: 640px; margin: 0 auto 44px; color: var(--gray-500); }

/* ===== Rodapé ===== */
/* ===== Tutorial de edicao ===== */
.tutorial-page { background: linear-gradient(180deg, var(--white) 0%, #fafafa 100%); }
.tutorial-intro { max-width: 860px; margin: 0 auto 44px; text-align: center; }
.tutorial-intro .lead { color: var(--gray-700); margin-bottom: 22px; }
.tutorial-layout { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; }
.tutorial-sidebar { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.tutorial-sidebar h2 { font-size: 16px; margin-bottom: 14px; }
.tutorial-sidebar a { display: block; padding: 9px 0; color: var(--gray-700); font-size: 14px; border-bottom: 1px solid var(--gray-100); }
.tutorial-sidebar a:last-child { border-bottom: 0; }
.tutorial-sidebar a:hover { color: var(--primary); }
.tutorial-content { display: grid; gap: 24px; }
.tutorial-block { position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); scroll-margin-top: 110px; }
.tutorial-step { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(155,27,54,.1); color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.tutorial-block h2 { font-size: 22px; margin-bottom: 12px; }
.tutorial-block h3 { font-size: 15px; margin-bottom: 8px; }
.tutorial-block p { margin-bottom: 14px; }
.tutorial-block code { background: var(--gray-100); color: var(--dark); border-radius: 5px; padding: 2px 6px; font-size: .92em; }
.tutorial-block pre { overflow-x: auto; background: #222; color: #f7f7f7; border-radius: 10px; padding: 16px; margin: 14px 0; line-height: 1.6; }
.tutorial-block pre code { background: transparent; color: inherit; padding: 0; }
.tip-box { border-left: 4px solid var(--secondary); background: rgba(217,140,43,.09); padding: 15px 18px; border-radius: 8px; margin-top: 16px; }
.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.table-wrap { overflow-x: auto; }
.tutorial-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tutorial-table th, .tutorial-table td { padding: 13px 14px; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.tutorial-table th { background: var(--surface); color: var(--dark); font-family: var(--font-head); font-size: 14px; }
.tutorial-list { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; margin: 14px 0; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist i { color: var(--edital); margin-top: 4px; }

footer.site-footer { background: var(--dark); color: rgba(255,255,255,.65); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-about .logo { color: #fff; margin-bottom: 16px; }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a { font-size: 14px; transition: color .2s; }
.footer-col ul a:hover { color: var(--secondary); }
.footer-links-cols { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact li i { color: var(--secondary); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: center; padding: 22px 0; font-size: 13px; text-align: center; }

/* ===== Botão voltar ao topo ===== */
.back-to-top { position: fixed; bottom: 26px; right: 26px; width: 50px; height: 50px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 400; color: var(--primary); font-size: 16px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.back-to-top-ring-bg { fill: none; stroke: var(--gray-200); stroke-width: 3; }
.back-to-top-ring-fill { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.back-to-top i { position: relative; z-index: 1; }

/* ===== Menu mobile ===== */
@media (max-width: 991px) {
  .nav-menu { position: fixed; top: 0; right: -100%; height: 100vh; width: min(300px, 85%); background: var(--white); flex-direction: column; align-items: flex-start; padding: 88px 26px 26px; gap: 4px; box-shadow: var(--shadow-lg); transition: right .3s ease; z-index: 600; overflow-y: auto; }
  .nav-menu.open { right: 0; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; display: none; padding: 0 0 0 14px; margin-top: 4px; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown .dropdown li a { color: var(--gray-500); }
  .nav-toggle { display: flex; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: all .3s; z-index: 550; }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  .hs-slide { min-height: 420px; }
  .hs-nav { display: none; }
  .icon-cards-grid, .news-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .tutorial-layout { grid-template-columns: 1fr; }
  .tutorial-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hs-slide { min-height: 380px; padding: 40px 0; }
  .icon-cards-grid, .icon-cards-grid.cols-2, .news-grid, .team-grid { grid-template-columns: 1fr; }
  .tutorial-block { padding: 24px 20px; }
  .example-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
