/*
 * INTEGRAR+ — camada de "requinte" por cima do tema original (style.css).
 * Só aspeto visual: não altera textos nem conteúdos. Para reverter, basta retirar
 * requinte.css / requinte.js do layout (resources/views/layout/master.blade.php).
 */
:root {
    --int-azul: #13A1DC;
    --int-azul-escuro: #0B77A6;
    --int-azul-claro: #E8F6FC;
    --int-noite: #0E2A3B;
    --int-noite-2: #133B52;
    --int-texto: #33424E;
    --int-suave: #6B7884;
    --int-fundo: #FBFAF8;
    --int-quente: #F4F2EE;
    --int-borda: #E7E4DE;
    --int-sombra: 0 1px 2px rgba(14, 42, 59, .04), 0 8px 24px rgba(14, 42, 59, .06);
    --int-sombra-alta: 0 2px 4px rgba(14, 42, 59, .05), 0 18px 40px rgba(14, 42, 59, .12);
    --int-raio: 18px;
}

/* ---------- Base e tipografia ---------- */
html, body { background: var(--int-fundo); }
body {
    font-family: 'Inter', 'Quicksand', system-ui, -apple-system, sans-serif;
    color: var(--int-texto);
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Quicksand', sans-serif; color: var(--int-noite); letter-spacing: -.01em; }
p, li { font-size: 16.5px; line-height: 1.75; color: var(--int-texto); }
a { transition: color .2s ease; }
::selection { background: rgba(19, 161, 220, .18); }

.section-title h2 {
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--int-noite);
}
.section-title h2::after {
    content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin-top: 18px;
    background: linear-gradient(90deg, var(--int-azul), #7FD3F5);
}
.section-title.text-center h2::after { margin-left: auto; margin-right: auto; }
.section-title h2 b { color: var(--int-azul); font-weight: 700; }

.spad { padding-top: 110px; padding-bottom: 110px; }

/* ---------- Cabeçalho: vidro fosco, sombra ao fazer scroll ---------- */
.header-section { position: fixed; top: 0; left: 0; right: 0; transition: box-shadow .3s ease, background .3s ease; }
.header-section .bg-overlay::after {
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}
.header-section.rolado { box-shadow: 0 6px 24px rgba(14, 42, 59, .08); }
.header-section.rolado .bg-overlay::after { background: rgba(255, 255, 255, .92); }
.header-section .logo img { transition: transform .3s ease; }

/* ---------- Hero ---------- */
.hero-items .single-hero-item {
    position: relative;
    height: auto;
    min-height: min(92vh, 860px);
    padding-top: 190px;
    padding-bottom: 110px;
    background-position: center;
}
.hero-items .single-hero-item::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(100deg, rgba(14, 42, 59, .90) 0%, rgba(14, 42, 59, .72) 42%, rgba(14, 42, 59, .25) 75%, rgba(14, 42, 59, .05) 100%),
        linear-gradient(0deg, rgba(14, 42, 59, .35), rgba(14, 42, 59, 0) 40%);
}
.hero-items .single-hero-item .container { position: relative; z-index: 1; }
/* A caixa translúcida (estilo inline) dá lugar ao degradê sobre a foto. */
.hero-items .single-hero-item .col-lg-9 > div[style] {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 760px;
}
.hero-items .single-hero-item h1,
.hero-items .single-hero-item h1[style] {
    color: #fff !important;
    text-transform: none;
    font-weight: 700 !important;
    font-size: clamp(30px, 3.6vw, 50px);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 26px;
}
.hero-items .single-hero-item h3,
.hero-items .single-hero-item h3[style],
.hero-items .single-hero-item .text-black {
    color: rgba(255, 255, 255, .88) !important;
    font-family: 'Inter', sans-serif;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.7;
}
.hero-items .single-hero-item h3 b { font-weight: 500; }
.hero-items .single-hero-item br + br { display: none; }
.hero-items .single-hero-item span,
.hero-items .single-hero-item span[style] {
    color: #fff !important; font-size: 18px !important; font-family: 'Inter', sans-serif;
}
.hero-items .single-hero-item a[href^="mailto"] { color: #8FD9F7; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.hero-items .single-hero-item a[href^="mailto"]:hover { color: #fff; }
.hero-items .single-hero-item .primary-btn { margin-top: 30px !important; }
.hero-items .owl-dots button { transition: transform .2s ease; }

/* ---------- Botões ---------- */
.primary-btn {
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--int-azul) 0%, var(--int-azul-escuro) 100%) !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    padding: 17px 38px;
    box-shadow: 0 8px 20px rgba(19, 161, 220, .28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(19, 161, 220, .36); filter: saturate(1.1); }
