/*!
Theme Name: Sesc - Serviço Social do Comercio
Theme URI: http://underscores.me/
Author: Maicon Patrique
Author URI: https://aibrazil.tec.br/
Description: Tema customizado para o Sesc - Sergipe
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sesc-tema
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Câmara Municipal is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}


/* 1. Garante que o HTML e o BODY ocupem 100% da altura */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: #404040;
	font-family: 'Libre Franklin', sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Libre Franklin', sans-serif;
}

p {
	margin-bottom: 1.5em;
}


/* Menu principal - nível 1 */
#mega-menu-wrap-menu-1 
#mega-menu-menu-1 
> li.mega-menu-item 
> a.mega-menu-link {
    font-family: 'Libre Franklin', sans-serif;
}

/* Submenus / Mega menu */
#mega-menu-wrap-menu-1 
#mega-menu-menu-1 
li.mega-menu-item 
ul.mega-sub-menu 
a.mega-menu-link {
    font-family: 'Libre Franklin', sans-serif;
}

/* Para itens do menu normal (flyout) */

/* Estiliza cada item da lista */
#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item {
  list-style: none;
  border-left: 2px solid #f5a623;
  margin: 0 0 15px 0; /* apenas margem inferior */
}



dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: none;
}

a:hover,
a:focus,
a:active {
	color: none;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.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;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}


/* Ajustes Gerais */
html, body {
    overflow-x: hidden; /* Desabilita o scroll horizontal */
    margin: 0;
    padding: 0;
}

.container, .row {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto; /* Garante que imagens não causem overflow */
}

 
 /*==================================================*/
/*     /* --- Variáveis de Cor (Paleta SESC-SE) --- */   
/*==================================================*/

:root {
    /* Cores Principais */
    --sesc-azul: #004c99;
    --sesc-azul-royal: #0047BB;
    --sesc-azul-escuro: #004c99;
    --sesc-amarelo: #f6be00;
    
     --sesc-laranja: #F39200;
     --sesc-verde: #28a745;
     --sesc-vermelho: #dc3545;
   
    /* Cores Neutras */
    --sesc-branco: #FFFFFF;
    --sesc-cinza-claro: #F5F5F5;
    --sesc-cinza-medio: #CCCCCC;
    --sesc-cinza-escuro: #333333;
    --sesc-preto: #000000;
    
     --sesc-borda: #e9ecef;
     --sesc-texto-p: #212529;
     --sesc-texto-s: #5a6168;
     --sesc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
     
         /* Cores das tags */
            --tag-saude: #00984a;
            --tag-institucional: #004C99;
            --tag-educacao: #007dc6;
            --tag-cultura: #d71921;
            --tag-sustentabilidade: #1d5eff;
            --tag-esporte: #677F00;
            --tag-lazer: #f36f21;
            --tag-assistencia: #66609f;
            --tag-turismo: #773DC1;
   
}


/*==================================================*/
/*    Largura do Tema para dispositivos maiores     */
/*==================================================*/


/* Muito grandes (1200px a 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1200px !important;
    }
}

/* Extra grandes (1400px a 1599.98px) */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .container {
        max-width: 1400px !important;
    }
}

/* Ultra grandes */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px !important;
    }
}



/*==================================================*/
/*          Título principal de posts e páginas     */
/*==================================================*/
.page-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #333;
    font-weight: 700;
    text-align: center;
    text-transform: none;
    margin-top: 0;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}



/*==================================================*/
/*           Breadcrumb              */
/*==================================================*/

/* Container do Breadcrumb.  */
.caminho-breadcrumb {
    margin-top: 20px;
    padding: 10px 15px; /* Aumentei um pouco o padding lateral */
    background-color: var(--sesc-cinza-claro, #F4F4F4); /* ANTES: #f9f9f9 */
    border-radius: 5px;
    border: 1px solid #e9ecef; /* Borda subtil para melhor definição */
}

.caminho-breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
}

/* 
 * Itens do Breadcrumb.
 * O item atual (não-link) e o separador usam o Cinza Médio.
 */
