/*
Theme Name: CGDF - Semana de Controle
Theme URI: https://example.com/cgdf-theme
Author: CGDF
Author URI: https://example.com
Description: Tema para o site da Semana Internacional de Controle e Combate à Corrupção
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cgdf-theme
*/

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis de cor baseadas no design */
:root {
    --primary-color: hsl(355, 78%, 56%);
    --secondary-color: hsl(28, 92%, 50%);
    --accent-color: hsl(40, 96%, 53%);
    --dark-bg: hsl(216, 100%, 5%);
    --dark-secondary: hsl(216, 50%, 10%);
    --white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
}

/* Estilos globais */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 4px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    opacity: 0.8;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    min-width: 200px;
}

.search-form button {
    padding: 0.5rem 1rem;
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: var(--dark-secondary);
}

/* Hero Section */
.hero-section {
    background: var(--dark-bg);
}

.ante-rodape{
    background:url(images/bck-01.jpg);
    padding:80px 0;
}
.ante-rodape img{
    width:100%;
    margin-bottom:-7px;
}

.video-embed-container iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
    display: block;
    margin: 0 auto;
}


.hero-section img{
    width:100%;
    margin-bottom:-6px;
}

.speakers-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.speakers-track {
    display: flex;
    transition: transform 0.4s ease;
}

.speaker-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    margin: 0.75rem;
    background: #0b0b1a;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.speaker-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.speaker-name {
    color: #ff7a00;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.speaker-role {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.speaker-bio {
    color: #ccc;
    font-size: 0.9rem;
}
.speaker-prev, .speaker-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: background 0.3s;
}
.speaker-prev:hover, .speaker-next:hover {
    background: rgba(255,255,255,0.3);
}
.speaker-prev {
    left: 0px;
}
.speaker-next {
    right:0px;
}



.teatro-poupex{
    background:url(images/poupex.jpg)!important;
    text-align: center;
    background-repeat: no-repeat!important;
    background-size: cover!important;
}
.teatro-poupex img{
    opacity: 0;
}

.hero-pattern {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.1;
    transform: rotate(45deg);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-light);
    margin-bottom: 2rem;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px hsla(355, 78%, 56%, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px hsla(355, 78%, 56%, 0.4);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}
.content-section.type-speaker {
    margin-top:100px;
}
.section-dark {
    background: var(--dark-bg);
    color: var(--white);
}

.section-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Images */
.section-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Speaker Cards */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.speaker-card {
    background: #999;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 280px !important;   /* força largura */
    flex-shrink: 0;
}

.speaker-card img.speaker-photo {
    width: 100% !important;    /* ocupa toda largura do card */
    max-width: 250px !important; /* limite máximo */
    height: 220px !important;  /* altura fixa */
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
}

.speaker-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
}

.speaker-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--secondary-color);
}

.speaker-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.speaker-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.speaker-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
    background: #333;
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.logo-principal{
    height:60px;
    margin-top:15px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}


.container-agenda {
    max-width: 800px;
    margin: 160px auto;
    padding: 0 20px;

}
.lista-agenda {
    display: grid;
    gap: 20px;
}

.speakers-grid{
}
.speakers-grid a{
    text-decoration: none;
}
.speakers-grid .speaker-role{
    color:white;
}

.item-agenda {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
    background: #fff;
}
.item-agenda:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.item-agenda a {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}
.thumb-agenda img {
    width: 180px;
    height: 120px;
    object-fit: cover;
}
.conteudo-agenda {
    padding: 15px;
}
.conteudo-agenda h2 {
    margin: 0 0 8px;
    font-size: 20px;
}
.resumo {
    color: #555;
    font-size: 14px;
}
.data-publicacao {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

.container-single-agenda {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    margin-top:160px;
}
.titulo-evento {
    font-size: 28px;
    margin-bottom: 20px;
}
.imagem-evento img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.titulo-agenda{
    font-size:28px;
}

.conteudo-evento {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}
.data-evento {
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}
.btn-voltar {
    display: inline-block;
    margin-top: 15px;
    background: #0073aa;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}
.btn-voltar:hover {
    background: #005f8a;
}



.speakers-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.speakers-track {
    display: flex;
    transition: transform 0.4s ease;
}

.speaker-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    margin: 0.75rem;
    background: #0b0b1a;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.speaker-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.speaker-name {
    color: #ff7a00;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.speaker-role {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.speaker-bio {
    color: #ccc;
    font-size: 0.9rem;
}

.container-speakers {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}
.grid-speakers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.speaker-card {
    background: #444;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.speaker-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.speaker-name {
    color: #ff7a00;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.speaker-role {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.speaker-bio {
    color: #ccc;
    font-size: 0.9rem;
}


/* ===== BOTÕES ===== */
.speaker-prev, .speaker-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 2;
}
.speaker-prev:hover, .speaker-next:hover {
    background: rgba(255,255,255,0.3);
}
.speaker-prev {
    left: 0px;
}
.speaker-next {
    right: 0px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 991px) {
    .speaker-card {
        flex: 0 0 calc(50% - 1.5rem);
    }
}

@media (max-width: 600px) {
    .speaker-card {
        flex: 0 0 calc(100% - 1.5rem);
    }
    .speaker-prev {
        left: 10px;
    }
    .speaker-next {
        right: 10px;
    }
}



/* Responsive */
@media (max-width: 768px) {
    .main-navigation,
    .search-form {
        display: none;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height:auto!important;
        margin-top:115px;
    }

    .hero-section {
        width: 100%;
        height: 100vh; /* ocupa a altura total da tela */
        position: relative;
    }

    .hero-section .overlay {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .header-content{
        justify-content: center;
    }

    .grid-speakers {
        grid-template-columns: 1fr;
        justify-items: center;   /* centraliza horizontalmente */
    }

    .speaker-card {
        width: 90%;
        max-width: 320px;
    }
    
    .video-embed-container iframe {
    width: 80%;
    height: 350px;
}


}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}
