/* ====== BASE E TIPOGRAFIA ====== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif !important;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

hr {
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

h4 {
    font-weight: 600;
}

/* ====== FLEX UTILITIES ====== */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

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

/* ====== SPACING ====== */
.mb-3 {
    margin-bottom: 1.5rem;
}

/* ====== NAVIGATION & LINKS ====== */
.idioma-link {
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.idioma-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

.link_apr {
    cursor: pointer;
    text-decoration: none;
    color: #007bff;
    transition: all 0.25s ease;
}

.link_apr:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* ====== BUTTONS ====== */
.btn-default.active,
.active {
    background-color: #007bff !important;
    color: white !important;
}

/* ====== BACK BUTTON ====== */
#Imagem_VoltarAtras_1 {
    max-height: 40px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

#Imagem_VoltarAtras_1:hover {
    transform: translateX(-3px);
}

#Imagem_VoltarAtras_2 {
    display: none;
}

/* ====== SCROLL TO TOP ====== */
.scrollToTop {
    width: 40px;
    height: 40px;
    background-image: url('../img/seta_cima.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    opacity: 0.7;
}

.scrollToTop:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.scrollToTop.show {
    display: block;
}

/* ====== TEXT UTILITIES ====== */
.link_quebra {
    /* Ensure very long URLs wrap nicely on mobile */
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere; /* modern, best for URLs */
    word-wrap: break-word;   /* legacy fallback */
    word-break: break-word;  /* extra safety */
    line-break: anywhere;    /* allow breaks at any point */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

/* ====== LANGUAGE IMAGE ====== */
.lang-img-gap {
    margin-right: 5px;
    transition: margin 0.25s ease;
}


/* ====== CLIPBOARD ====== */
.link_clipboard img {
    cursor: pointer;
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.25s ease;
}

.link_clipboard img:hover {
    transform: scale(1.05);
}

/* ====== CONTENT SECTIONS ====== */
.subcategory-content {
    margin-top: 25px;
}

.scroll-wrapper {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
}

/* ====== MODAL VIEWER ====== */
.modal_viewer .tingle-modal__close {
    background-color: transparent !important;
    transition: opacity 0.25s ease;
}

.modal_viewer .tingle-modal__close:hover {
    opacity: 0.7;
}

.modal_viewer .tingle-modal-box {
    width: 90%;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal_viewer .tingle-modal-box__content {
    padding: 0 !important;
}


/* ====== HOME PAGE - ESTILO MODERNO E CLEAN ====== */

/* Header da Home */
.home-header {
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.company-logo {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.company-logo:hover {
    transform: scale(1.02);
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #2c3e50;
    margin: 0;
}

/* Seção de Idiomas */
.languages-section {
    padding: 20px 15px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    color: #2c3e50;
}

.language-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 0;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border-radius: 6px;
    padding: 8px;
}

.language-btn img {
    width: 50px;
    height: auto;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.language-btn:hover img {
    transform: scale(1.1);
}

.language-btn:active {
    transform: scale(0.95);
}

/* Divisor */
.home-divider {
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Seção de Categorias */
.categories-section {
    padding: 20px 0;
}

.first-category-desc {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0 30px 0;
    color: #555;
    letter-spacing: 0.3px;
}

.category-item {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2c3e50;
    letter-spacing: 0.3px;
}

.category-link {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-link:hover {
    transform: translateY(-3px);
}

.category-image {
    max-width: 200px;
    width: 60%;
    height: auto;
    display: block;
    margin: 15px auto;
    transition: all 0.3s ease;
    border-radius: 6px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.category-link:hover .category-image {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transform: scale(1.03);
}