.primary-btn:active { transform: translateY(0); }

/* ---------- Faixa INTEGRAR+ / contagem ---------- */
.event-counter {
    background: radial-gradient(120% 140% at 0% 0%, var(--int-noite-2) 0%, var(--int-noite) 60%) !important;
    padding: 70px 0;
}
.event-counter .event-name h2 { color: #fff; font-weight: 700; letter-spacing: -.02em; }
.event-counter .event-name h4 { color: rgba(255, 255, 255, .8); font-family: 'Inter', sans-serif; font-size: 20px; line-height: 1.6; }
.event-counter .countdown-timer .cd-item {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 14px 18px;
    margin-right: 14px;
    min-width: 96px;
    text-align: center;
}
.event-counter .countdown-timer .cd-item span { font-weight: 700; font-size: 44px; line-height: 1.1; }
.event-counter .countdown-timer .cd-item p { color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }

/* ---------- "Sobre a formação": cartões ---------- */
.speak-about .row > [class*="col-"] { display: flex; }
.speak-text {
    flex: 1;
    height: auto;
    background: #fff;
    border: 1px solid var(--int-borda);
    border-radius: var(--int-raio);
    padding: 38px 32px 34px;
    box-shadow: var(--int-sombra);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.speak-text:after { background: linear-gradient(135deg, var(--int-azul), #7FD3F5); border-radius: var(--int-raio); }
.speak-text:hover { transform: translateY(-4px); box-shadow: var(--int-sombra-alta); border-color: transparent; }
.speak-text:hover:after { opacity: .05; }
.speak-text h2 img {
    width: 64px !important; height: 64px; object-fit: contain; padding: 12px;
    background: var(--int-azul-claro); border-radius: 16px;
}
.speak-text .speaker-name h4 { font-size: 20px; font-weight: 700; color: var(--int-noite); }
.speak-text .speaker-name h4 span, .speak-text p, .speak-text li { font-family: 'Inter', sans-serif; font-size: 15.5px; line-height: 1.7; font-weight: 400; color: var(--int-texto); }

/* ---------- Secções com imagem lateral (programa, curiosidades, candidatura) ---------- */
.workshop-section { background: var(--int-quente); }
.workshop-text h4 { font-weight: 600; line-height: 1.5; color: var(--int-noite); }
.workshop-text p, .workshop-text li { text-align: left; }
.workshop-text h2 { font-weight: 700; letter-spacing: -.02em; color: var(--int-noite); }

/* ---------- 3 motivos e Júri: cartões ---------- */
.speaker-section .speakers-about {
    height: calc(100% - 30px);
    margin-bottom: 30px;
    padding: 28px 26px 30px;
    background: #fff;
    border: 1px solid var(--int-borda);
    border-radius: var(--int-raio);
    box-shadow: var(--int-sombra);
    transition: transform .3s ease, box-shadow .3s ease;
}
.speaker-section .speakers-about:hover { transform: translateY(-4px); box-shadow: var(--int-sombra-alta); }
.speaker-section .speaker-img img[width] {
    width: 84px !important; height: 84px; object-fit: contain; padding: 16px;
    background: var(--int-azul-claro); border-radius: 22px;
}
.speaker-all .speaker-img { margin: -28px -26px 22px; overflow: hidden; border-radius: var(--int-raio) var(--int-raio) 0 0; }
.speaker-all .speaker-img img {
    width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 20%;
    border-radius: 0; transition: transform .6s ease;
}
.speaker-all .speakers-about:hover .speaker-img img { transform: scale(1.03); }
.speakers-about .speaker-text h3 { font-size: 22px; font-weight: 700; color: var(--int-noite); line-height: 1.3; }
.speaker-all .speakers-about .speaker-text h3 span {
    font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.65; font-weight: 400;
    color: var(--int-texto); margin-top: 12px;
}
.cssIphone .speakers-about .speaker-text h3 { color: var(--int-azul-escuro); font-size: 21px; margin-bottom: 12px; }
.cssIphone .speakers-about .speaker-text h3 span { font-family: 'Inter', sans-serif; font-size: 15.5px; line-height: 1.7; color: var(--int-texto); }

/* ---------- Rodapé ---------- */
.footer-section {
    background: radial-gradient(120% 120% at 100% 0%, var(--int-noite-2) 0%, var(--int-noite) 55%) !important;
    color: rgba(255, 255, 255, .75);
    padding-top: 90px;
}
.company-widget h4, .event-widget h4, .links-widget h4, .contact-widget h4 {
    font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; margin-bottom: 26px;
}
.footer-section h5[style] { color: rgba(255, 255, 255, .85) !important; font-weight: 600; }
.footer-section ul li, .company-widget ul li, .event-widget ul li, .links-widget ul li, .contact-widget ul li {
    font-family: 'Inter', sans-serif; font-size: 15px; color: rgba(255, 255, 255, .72); margin-bottom: 14px;
}
.footer-section a, .footer-section a[style] { color: rgba(255, 255, 255, .85) !important; }
.footer-section a:hover, .footer-section a[style]:hover { color: #8FD9F7 !important; }
.footer-section .copyright-area { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .12); }
.footer-section .copyright, .footer-section .copyright b { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Aparecer ao fazer scroll (ativado pelo requinte.js) ---------- */
.revelar { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .revelar { opacity: 1; transform: none; transition: none; }
    .speak-text, .speaker-section .speakers-about, .primary-btn, .speaker-all .speaker-img img { transition: none; }
}

/* ---------- Telemóvel ---------- */
@media (max-width: 991px) {
    .hero-items .single-hero-item { padding-top: 150px; padding-bottom: 80px; min-height: 0; }
    .hero-items .single-hero-item::before {
        background: linear-gradient(180deg, rgba(14, 42, 59, .78) 0%, rgba(14, 42, 59, .86) 100%);
    }
    .spad { padding-top: 80px; padding-bottom: 80px; }
    .event-counter .countdown-timer { margin-top: 24px; }
}
@media (max-width: 575px) {
    .hero-items .single-hero-item { padding-top: 130px; }
    .hero-items .single-hero-item h1, .hero-items .single-hero-item h1[style] { font-size: 28px; }
    .hero-items .single-hero-item h3, .hero-items .single-hero-item h3[style] { font-size: 16px !important; }
    .event-counter .countdown-timer .cd-item { min-width: 70px; padding: 10px; margin-right: 6px; }
    .event-counter .countdown-timer .cd-item span { font-size: 30px; }
    .header-section .logo img { max-width: 46vw; height: auto; }
}

/* ---------- Acertos ---------- */
/* Logos dos parceiros têm fundo branco próprio: cabeçalho quase opaco para se fundirem. */
.header-section .bg-overlay::after { background: rgba(255, 255, 255, .94); }
.header-section.rolado .bg-overlay::after { background: rgba(255, 255, 255, .97); }
.workshop-text p, .workshop-text li, .workshop-section .workshop-text p[style] {
    font-family: 'Inter', sans-serif; font-size: 15.5px !important; line-height: 1.75; color: var(--int-texto);
}
.workshop-text h2 { line-height: 1.2 !important; font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.workshop-text h4 { font-size: 20px; }
@media (max-width: 991px) { .hero-items .single-hero-item { padding-top: 190px; } }
@media (max-width: 575px) { .hero-items .single-hero-item { padding-top: 175px; } }
.event-counter .event-name span {
    background: rgba(19, 161, 220, .18) !important;
    border: 1px solid rgba(143, 217, 247, .35);
    color: #CFEFFC;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    padding: 10px 16px;
    margin: 14px 0 0;
}
.footer-section .codeboys-logo {
    width: 34px; height: 34px; padding: 3px; margin-right: 10px; vertical-align: middle;
    background: #fff; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* ---------- Júri: biografia resumida + "Ver perfil" (requinte.js) ---------- */
.speaker-all .speakers-about { display: flex; flex-direction: column; }
.speaker-all .speakers-about .speaker-text { flex: 1 1 auto; }
.speaker-all .speaker-text h3 span.bio-curta {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
.speaker-all .speaker-text h3 span.bio-curta br { display: none; }
.speaker-all .ver-perfil {
    align-self: flex-start; margin-top: 18px; padding: 4px 0; border: 0; background: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--int-noite-2);
}
.speaker-all .ver-perfil span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.speaker-all .ver-perfil:hover { color: var(--int-azul); }
.speaker-all .ver-perfil:hover span { transform: translateX(3px); }

body.perfil-aberto { overflow: hidden; }
.perfil-modal {
    position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(14, 42, 59, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.perfil-modal.aberto { opacity: 1; visibility: visible; }
.perfil-janela {
    position: relative; display: grid; grid-template-columns: minmax(200px, 38%) 1fr; width: min(920px, 100%); max-height: min(86vh, 760px);
    background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(14, 42, 59, .35);
    transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.perfil-modal.aberto .perfil-janela { transform: none; }
.perfil-foto { background: var(--int-quente); }
.perfil-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.perfil-corpo { padding: 40px 40px 36px; overflow-y: auto; }
.perfil-corpo h3 { font-size: 26px; font-weight: 700; color: var(--int-noite); margin: 0 0 18px; padding-right: 30px; line-height: 1.25; }
.perfil-bio { font-family: 'Inter', sans-serif; font-size: 15.5px; line-height: 1.75; color: var(--int-texto); }
.perfil-fechar {
    position: absolute; top: 14px; right: 16px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--int-noite); font-size: 26px; line-height: 40px;
    box-shadow: 0 2px 10px rgba(14, 42, 59, .15); transition: background .2s ease;
}
.perfil-fechar:hover { background: var(--int-azul-claro); }
@media (max-width: 767px) {
    .perfil-janela { grid-template-columns: 1fr; grid-template-rows: 240px auto; overflow-y: auto; }
    .perfil-corpo { overflow: visible; padding: 26px 22px 28px; }
    .perfil-corpo h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .perfil-modal, .perfil-janela { transition: none; } }

/* Hero: todos os slides com a mesma altura (o carrossel usa a do slide mais alto e deixava uma faixa branca). */
.hero-section { background: var(--int-noite); }
.hero-items .owl-stage { display: flex; }
.hero-items .owl-item { display: flex; float: none; }
.hero-items .owl-item > .single-hero-item { flex: 1 1 auto; width: 100%; }

/* Logótipos dos parceiros: a imagem tem fundo branco — funde-se com o cabeçalho e alinha com o logótipo INTEGRAR+. */
.header-section .logo > .row { align-items: center; }
.header-section .menu_img_right { display: inline-flex; align-items: center; padding-left: 28px; border-left: 1px solid var(--int-borda); }
.header-section .menu_img_right img {
    width: auto !important; height: 64px; mix-blend-mode: multiply; opacity: .92;
    transition: opacity .2s ease;
}
.header-section .menu_img_right:hover img { opacity: 1; }
.header-section .menu_img_left img { height: auto; }
@media (max-width: 767px) {
    .header-section .menu_img_right { border-left: 0; padding-left: 0; float: none !important; margin-top: 6px; }
    .header-section .menu_img_right img { height: 48px; }
}
/* Branco sólido: com a foto do hero por trás, o vidro fosco deixava ver o quadrado da imagem dos parceiros. */
.header-section .bg-overlay::after, .header-section.rolado .bg-overlay::after { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Parceiros no cabeçalho (3 logótipos separados + legendas em HTML) ---------- */
.header-section .parceiros {
    display: flex; align-items: flex-end; gap: 34px;
    padding-left: 30px; margin: 8px 0; border-left: 1px solid var(--int-borda);
}
.header-section .parceiro { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.header-section .parceiro figcaption {
    font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--int-suave); white-space: nowrap;
}
.header-section .parceiro img {
    height: 50px; width: auto; display: block;
    filter: grayscale(.25); opacity: .9; transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.header-section .parceiro:hover img { filter: none; opacity: 1; transform: translateY(-1px); }
@media (max-width: 991px) {
    .header-section .parceiros { gap: 22px; padding-left: 20px; }
    .header-section .parceiro img { height: 40px; }
}
@media (max-width: 767px) {
    .header-section .parceiros { float: none !important; justify-content: flex-start; border-left: 0; padding-left: 0; margin: 10px 0 6px; gap: 20px; }
    .header-section .parceiro figcaption { font-size: 8.5px; letter-spacing: .14em; }
    .header-section .parceiro img { height: 34px; }
}
/* Uniformização ótica: colunas iguais e altura por logótipo para o mesmo peso visual. */
.header-section .parceiros { display: grid; grid-template-columns: repeat(3, 118px); gap: 18px; align-items: end; }
.header-section .parceiro { width: 118px; }
.header-section .parceiro .img-caixa { height: 56px; }
.header-section .parceiro img { height: auto; max-width: 100%; }
.header-section .parceiro--apic img { height: 52px; }
.header-section .parceiro--lean img { height: 54px; }
.header-section .parceiro--roche img { height: 46px; margin-bottom: 3px; }
@media (max-width: 991px) {
    .header-section .parceiros { grid-template-columns: repeat(3, 96px); gap: 12px; }
    .header-section .parceiro { width: 96px; }
    .header-section .parceiro--apic img { height: 42px; }
    .header-section .parceiro--lean img { height: 44px; }
    .header-section .parceiro--roche img { height: 37px; }
}
@media (max-width: 767px) {
    .header-section .parceiros { grid-template-columns: repeat(3, 1fr); max-width: 340px; }
    .header-section .parceiro { width: auto; }
    .header-section .parceiro--apic img { height: 36px; }
    .header-section .parceiro--lean img { height: 38px; }
    .header-section .parceiro--roche img { height: 32px; }
}
/* Legendas todas na mesma linha (topo) e logótipos centrados numa faixa de altura fixa por baixo. */
.header-section .parceiros { align-items: start; }
.header-section .parceiro {
    display: grid; grid-template-rows: 14px 58px; row-gap: 8px; justify-items: center; align-items: center;
}
.header-section .parceiro figcaption { line-height: 14px; align-self: start; }
.header-section .parceiro img { align-self: center; margin: 0 !important; }
.header-section .parceiro--roche img { height: 40px; }
@media (max-width: 991px) {
    .header-section .parceiro { grid-template-rows: 13px 48px; row-gap: 6px; }
    .header-section .parceiro--roche img { height: 33px; }
}
@media (max-width: 767px) {
    .header-section .parceiro { grid-template-rows: 12px 42px; row-gap: 6px; }
    .header-section .parceiro figcaption { line-height: 12px; }
    .header-section .parceiro--roche img { height: 28px; }
}
