/*
Theme Name: ASIDH UFPE FSE
Theme URI: https://www.ufpe.br/
Author: Vinícius Oliveira
Description: Tema FSE customizado e desenvolvido exclusivamente para o portal institucional do ASIDH na UFPE.
Tags: fse, block-theme, ufpe, institucional
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: asidh-ufpe
*/

/* =====================================================================
SISTEMA DE CARROSSEL VIA CSS SCROLL SNAP (VANILLA SLIDER)
=====================================================================
*/
.asidh-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-wrap: nowrap !important;
}

.asidh-carousel::-webkit-scrollbar {
    display: none;
}

.asidh-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.asidh-carousel .wp-block-column {
    flex: 0 0 85% !important;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .asidh-carousel .wp-block-column {
        flex: 0 0 31% !important;
    }
}

/* =====================================================================
SISTEMA DE CABEÇALHO FIXO COM TRANSIÇÃO (STICKY HEADER)
=====================================================================
*/
.is-header-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: transparent !important;
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.is-header-sticky.is-scrolled {
    background-color: var(--wp--preset--color--azul-institucional, #0055A4) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Correção de conflito com a barra de administração do WordPress */
.admin-bar .is-header-sticky {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .is-header-sticky {
        top: 46px !important;
    }
}