.caminho-breadcrumb-item {
    font-size: 14px;
    color: var(--sesc-cinza-medio, #A7A9AC); 
    display: inline;
    font-weight: 500; 
}


 /*Links do Breadcrumb */
.caminho-breadcrumb-link {
    color: var(--sesc-cinza-escuro, #58595B); /* ANTES: #063f1e */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}


.caminho-breadcrumb-link:hover {
    color: var(--sesc-amarelo, #F16522);
    text-decoration: none; /* Removi o sublinhado */
}

/* Separador */
.caminho-breadcrumb-item:not(:last-child)::after {
    content: " > ";
    color: var(--sesc-cinza-medio, #A7A9AC); 
    margin: 0 8px; /* Adiciona um pouco de espaço ao redor do separador */
}

/* último item (página atual) deve ter um destaque diferente. */

.caminho-breadcrumb-item:last-child {
    color: var(--sesc-cinza-escuro, #58595B);
    font-weight: 600; /* Mais peso para o item ativo */
}





/*==================================================*/
/*                 Banner Rotativo                  */
/*==================================================*/

.carousel-image-container {
    width: 100%;
    height: auto;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-image-container img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

/*==================================================*/
/*             Indicadores (Dots)                   */
/*==================================================*/

/* Container dos dots */
#carouselBanner .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    padding: 10px 0;
    list-style: none;
}

/* Estilo individual de cada dot - VERSÃO CLICÁVEL */
#carouselBanner .carousel-indicators button {
    width: 40px; /* Área maior para clique */
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 6px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: -9999px;
    overflow: hidden;
}

/* Círculo visual do dot */
#carouselBanner .carousel-indicators button::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Dot ativo */
#carouselBanner .carousel-indicators button.active::before {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Hover nos dots */
#carouselBanner .carousel-indicators button:hover::before {
    background: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/*==================================================*/
/*          Posicionamento das Setas                */
/*==================================================*/

/* Posiciona as setas nas extremidades laterais */
#carouselBanner .carousel-control-prev,
#carouselBanner .carousel-control-next {
    width: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
}

/* Seta da esquerda */
#carouselBanner .carousel-control-prev {
    left: 0;
}

/* Seta da direita */
#carouselBanner .carousel-control-next {
    right: 0;
}

/* Estilização dos ícones das setas */
#carouselBanner .carousel-control-prev-icon,
#carouselBanner .carousel-control-next-icon {
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}

/* Efeito hover para melhor interação */
#carouselBanner .carousel-control-prev:hover,
#carouselBanner .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/*==================================================*/
/*            Responsividade Mobile                 */
/*==================================================*/

@media (max-width: 768px) {
    .carousel-image-container {
        width: 100%;
        min-height: 98px;
        height: auto;
    }

    .carousel-image-container img {
        object-fit: contain;
        width: 100%;
        height: auto;
    }

    /* Ajustes das setas para mobile */
    #carouselBanner .carousel-control-prev,
    #carouselBanner .carousel-control-next {
        width: 8%;
    }

    #carouselBanner .carousel-control-prev-icon,
    #carouselBanner .carousel-control-next-icon {
        background-size: 16px 16px;
        width: 16px;
        height: 16px;
    }
    
    /* Ajustes dos dots para mobile */
    #carouselBanner .carousel-indicators {
        bottom: 15px;
    }
    
    #carouselBanner .carousel-indicators button {
        width: 35px;
        height: 35px;
        margin: 0 4px;
    }
    
    #carouselBanner .carousel-indicators button::before {
        width: 10px;
        height: 10px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    #carouselBanner .carousel-indicators {
        bottom: 10px;
    }
    
    #carouselBanner .carousel-indicators button {
        width: 30px;
        height: 30px;
        margin: 0 3px;
    }
    
    #carouselBanner .carousel-indicators button::before {
        width: 8px;
        height: 8px;
    }
}


