/*
Theme Name: CEDAF - UFV
Author: Edson Ney
Author URI: 
Version: 1.0
*/

/* ==========================================
   RESET E VARIÁVEIS DE ESTILO
   ========================================== */
:root {
  --primary-color: #0d522c;   /* Verde Institucional CEDAF/UFV */
  --primary-hover: #07381d;
  --secondary-color: #d99b26; /* Dourado / Amarelo UFV */
  --dark-color: #222222;
  --light-bg: #f4f6f8;
  --white: #ffffff;
  --text-color: #444444;
  --border-color: #e0e0e0;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Inter Tight", sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 14px;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
	text-decoration: none;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", sans-serif;
	font-weight: 600;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3%;
}

.section-title {
  font-size: 14px;
  color: #000;
  margin-bottom: 20px;
  padding: 4px 14px 4px 10px;
  background: #fff;
  display: flex;
  border-radius: 4px;
  align-items: center;
  font-weight: bold;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   HEADER & TOPO
   ========================================== */
header .top-bar {
  background-color: #002956;
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 0;
}

header .top-bar .top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .top-bar .top-bar-content .site-desc {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
}

header .top-bar .top-social a {
  color: var(--white);
  margin-left: 12px;
}

header .top-bar .top-social a:hover {
  color: var(--secondary-color);
}

header .logo-bar {
  background-color: #fff;
  padding: 50px 0;
}

header .logo-bar a {
  display: flex;
  margin: 0;
  padding: 0;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	transition: all 0.2s;
}

header .logo-bar a img {
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	transition: all 0.2s;
}

header .logo-bar a:hover img {
	opacity: .8;
}

header .logo-bar .logo-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo-bar img.logo-cedaf {
  max-height: 61px;
  width: auto;
}

header .logo-bar img.logo-ufv {
  max-height: 65px;
  width: auto;
}

/* ==========================================
   MENU DE NAVEGAÇÃO PRINCIPAL
   ========================================== */
.main-nav {
  background-color: #e7e7e7;
  position: relative;
  z-index: 1000;
  font-family: "Inter Tight", sans-serif;
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.menu-list > li {
  position: relative;
}

.menu-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  color: #333;
  font-weight: 600;
  line-height: normal;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Destaque: Hover, Item Ativo e Menu Aberto por Clique */
.menu-list > li:hover > a,
.menu-list > li > a.active,
.menu-list > li.has-dropdown.open > a {
  background-color: #489663;
  color: #fff;
}

/* ==========================================
   DROPDOWN NÍVEL 1 (ABERTURA POR CLIQUE)
   ========================================== */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  border-top: 0px solid #ffffff;
  z-index: 1001;
}

.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown li {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.dropdown li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  color: #252525;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all 0.2s ease;
}

.dropdown li a:hover,
.dropdown li.has-subdropdown.open > a {
  background-color: var(--light-bg);
  color: #252525;
  padding-left: 20px;
}

/* ==========================================
   SUB-DROPDOWN NÍVEL 2 (ABERTURA POR CLIQUE)
   ========================================== */
.subdropdown {
  position: absolute;
  left: 100%;
  top: 0;
  width: 240px;
  background-color: #f4f6f8;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1002;
}

.has-subdropdown.open > .subdropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* ==========================================
   ROTAÇÃO E ANIMAÇÃO DAS SETAS
   ========================================== */
.has-dropdown > a i,
.has-subdropdown > a i {
  transition: transform 0.3s ease;
}

.has-dropdown.open > a > i,
.has-subdropdown.open > a > i {
  transform: rotate(180deg);
}

/* ==========================================
   CARROSSEL HERO COM OVERLAY TRAÇADO (GRID)
   ========================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  background-color: #000;
	margin-top: -40px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.carousel-overlay-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 2;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
	width: fit-content;
	max-width: 90%;
  bottom: 40px;
  left: 10%;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 20px 30px;
  border-left: 5px solid #ff9900;
  border-radius: 0;
  z-index: 3;
}

.carousel-caption h2 {
  font-size: 18px;
  letter-spacing: .5px;
  margin-bottom: 0;
  font-weight: 600;
	text-align: left;
}

.carousel-caption p {
  font-size: 15px;
  letter-spacing: .5px;
  margin: 0;
	text-align: left;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.carousel-prev:active,
.carousel-next:focus {
	outline: none;
} 

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

/* ==========================================
   ACESSO RÁPIDO
   ========================================== */
.quick-access {
  background-color: #fff;
  padding: 60px 0;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.quick-card {
  background: rgba(0, 0, 0, .05);
  padding: 20px 10px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-5px);
}

.quick-card .icon-box {
  width: 42px;
  height: 42px;
  color: #fff;
  background: #ff9900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 6px;
}

.quick-card span {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

/* ==========================================
   DESTAQUES E NOTÍCIAS
   ========================================== */
.highlights-news-section {
  background: #46956a url(img/imgnoticias.jpg) no-repeat top left;
  background-size: cover;
  padding: 50px 0 70px;
}

.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-two-columns h2.section-title i {
  color: #0f2b1c;
  margin: 0 5px 0 0;
}

.col-destaques h2 {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  width: 100%;
  letter-spacing: 1px;
  border-radius: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: row;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 4px 0;
}

.col-destaques h2 span i { font-size: 16px; }
.col-destaques h2 i {
  color: rgba(255, 255, 255, .4);
  font-weight: normal;
  font-size: 14px;
}

.destaque-card-box {
  position: relative;
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.destaque-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

.destaque-item.active {
  opacity: 1;
  visibility: visible;
}

.destaque-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destaque-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 20px;
  color: var(--white);
}

.destaque-overlay .badge {
  background-color: #489663;
  color: #fff;
  padding: 3px 10px 4px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .5px;
}

.destaque-overlay h3 {
  margin: 8px 0 15px 0;
  font-size: 18px;
  line-height: 25px;
}

/* Botões de Navegação dos Destaques */
.destaque-card-box {
  position: relative; /* Mantém as setas presas ao quadro */
}

.destaque-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  border-radius: 50%;
	padding: 2px 0 0 1px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.destaque-btn:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
	outline: none;
}

.destaque-btn:focus,
.destaque-btn:visited {
	outline: none;
}

.destaque-prev { left: 10px; }
.destaque-next { right: 10px; }

.btn-link {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.88rem;
}

.noticias-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.noticias-header h2 {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  width: 100%;
  letter-spacing: 1px;
  border-radius: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: row;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 4px 0;
}

.noticias-header h2 span i { font-size: 16px; }
.noticias-header h2 i {
  color: rgba(255, 255, 255, .4);
  font-weight: normal;
  font-size: 14px;
}

.btn-mais-noticias {
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
  background: #257449;
  width: fit-content;
  padding: 7px 10px 7px 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  line-height: normal;
}

.btn-mais-noticias:hover {
  background-color: #1f653f;
  color: #fff;
}

.noticias-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card {
  display: flex;
  background: rgba(255, 255, 255, .4);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #1f4d34;
  border-radius: 3px;
  overflow: hidden;
  padding: 8px 14px;
  gap: 3px;
  transition: all 0.3s ease;
}

.news-card:hover {
  background: rgba(255, 255, 255, .5);
}

.news-date {
  background: #489663;
  color: white;
  padding: 3px 0;
  border-radius: 3px;
  text-align: center;
  margin: 6px 0 0 0;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 26px;
  height: fit-content;
  display: none;
}

.news-date span {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

.news-body h4 {
  font-size: 0.92rem;
  color: #0f2b1c;
  margin-bottom: 0;
}

.news-body p {
  font-size: 13px;
  color: #0f2b1c;
  letter-spacing: .5px;
  margin: 0px;
}

/* ==========================================
   MULTIMÍDIA E GALERIA DE FOTOS
   ========================================== */
.multimedia-section,
.photo-gallery-section {
  padding: 60px 0 50px;
  background-color: #1e3969;
}

.multimedia-section h2 {
  background-color: transparent;
  padding: 0;
  color: #fff;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  margin: -75px auto 30px;
  text-transform: uppercase;
}

.multimedia-section h2 i {
  margin: 0 6px -10px 0;
  border: 8px solid #1e3969;
  color: #ffffff;
  background-color: #1e3969;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
}

.photo-gallery-section {
  background-color: var(--white);
  padding: 40px 0 50px;
}

.photo-gallery-section h2 {
  background-color: transparent;
  padding: 0;
  color: #000;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  margin: -55px auto 26px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.photo-gallery-section h2 i {
  margin: 0 0 -10px 0;
  border: 10px solid #fff;
  color: #ff9900;
  background-color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
}

.multimedia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 10px 0 30px 0;
}

.multimedia-grid .multimedia-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1% 1% 1% 0;
  background: rgba(255, 255, 255, .1);
  padding: 20px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}

