@font-face {
    font-family: 'titulo';
    src: url("./conf/CreatoDisplay-Bold.otf");
}
@font-face {
    font-family: 'texto';
    src: url("./conf/CreatoDisplay-Regular.otf");
}
@font-face {
    font-family: 'texto_light';
    src: url("./conf/CreatoDisplay-Light.otf");
}

@font-face {
    font-family: 'menu_items';
    src: url("./conf/ClearSans-Bold.ttf");
}

@font-face {
    font-family: 'numeros';
    src: url("./conf/ZuumeRough-Bold.ttf");
}

@font-face {
    font-family: 'sessao';
    src: url("./conf/pattanakarn-bold.ttf");
}

@font-face {
    font-family: 'somos';
    src: url("./conf/School\ To\ Learn.ttf");
}

@font-face {
    font-family: 'faltam';
    src: url("./conf/ZuumeRough-BoldItalic.ttf");
}


:root {
    --bg-start: rgb(2, 65, 169);
    --bg-end: rgb(2, 97, 213);
    --primary-black: rgb(0, 0, 0);
    --primary-dark-gray: rgb(40, 41, 46);
    --primary-blue: rgb(0, 24, 96);
    --primary-light-blue: rgb(117, 195, 235);
    --primary-white: rgb(255, 255, 255);
    --primary-yellow: rgb(2, 65, 169);
    --transition-speed: 0.3s;
}

/* Estilos Gerais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'texto', Arial, sans-serif;
    background: linear-gradient(to right, var(--bg-start), var(--bg-end));
    color: var(--primary-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'titulo', Arial, sans-serif;
    margin-bottom: 1rem;
}

/* Container principal */
.main-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Seção de contagem regressiva */
.countdown-container {
    text-align: center;
    background-color: var(--primary-blue);
    padding: 20px 0;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
    transition: transform 0.3s;
}

.countdown-box:hover {
    transform: translateY(-5px);
}

.countdown-value {
    font-size: 60px;
    font-family: 'numeros';
    background-color: rgba(117, 195, 235, 0.2);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    min-width: 120px;
    color: var(--primary-white);
    transition: all 0.3s;
}

.countdown-label {
    font-size: 18px;
    background-color: rgba(117, 195, 235, 0.3);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: var(--primary-white);
}

.countdown-faltam {
    font-family: 'faltam';
    font-size: 50px;
}

.countdown-garanta {
    background-color: rgba(255, 255, 255, 1);
    font-family: 'numeros';
    font-size: 40px;
    border-radius: 10px;
    color: var(--bg-start);
    padding: 10px;    
    transition: all 0.5s;
}

.countdown-garanta:hover {
    background-color: var(--bg-start);
    font-family: 'numeros';
    font-size: 40px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    padding: 10px;
    border-width: 5px;
    box-shadow: #f8f9fa; 
    transition: all 0.5s;
}


/* Carrossel principal */
.carousel-container {
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Seção Somos RECIFITNESS */

.bg_somos {
    background-image: url("./img/bg_somos.png");
    border-radius: 15px;
}

.titulo_somos{
    font-family: 'somos';
    color: var(--primary-light-blue);
    font-size: 100px;
    margin-bottom: -110px;
    
}

.titulo_recif{
    font-family: 'numeros';
    font-size: 150px;
    margin-bottom: -20px;
    padding-top: -20px;
    
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 10px 0;
}

.section-title-block {
    width: 30px; 
    height: 30px; 
    background: var(--primary-yellow);
    margin-right: 15px;
    border-radius: 4px;
}

.section-title h3 {
    margin: 0;
    color: var(--primary-white);
    font-weight: bold;
}

.dados {
    padding: 30px 0;
    border-radius: 15px;
    margin-bottom: 40px;
}

.dados_titulo {
    text-align: center;
    margin-bottom: 30px;
}

.dados_bloco_titulo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-white);
    position: relative;
    display: inline-block;
}

.dados_bloco_titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-light-blue);
}