/*
 * ===================================================================
 *  CSS do arquivo footer.php
  * ===================================================================
 */
 
 .site-footer {
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden; /* Remove scroll horizontal no rodapé */
}
 
	.site-footer {
		background-color: var(--sesc-cinza-claro);
		color: var(--sesc-cinza-escuro);
		padding: 60px 0 20px;
		font-size: 15px;
		line-height: 1.6;
	}

	.site-footer ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

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

	/* --- Layout Principal --- */
	.footer-main {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 40px;
		margin-bottom: 50px;
	}

	/* --- Títulos --- */
	.footer-col-title {
		color: var(--sesc-azul-royal);
		font-weight: 700;
		font-size: 1rem;
		margin-bottom: 20px;
		border-bottom: 3px solid var(--sesc-azul-royal);
		padding-bottom: 8px;
		display: inline-block;
	}

	/* --- Links --- */
	.footer-links-list li {
		margin-bottom: 10px;
	}
	.footer-links-list a:hover {
		color: var(--sesc-azul-royal);
		padding-left: 4px;
	}

	/* --- Coluna Contato --- */
	.footer-contact {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
	.footer-logo-wrapper {
		width: 180px;
	}
	.footer-info p {
		margin: 5px 0;
	}
	.footer-info strong {
		color: var(--sesc-azul-royal);
	}
	.footer-link-brasil a {
		background: var(--sesc-azul-royal);
		color: var(--sesc-branco);
		padding: 10px 20px;
		border-radius: 4px;
		font-weight: 600;
		text-transform: uppercase;
	}
	.footer-link-brasil a:hover {
		background: var(--sesc-azul-escuro);
	}

	/* --- Rodapé Inferior --- */
	.footer-bottom {
		border-top: 2px solid var(--sesc-cinza-medio);
		padding-top: 20px;
		text-align: center;
		font-size: 14px;
		color: var(--sesc-cinza-escuro);
	}

	/* --- Responsivo --- */
	@media (max-width: 1200px) {
		.footer-main {
			grid-template-columns: 1fr 1fr;
		}
	}
	@media (max-width: 768px) {
		.footer-main {
			grid-template-columns: 1fr;
			text-align: center;
		}
		.footer-col-title {
			margin-left: auto;
			margin-right: auto;
		}
		.footer-logo-wrapper {
			margin: 0 auto;
		}
		.footer-link-brasil {
			text-align: center;
		}
	}

/*
 * ===================================================================
 * CSS UNIVERSAL PARA PÁGINAS DE DETALHES (SINGLE POSTS)
 * Prefixo 'pg-' utilizado para evitar conflitos.
  * ===================================================================
 */


/* --- O Card Principal --- */
.pg-card-pro {
    background-color: var(--sesc-branco);
    border: 1px solid var(--sesc-cinza-medio);
    /* Destaque principal do card com a cor amarela */
    border-left: 4px solid var(--sesc-amarelo);
    padding: 2.5rem 3rem;
    margin-top: 0;
    border-radius: 6px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

/* --- Breadcrumb --- */
.custom-breadcrumb {
    margin-bottom: 1.5rem;
}

/* --- Cabeçalho com o Título --- */
.pg-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0;
    /* Título principal com a cor de maior destaque */
    color: var(--sesc-azul-escuro);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sesc-cinza-claro);
}

/* --- Seção de Detalhes --- */
.pg-details-section {
    font-size: 1rem;
}

/* --- Cada Linha de Detalhe --- */
.pg-detail-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.pg-detail-item strong {
    font-weight: 600;
    /* Rótulos com um cinza escuro para boa legibilidade */
    color: var(--sesc-cinza-escuro);
    text-align: left;
}

.pg-detail-item span, .pg-detail-item div {
    /* Conteúdo dos detalhes com a cor preta padrão para contraste */
    color: var(--sesc-preto);
    font-weight: 500;
}

.pg-detail-item.pg-detail-block {
    align-items: start;
    line-height: 1.7;
}

/* --- Seção de Anexos --- */
.pg-attachments-section {
    margin-top: 3rem;
}