.multimedia-grid .multimedia-info h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .5px;
}

.multimedia-grid .multimedia-info p {
  font-size: 13px;
  letter-spacing: 1px;
}

main {
  background-color: #f5f5f5;
  padding: 40px 0 0 0;
}

main p {
  margin-bottom: 10px;
}

main .text .titulos { 
	margin: 0 0 25px 0; 
	display: flex; 
	flex-direction: row; 
	justify-content: flex-start; 
	align-items: center;
	border-bottom: 1px dotted #cdcdcd;
  font-family: "Inter Tight", sans-serif;
}
main .text .titulos h2 { 
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: inherit;
  color: #489563;
  text-transform: uppercase;
  margin: 0 0 0 3px;
  font-family: "Inter Tight", sans-serif;
}
main .text .titulos h3 { 
  width: fit-content;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: inherit;
  margin: 0 2px 0 0;
  font-family: "Inter Tight", sans-serif;
}
main .text .titulos i { 
	font-size: 21px;
  line-height: 21px;
}

.pages {
  width: 90%;
  max-width: 1200px;
  background: #fff;
  margin: 0 auto 40px;
  padding: 30px;
  display: flex;
  flex-direction: row;
  border-radius: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pages .text {
  width: 76%;
}

.pages .text h2 {
  color: #489563;
  font-weight: 600;
  font-size: 33px;
  letter-spacing: 0;
  line-height: 35px;
  margin: 0 0 25px 0;
}

.pages .text h3 {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
}

.pages .text h4 {
  margin: 0 0 20px 0;
  background-color: #5f5a57;
  color: #fff;
  width: fit-content;
  padding: 6px 8px;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 14px;
  border-radius: 3px;
}

.pages .listanoticias .contnoticias {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.pages .listanoticias .contnoticias a {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border: 1px solid #ebe9e9;
  color: #1f4d34;
  border-radius: 3px;
  overflow: hidden;
  padding: 15px 14px;
  gap: 3px;
  margin: 0 0 5px 0;
 width: 31%;
  transition: all 0.3s ease;
}

.pages .listanoticias .contnoticias a h3 {
  font-weight: 600;
  margin: 0 0 10px 0;
  font-size: 12.5px;
}

.pages .listanoticias .contnoticias a h4 {
  font-size: 0.92rem;
  color: #0f2b1c;
  margin-bottom: 0;
}

.pages .listanoticias .contnoticias a p {
  margin: 0px;
  line-height: normal;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.pages .listanoticias .contnoticias a:hover {
  background: #eaeaea;
  border: 1px solid #d7d7d7;
}

.pages .text .featured-box {
  background: #f5f2f2;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.pages .text blockquote {
  background: #f5f2f2;
  padding: 20px 20px 10px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.pages .text .box-item {
  margin-bottom: 10px;
}

.pages .text img.right {
  max-width: 300px;
  float: right;
  border-radius: 6px;
}

.sidebar {
  width: 20%;
}

.sidebar .box-quick-access {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.sidebar .box-quick-access a {
  width: 100%;
  background: #46956a url(img/imgnoticias.jpg) no-repeat top left;
  padding: 7px 9px;
  margin: 0 0 5px 0;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 0.5px;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	transition: all 0.2s;
}

.sidebar .box-quick-access a .icon-box {
  width: 34px;
  height: 34px;
  color: #4a8b63;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  margin: 0 7px 0 0;
  padding: 0 0 0 2px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-align: center;
}

.sidebar .box-quick-access a:hover {
  background: #347f4e;
}

.sidebar .box-quick-access a span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-youtube {
  display: inline-block;
  margin-top: 15px;
  background-color: #489663;
  color: white;
  padding: 5px 9px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.btn-youtube:hover {
  background-color: #337349;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 15px;
}

.gallery-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 3px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 calc((100% - 50px) / 6);
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.04);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-btn:hover {
  background-color: #ff9900;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: -14px; }
.gallery-next { right: -14px; }

main ul.pagination {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 20px 0;
  padding: 10px 0 0 0;
  border-top: 1px dotted #cdcdcd;
  border-radius: 0;
}

main ul.pagination li a {
  background: #489563;
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  line-height: normal;
  font-weight: 600;
  font-size: 12px;
}

main ul.pagination li a {
  background: #3d8456;
}

/* ==========================================
   ESTILO DO LIGHTBOX MODAL
   ========================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85vh;
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 6px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2001;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--secondary-color);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ==========================================
   CONTATO & RODAPÉ
   ========================================== */
.contact-section {
  padding: 50px 0;
  background: #f89500 url(img/imgcontato.jpg) no-repeat top left;
  background-size: cover;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-box,
.contact-info-box {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .8);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #3b2708;
}

.contact-form-box h2,
.contact-info-box h2 {
  color: #000;
  margin-bottom: 10px;
  position: relative !important;
  z-index: 1 !important;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: .5px;
  font-weight: 600;
}

.contact-form-box p,
.contact-info-box p {
  color: #333;
  font-weight: 500;
  letter-spacing: .5px;
  font-size: 13px;
}

.contact-form-box form {
  margin: 20px 0 0 0;
}

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  font-weight: 600;
  color: #333;
}

.btn-submit {
  background-color: #3b2708;
  color: white;
  border: none;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
}

.btn-submit:hover {
  background-color: #5b3b0c;
}

.info-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  border-bottom: 1px dotted rgba(0, 0, 0, .3);
  padding-bottom: 12px;
}

.info-list i {
  font-size: 1.3rem;
  color: #7c694c;
  margin-top: 4px;
}

.info-list strong {
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.footer-site {
  background: url(img/imgfooter.jpg) no-repeat top center;
  background-attachment: fixed;
  background-size: cover;
  color: #ccc;
  padding-top: 100px;
}

.footer-site .footer-social {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
}

.footer-site .footer-social h4 {
	font-size: 16px;
	letter-spacing: .05px;
	font-weight: 700;
}

.footer-site .footer-social .social-icons a {
  color: white;
  margin-left: 12px;
  font-size: 1.2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding-bottom: 100px;
}

.footer-content .footer-brand h3 {
	font-size: 20px;
	letter-spacing: .05px;
	font-weight: 700;
}

.footer-content .footer-brand p {
	font-size: 14px;
	letter-spacing: 2px;
	margin: 0;
}

.footer-bottom {
  background-color: #111;
  text-align: center;
  padding: 15px 0;
  font-size: 0.85rem;
  border-top: 1px solid #333;
}

.footer-bottom p {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .4);
}

/* ==========================================
   MEDIA QUERIES / RESPONSIVIDADE (AJUSTADO)
   ========================================== */

/* Prevenção global de rolagem horizontal em dispositivos móveis */
html, body {
  overflow-x: hidden;
}

@media (max-width: 1150px) {
  .menu-list {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .grid-two-columns,
  .multimedia-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .quick-access-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
    align-items: center;
  }

  .quick-access-grid .quick-card {
    padding: 15px 20px;
    flex: 1 1 calc(33.333% - 10px);
    min-width: 140px;
  }

  .pages {
    flex-direction: column;
    padding: 20px;
  }

  .pages .text {
    width: 100%;
  }

  /* Notícias internas ajustadas para 2 colunas em tablets */
  .pages .listanoticias .contnoticias a {
    width: calc(50% - 6px);
  }

  .sidebar {
    width: 100%;
  }

  .sidebar .box-quick-access {
    justify-content: center;
    margin-top: 20px;
  }

  .sidebar .box-quick-access a {
    width: fit-content;
    margin: 2px;
  }

  .sidebar .box-quick-access a .icon-box {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .gallery-item {
    flex: 0 0 calc((100% - 30px) / 4);
  }

  /* Ajuste de profundidade dos dropdowns em telas menores */
  .subdropdown {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  /* Redução progressiva da altura do Carrossel Hero */
  .carousel-container {
    height: 340px;
  }

  .carousel-caption {
    bottom: 20px;
    padding: 12px 18px;
  }

  .carousel-caption h2 {
    font-size: 15px;
  }

  .carousel-caption p {
    font-size: 13px;
  }

  /* Imagens com float dentro do conteúdo passam para bloco centralizado */
  .pages .text img.right,
  .alignright,
  .alignleft {
    float: none !important;
    display: block;
    margin: 15px auto !important;
    max-width: 100%;
    height: auto;
  }

  /* Rodapé empilhado e centralizado */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding-bottom: 50px;
  }

  .footer-site .footer-social {
    align-items: center;
  }

  .destaque-card-box {
    height: 300px;
  }
}

@media (max-width: 720px) {
  header .top-bar .top-bar-content {
    flex-direction: column;
    gap: 5px;
  }

  header .top-bar .top-bar-content .site-desc {
    margin: 0;
    text-align: center;
  }

  header .logo-bar {
    padding: 20px 0;
  }

  header .logo-bar .logo-bar-content {
    flex-direction: column;
    gap: 15px;
  }

  header .logo-bar .logo-bar-content .logo-right {
    margin-top: 0;
  }

  .carousel-caption {
    max-width: 90%;
    width: 90%;
    left: 5%;
  }

  .footer-site {
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    height: 260px;
  }

  /* Notícias internas e botões de acesso rápido em 1 coluna */
  .pages .listanoticias .contnoticias a {
    width: 100%;
  }

  .quick-access-grid .quick-card {
    flex: 1 1 calc(50% - 10px);
  }

  .gallery-item {
    flex: 0 0 calc((100% - 10px) / 2.3);
  }

  .gallery-prev { left: 2px; }
  .gallery-next { right: 2px; }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .destaque-card-box {
    height: 260px;
  }

  .destaque-overlay h3 {
    font-size: 15px;
    line-height: 20px;
  }
}


/* ==========================================
   WORDPRESS CORE CLASSES
   ========================================== */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone,
.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}