.dados_item {
    background: var(--primary-dark-gray);
    border-radius: 15px;
    padding: 30px;
    height: 250px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.dados_item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.dados_item_numero {
    font-size: 7rem;
    font-family: 'numeros';
    color: var(--bg-end);
    margin-bottom: 3px;
}

.dados_item_texto {
    font-size: 1.2rem;
    font-family: 'menu_items';
    color: var(--primary-white);
    text-align: center;
}

/* Seção Segmentos */
.segmentos-section {
    background-color: var(--primary-white);
    padding: 40px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.segmentos-section .section-title h3 {
    color: var(--primary-black);
}
.ponto {
    width: 5px;
    height: 5px;
    margin: 10px;
    border-radius: 5px;
    background-color: var(--bg-start);
}

.subitem-name {
    display: flex;
    align-items: center;
}

/* Accordion personalizado */
.accordion-container {
    width: 100%;
    margin: 30px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    padding: 15px 20px;
    background-color: #f9f9f9;
    color: var(--primary-dark-gray);
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header.active {
    background-color: var(--primary-light-blue);
    color: var(--primary-black);
}

.arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(135deg);
    transition: transform var(--transition-speed);
}

.active .arrow {
    transform: rotate(-45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
}

.accordion-content.show {
    max-height: 500px;
}

.sub-item {
    padding: 12px 20px 12px 40px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    color: var(--primary-dark-gray);
    font-size: 0.95rem;
}

.sub-item:hover {
    background-color: #e9e9e9;
}

/* Estilização dos blocos de título */
.title-block {
    margin-right: 10px;
}

.title-block-lg {
    width: 30px;
    height: 5px;
    border-top-left-radius: 20px;
    background: var(--primary-dark-gray);
}

.title-block-md {
    width: 30px;
    height: 5px;
    background: var(--primary-light-blue);
}

.title-block-sm {
    width: 50px;
    height: 5px;
    background: var(--primary-blue);
}

.title-mini-block {
    width: 20px;
    height: 20px;
    background: var(--primary-yellow);
    margin-right: 10px;
}

.title-mini-block-md {
    width: 10px;
    height: 20px;
    background: var(--primary-yellow);
    margin-right: 10px;
}

.title-mini-block-sm {
    width: 5px;
    height: 20px;
    background: var(--primary-yellow);
    margin-right: 10px;
}

/* Seção Expositores */
.expositores-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-radius: 15px;
    margin-bottom: 40px;
}

.expositores-title h3 {
    color: var(--primary-black);
    margin: 0;
}

.carousel-expositores {
    background-color: var(--primary-white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-expositores .carousel-control-prev,
.carousel-expositores .carousel-control-next {
    width: 8%;
    opacity: 0.7;
}

.carousel-expositores .carousel-control-prev-icon,
.carousel-expositores .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 15px;
}

.carousel-expositores .carousel-indicators {
    bottom: -10px;
}

.carousel-expositores .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(0, 0, 0, 0.3);
}

.carousel-expositores .carousel-indicators button.active {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Seção Organizadores */
.organizadores-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-radius: 15px;
    margin-bottom: 40px;
}

.organizadores-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.organizadores-image {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
    margin-bottom: 20px;
}

.organizadores-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.organizadores-text {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
    color: var(--primary-black);
}

.organizadores-text .lead {
    text-align: justify;
    line-height: 1.8;
}

/* Seção Edições Anteriores */
.edicoes-section {
    margin-bottom: 40px;
}

.edicoes-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed);
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.edicoes-card:hover {
    background-color: var(--primary-black);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.edicoes-card img {
    width: 100%;
    height: auto;
}

.edicoes-card .card-body {
    padding: 15px;
    transition: all var(--transition-speed);
}

.edicoes-card:hover .card-body p {
    color: var(--primary-white);
}

.edicoes-card .card-text {
    color: var(--primary-black);
    font-weight: bold;
    margin: 0;
    transition: all var(--transition-speed);
}

/* Seção Como Chegar */
.como-chegar-section {
    margin-bottom: 60px;
}

.como-chegar-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 400px;
}

.como-chegar-info {
    padding: 30px;
}

.como-chegar-info h3 {
    margin-bottom: 20px;
}

.como-chegar-info p {
    margin-bottom: 20px;
}

.contato-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contato-item img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.contato-item a {
    color: var(--primary-white);
    transition: color var(--transition-speed);
}

.contato-item a:hover {
    color: var(--primary-yellow);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-body {
    padding: 25px;
}

.btn-comprar {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: bold;
    transition: all 0.3s;
}

.btn-comprar:hover {
    background-color: #e0b800;
    transform: scale(1.05);
}

.divtexto{
    background-color: var(--primary-blue);
    border-radius: 10px;
    padding: 20px;
}

/* Responsividade */
@media (min-width: 768px) {
    .organizadores-image {
        flex: 0 0 60%;
        max-width: 60%;
        margin-bottom: 0;
    }

    .organizadores-text {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

@media (max-width: 991px) {
    .countdown-value {
        font-size: 30px;
        min-width: 100px;
    }

    .countdown-label {
        font-size: 16px;
    }

    .dados_item {
        height: 220px;
    }

    .dados_item_numero {
        font-size: 3rem;
    }

    .dados_item_texto {
        font-size: 1rem;
    }
    
    .title-block-lg {
        width: 30px;
        height: 5px;
    }
    
    .title-block-md {
        width: 30px;
        height: 5px;
    }
    
    .title-block-sm {
        width: 50px;
        height: 5px;
    }

    .titulo_somos{
        font-size: 70px;
        margin-bottom: -75px;
        
    }
    
    .titulo_recif{
        font-size: 100px;
        margin-bottom: -20px;
        padding-top: -20px;
        
    }

    .countdown-container {
        text-align: center;
        display: block;
        align-items: center;
    }

    .countdown-garanta {
        background-color: rgba(255, 255, 255, 1);
        font-family: 'numeros';
        font-size: 40px;
        border-radius: 10px;
        color: var(--bg-start);
        padding: 10px;
        margin: 30px;    
        transition: all 0.5s;
    }
}

@media (max-width: 767px) {
    .countdown-box {
        margin: 0 10px;
    }

    .countdown-value {
        font-size: 24px;
        min-width: 80px;
    }

    .countdown-label {
        font-size: 14px;
    }

    .section-title-block {
        width: 25px;
        height: 25px;
    }

    .dados_item {
        height: auto;
        padding: 20px;
    }

    .como-chegar-map {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .title-block-lg {
        width: 30px;
        height: 5px;
    }
    
    .title-block-md {
        width: 30px;
        height: 5px;
    }
    
    .title-block-sm {
        width: 50px;
        height: 5px;
    }
}

@media (max-width: 576px) {
    .countdown-box {
        margin: 0 5px;
    }

    .countdown-value {
        font-size: 20px;
        min-width: 70px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .dados_item_numero {
        font-size: 2.5rem;
    }
    
    .title-block-lg {
        width: 30px;
        height: 5px;
    }
    
    .title-block-md {
        width: 30px;
        height: 5px;
    }
    
    .title-block-sm {
        width: 50px;
        height: 5px;
    }
}


/* Menu e Navegação */

.menu_bg{
    background: var(--primary-blue);
    max-width: 1500px;
    width: 90%;
    margin: 15px auto;
    border-radius: 50px;
    padding: 10px 10px;
}

.navbar-brand-logo {
    width: 180px;
    max-width: 100%;
    
}

.back-to-top {    
    cursor: pointer;

    position: fixed;
    bottom: 6rem;
    right: 1rem;

    line-height: 0;

    visibility: visible;
    opacity: 1;

    transition: 0.3s;
    transform: translateY(100%);
}

/* Estilos originais de dropdown */
.nav-item.item_menu {
    margin-right: 10px;
    border-radius: 5px;
    background: var(--primary-blue);
    transition: 500ms;
    font-family: 'menu_items';
}

.item_menu:hover{ 
    display: block; 
    background: var(--bg-end);
}

.item_menu:hover ul.dropdown-menu{ 
    display: block; 
    background: var(--bg-end);
}

.dropdown-item:hover{
    background: var(--primary-white);
}

.nav-link {
    padding: 8px 15px;
    display: block;
    text-align: center;
}

/* Configurações do Menu Hamburger */
.navbar-toggler {
    border: none;
    padding: 8px;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    color: white;
    font-size: 1.5rem;
}

/* Estilos para o menu colapsável */
.navbar-collapse {
    flex-grow: 1;
    transition: all 0.3s ease-in-out;
}

/* ======================================
   MELHORIAS DE RESPONSIVIDADE PARA SUBMENUS
   ====================================== */

/* Melhorias para os dropdowns */
.dropdown-menu {
    background: var(--primary-white);
    border-radius: 5px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1030;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    color: white;
}

.dropdown-item:hover {
    background: var(--primary-white);
    color: var(--primary-yellow)!important;
    transition: 500ms;
}

/* Ajuste para estrutura aninhada peculiar do HTML */
.item_menu > a > div > a.nav-link,
.item_menu > a > div.dropdown > a.nav-link {
    padding: 8px 15px;
}

/* Indicador de submenu */
.item_menu .dropdown .nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s;
}

.item_menu .dropdown .nav-link[aria-expanded="true"]::after,
.item_menu:hover .dropdown .nav-link::after {
    transform: rotate(180deg);
}

.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 6rem;
    right: 1rem;
    line-height: 0;
    visibility: visible;
    opacity: 1;
    transition: 0.3s;
    transform: translateY(100%);
}