.pg-attachments-section .pg-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    /* Subtítulos também com o azul escuro para consistência */
    color: var(--sesc-azul-escuro);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sesc-cinza-claro);
}

/* --- Lista de Anexos --- */
.pg-attachment-list {
    display: grid;
    gap: 1rem;
}

.pg-attachment-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--sesc-cinza-claro);
    border: 1px solid var(--sesc-cinza-medio);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.pg-attachment-item:hover {
       background-color: #e9ecef; 
       border-color: var(--sesc-azul);
       border-left-color: var(--sesc-laranja);
       transform: translateX(5px);
}

.pg-attachment-icon {
    font-size: 1.5rem;
    /* Ícones ganham o azul escuro para se destacarem */
    color: var(--sesc-azul-escuro);
    margin-right: 1rem;
}

.pg-attachment-info {
    display: flex;
    flex-direction: column;
}

.pg-attachment-title {
    font-weight: 600;
    /* Título do anexo com cinza escuro */
    color: var(--sesc-cinza-escuro);
}

.pg-attachment-meta {
    font-size: 0.875rem;
    /* Meta informações com cinza médio, para menor destaque */
    color: var(--sesc-cinza-medio);
}



/* =================================================================== */
/* CSS Unificado para Páginas de Arquivo (Licitações, PCG, etc.)       */
/* Integrado com a paleta de cores e identidade visual do Sesc.        */
/* =================================================================== */

.sesc-title {
    font-size: 2.5rem;
    color: var(--sesc-azul-escuro);
    border-bottom: 3px solid var(--sesc-amarelo);
    padding-bottom: 0px;
    margin-bottom: 30px;
    display: inline-block; /* Mantém a linha do tamanho do texto */
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .sesc-title {
        font-size: 1.8rem; /* Reduz de 2.5rem para 1.8rem */
        padding-bottom: 8px;
        margin-bottom: 20px;
        display: block; /* Em mobile, ocupa toda a largura */
        width: 100%;
    }
}

/* --- 3. Barra de Filtros (Formulários) --- */
.filters-bar {
    background-color: var(--sesc-cinza-claro); /* Fundo neutro e suave */
    border: 1px solid #e0e0e0; /* Borda um pouco mais suave que o cinza-médio */
    padding: 1.5rem;
    border-radius: 5px;
}

.filters-bar .form-label {
    font-size: 0.9em;
    color: var(--sesc-cinza-escuro);
    font-weight: bold;
}

.filters-bar input[type="search"],
.filters-bar select {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--sesc-cinza-escuro);
    background-color: var(--sesc-branco);
    border: 1px solid var(--sesc-cinza-medio);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Seta para o <select> usando uma cor neutra */
.filters-bar select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e" ); /* Cor da seta alterada para cinza-escuro */
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

/* Efeito de foco (:focus) usando a cor amarelo da paleta */
.filters-bar input[type="search"]:focus,
.filters-bar select:focus {
    border-color: var(--sesc-amarelo);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(243, 146, 0, 0.25); /* Sombra amarelo sutil (usando o RGB de --sesc-amarelo) */
}

/* --- 4. Botões --- */

/* Botão Primário (Buscar) */
.btn-sesc-primary {
    display: inline-block;
    font-weight: 600;
    line-height: 1.5;
     color: var(--sesc-cinza-escuro); 
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--sesc-amarelo); /* Cor primária do botão */
    border: 1px solid var(--sesc-amarelo);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    height: 48px;
    width: 100%;
}
.btn-sesc-primary:hover {
    background-color: var(--sesc-amarelo); 
    border-color: var(--sesc-amarelo);
    color: var(--sesc-cinza-escuro); 
     transform: translateY(-2px);
}

/* Botão Secundário (Ver Detalhes) */
.btn-sesc-secondary {
    background-color: transparent;
    color: var(--sesc-azul-royal); /* Cor do texto do botão */
    border: 2px solid var(--sesc-azul-royal); /* Cor da borda */
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-sesc-secondary:hover {
    background-color: var(--sesc-azul-royal); /* Preenchimento no hover */
    border-color: var(--sesc-azul-royal);
    color: var(--sesc-branco); /* Texto branco para contraste */
}

/* --- 5. Cards de Resultado --- */
.sesc-card {
    background-color: var(--sesc-branco);
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--sesc-amarelo); 
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: border-left-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.sesc-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.sesc-card-title a {
    color: var(--sesc-preto); /* Título do card com azul escuro */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.sesc-card-title a:hover {
    color: var(--sesc-azul-escuro); 
}

.sesc-card .card-meta-detalhada p {
    color: var(--sesc-cinza-escuro);
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.sesc-card .card-meta-detalhada strong {
    color: var(--sesc-cinza-escuro);
    font-weight: 600;
    min-width: 110px;
    display: inline-block;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    /* Centraliza APENAS o botão */
    .sesc-card .btn-sesc-secondary {
        display: block;
        margin: 15px auto 0;
        max-width: 280px;
        text-align: center;
    }
    
    /* Garante que outros elementos não sejam afetados */
    .sesc-card-title,
    .sesc-card-title a,
    .card-meta-detalhada,
    .card-meta-detalhada p,
    .card-meta-detalhada strong {
        text-align: left !important;
    }
}

/* ====================================================== */
/*  Estilos Unificados para Badges de Status
/* ====================================================== */

/* Estilo Base */
.sesc-badge {
    color: var(--sesc-branco);
    font-size: 0.85em;
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Classes Modificadoras de Cor (Padrão 'status-*') --- */

.sesc-badge.status-aberto {
    background-color: #28a745; /* Verde */
}

.sesc-badge.status-em-andamento {
    background-color: var(--sesc-amarelo);
    color: var(--sesc-preto); /* Garante a legibilidade */
}

.sesc-badge.status-andamento {
    background-color: var(--sesc-amarelo);
    color: var(--sesc-preto);
}

.sesc-badge.status-finalizado { 
    background-color: var(--sesc-cinza-escuro);
}

.sesc-badge.status-cancelado {
    background-color: #dc3545; /* Vermelho */
}

    

/* --- 6. Paginação --- */
.page-numbers {
    margin-top: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Itens da lista (<li>) */
.page-numbers li {
    margin: 0 2px;
}

/* Estilo dos botões de paginação (links <a> e o span .current) */
.page-numbers .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0;
    border: 1px solid var(--sesc-cinza-medio); /* Cor da borda padrão */
    color: var(--sesc-azul-escuro);             /* Cor do texto padrão */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Efeito ao passar o mouse (hover) */
.page-numbers .page-numbers:hover {
    background-color: var(--sesc-amarelo);
    color: var(--sesc-branco); 
    border-color: var(--sesc-cinza-medio);
}

/* Estilo do botão da página ATUAL */
.page-numbers .page-numbers.current {
    background-color: var(--sesc-amarelo); /* Cor de destaque principal */
    color: var(--sesc-branco);             /* Cor do texto para contraste */
    border-color: var(--sesc-amarelo);     /* Cor da borda igual ao fundo */
    cursor: default;
}

/* Estilo para as reticências (...) */
.page-numbers .page-numbers.dots {
    border: none;
    background-color: transparent;
}


/* --- 7. Mensagem de "Nenhum Resultado" --- */
.no-results-found {
    background-color: var(--sesc-cinza-claro);
    border: 1px dashed var(--sesc-cinza-medio);
    border-radius: 5px;
    padding: 3rem;
    margin-top: 2rem;
}
.no-results-found h2 {
    color: var(--sesc-cinza-escuro);
}
.no-results-found a {
    color: var(--sesc-amarelo-escuro); /* Link de ação com a cor de destaque */
    text-decoration: underline;
}
.no-results-found a:hover {
    color: var(--sesc-amarelo); 
}


/* ====================================================== */
/*         SEÇÃO DE ANEXOS das Páginas e Arquivos
/* ====================================================== */

   .sesc-attachments-section { 
       margin-top: 1rem; 
       padding-top: 2rem;
       border-top: 1px solid var(--sesc-borda);
   }
   
   .sesc-section-title { 
       font-size: 1.5rem; 
       color: var(--sesc-azul-escuro); 
       border-bottom: 2px solid var(--sesc-cinza-claro); 
       padding-bottom: 0.5rem; 
       margin-bottom: 1.5rem;
       }
   
   .attachment-list { 
       list-style: none; 
       padding: 0; 
       display: flex; 
       flex-direction: column; 
       gap: 1rem; 
   }
   
   .attachment-item a { 
       display: flex; 
       align-items: center; 
       gap: 15px; 
       padding: 1rem; 
       background-color: var(--sesc-cinza-claro); 
       border-radius: 8px; 
       text-decoration: none; 
       transition: all 0.3s ease; 
       border: 1px solid transparent;
   }
   
   .attachment-item a:hover { 
       background-color: #e9ecef; 
       border-color: var(--sesc-azul);
       border-left-color: var(--sesc-laranja);
       transform: translateX(5px);
   }
   
   .attachment-icon { 
       font-size: 1.8rem; 
       color: var(--sesc-azul-royal); 
   }
 
   .attachment-info { 
       text-align: left; 
       flex: 1;
   }
  
   .attachment-title { 
       font-weight: 600; 
       color: var(--sesc-azul-escuro); 
       display: block;
       margin-bottom: 3px;
   }
 
   .attachment-meta { 
       font-size: 0.85rem; 
       color: var(--sesc-texto-s);
   }


/* =================================================================== */
/*  Melhora o design do aviso de cookies do Plugin Cookie              */
/*   Notice & Compliance for GDPR / CCPA/                             */
/* =================================================================== */

/* Botão principal (Aceitar) */
#cookie-notice .cn-button {
    background-color: var(--sesc-azul-escuro)!important;
    color: var(--sesc-amarelo) !important; /* Texto preto para melhor leitura no amarelo */
    font-weight: bold;
    border-radius: 4px;
}

/* Link da Política de Privacidade */
#cookie-notice .cn-link {
    color: var(--sesc-branco) !important;
    text-decoration: underline !important;
    font-weight: normal;
    margin-left: 10px;
}

#cookie-notice .cn-link:hover {
    color: var(--sesc-amarelo) !important; /* Destaque no hover */
}



/* =================================================================== */
/*             ESTILOS PARA TABELAS DO EDITOR                         */
/* =================================================================== */


.wp-block-table table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--sesc-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.wp-block-table thead th,
.entry-content thead th {
    background: var(--sesc-azul);
    color: var(--sesc-branco);
    font-weight: 600;
    text-align: left;
    padding: 1.2rem 1.5rem;
    border-bottom: 3px solid var(--sesc-azul);
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.wp-block-table tbody td,
.entry-content tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sesc-borda);
    color: var(--sesc-texto-p);
    line-height: 1.6;
}

.wp-block-table tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even) {
    background: var(--sesc-cinza-claro);
}

.wp-block-table tbody tr:hover,
.entry-content tbody tr:hover {
    background: rgba(0, 92, 169, 0.05);
    transition: background 0.3s ease;
}

.wp-block-table tfoot td,
.entry-content tfoot td {
    background: var(--sesc-cinza-medio);
    color: var(--sesc-texto-s);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--sesc-cinza-escuro);
}

/* Bordas arredondadas */
.wp-block-table table,
.entry-content table {
    border: 1px solid var(--sesc-borda);
}

/* Responsividade */
@media (max-width: 768px) {
    .wp-block-table table,
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Estilo alternativo para tabelas com classe .destaque */
.wp-block-table table.destaque thead th,
.entry-content table.destaque thead th {
    background: var(--sesc-laranja);
    border-bottom-color: var(--sesc-amarelo);
}

/* Ajuste para blocos Gutenberg */
.wp-block-table__scroll-wrapper {
    border-radius: 8px;
}
