@import url('https://api.fontshare.com/v2/css?f[]=author@200,201,300,301,400,401,500,501,600,601,700,701,1,2&display=swap');

html {
    scroll-behavior: smooth;
    font-family: 'Author', sans-serif; /* Fonte global */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Author', sans-serif;
    overflow-x: hidden;
}
.tf-global{
    padding-top: 50px;
}

.tf-global-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 40px;
    flex-direction: row;
    margin-inline: 13%;
}
.tf-global-p p{
    margin-inline: 15%;
    font-size: 24px;
    font-weight: 400;
    color: #000;
}

.tfg-map {
    position: relative;
    margin: 0 auto;
    width: 70%;
}

.tfg-map img {
    width: 100%;
    height: auto;
    display: block;
}

.ping-container {
    position: absolute;
}

.desk-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.ping-container:hover .desk-image {
    display: block;
}

.ping {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #F2665E;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    animation: ease-in;
}
.ping.active {
    background-color: green;
    width: 8px;
    height: 8px;
    animation: ease-in;
}

.ping.active::before {
    background-color: #33a6e025;
}

.ping::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    background-color: rgba(242, 102, 94, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pingEffect 2s infinite;
}

#ping-korea { top: 45%; left: 80%; }
#ping-us { top: 45%; left: 21%; }
#ping-uk { top: 37%; left: 46.5%; }
#ping-china { top: 48%; left: 73%; }
#ping-italian { top: 43%; left: 50%; }
#ping-german { top: 38%; left: 49.5%; }
#ping-japan { top: 47%; left: 83.5%; }
#ping-portuguese { top: 45%; left: 44.6%; }
#ping-latin { top: 73%; left: 30.5%; }

@keyframes pingEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.modal {
    display: none;
    position: absolute;
    z-index: 3;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0); /* Fundo transparente */
    opacity: 0; /* Modal inicialmente invisível */
    transition: opacity 0.3s ease; /* Transição suave da opacidade */
}

.modal.show {
    display: block;
    opacity: 1; /* Modal visível */
}

.custom-select-mobile{
    display: none;
}

.custom-select {
    appearance: none; /* Remove o estilo padrão do select */
    background-color: #fff; /* Cor de fundo */
    border: 1px solid #4d4c4c57; /* Borda personalizada */
    border-radius: 5px; /* Cantos arredondados */
    font-size: 16px; /* Tamanho da fonte */
    font-family: 'Author', sans-serif; /* Fonte personalizada */
    color: #333; /* Cor do texto */
    width: 18%; /* Ocupa 100% da largura disponível */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Sombra leve */
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    justify-content: center;
    height: 45px;
}

/* Adiciona um ícone de seta personalizado */
.custom-select::after {
    content: '\25BC'; /* Unicode da seta para baixo */
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #f2655e00;
    pointer-events: none;
}

.custom-select-container {
    position: relative;
    width: 100%;
    display: flex; /* Flexbox para centralizar o select, se desejado */
    justify-content: flex-end; 
}

.custom-select:hover {
    border-color: #ff5b5b00; /* Borda ao passar o mouse */
    box-shadow: 0 4px 8px rgba(22, 55, 95, 0.131); /* Sombra ao passar o mouse */
}

/* Efeito ao focar */
.custom-select:focus {
    border-color: #ff5b5b00; /* Borda ao focar */
    outline: none; /* Remove o outline padrão */
}

.custom-select option {
    font-size: 16px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #b2b2b213;
    width: 60%;
    position: relative;
    border-radius: 1em;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.345);
    transform: scale(0.8); /* Inicialmente menor */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Transição suave */
    opacity: 0; /* Inicialmente invisível */
}

.modal.show .modal-content {
    transform: scale(1); /* Cresce ao abrir */
    opacity: 1; /* Aparece ao abrir */
}

.modal-content h2 {
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.image-container {
    margin-top: 90px;
    position: relative;
    width: 100vw;
    height: auto;
    overflow: hidden;
}

.image-container img {
    width: 100vw;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.business{
    background-color: #ffffff;
    flex-direction: row;
    display: flex;
    padding-top: 6%;
    margin-inline: 10%;
}

.business-title{
    z-index: 2;
    flex-direction: column;
    display: flex;
    margin-inline: 80px;
    font-family: 'Author', sans-serif;
    font-weight: 900;
    font-size: 60px;
    color: rgba(0, 31, 44, 1);
}

.business-title span {
    margin-top: -20px;
}

.business-p {
    justify-content: start;
    font-size: 1.4vw;
}

.business-img {
    display: flex;
}


.business-img img{
    width: 500px;
    height: 500px;
    transform: translateY(-70px);
}

.text-menu {
    background: rgba(16, 31, 45, 1);
    margin-top: 120px;
    padding: 15px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 10;
    box-sizing: border-box;
    border-top: 1px solid white;
}

.text-menu a {
    color: rgb(255, 255, 255);
    font-family: 'Author', sans-serif;
    font-size: 1.2vw;
    text-decoration: none;
    position: relative;
    margin-top: 20px;
    margin: 0 45px;
    overflow: hidden;
    display: inline-block;
}

.text-menu a::before {
    content: "";
    display: block;
    height: 2px;
    background-color: rgba(242, 102, 94, 1);
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.text-menu a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.text-menu .menu-item {
    position: relative;
    padding: 0px 30px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.text-menu .menu-item:nth-child(5):hover {
    background-color: #f9f6f6;
    border: 2px solid #f9f6f6;
    color: white;
    cursor: pointer;
}

.text-menu a:nth-child(5)::before{
    display: none;
}

.text-atuacao {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Author', sans-serif;
    color: white;
    z-index: 2;
    max-width: 30px;
    animation: fadeIn 4s ease-in-out;
    font-size: 68px;
    font-weight: 100;
    padding: 0;
    margin-top: 0;
    line-height: 70px;
}

.section {
    padding: 30px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.section-title {
    font-size: 50px;
    font-weight: 100;
    color: #ffffff;
    padding-bottom: 20px;
}

.who-we-are {
    background-color: #011e2c;
    color: white;
    text-align: center;
    padding-top: 90px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.icon {
    width: 5vw;
    height: auto;
    margin-right: 2vw;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2vw;
    margin-bottom: 20px;
}

.counter-item {
    display: flex;
    align-items: center;
    margin: 0 1vw;
    text-align: center;
}

.who-we-are-p {
    color: white;
    max-width: 50%;
    text-align: start;
    font-size: 24px;
    font-weight: 100;
    margin-inline-end: 20px;
}

.reconhecimento{
    background-color: #011e2c;
    padding-bottom: 90px;
    padding-top: 90px;
}

.reconhecimento-content {
    display: flex;
    flex-direction: row;    
    gap: 20px;
    margin-inline: 15%;
    margin-top: 40px;
}

.images-reconhecimento{
    max-width: 50%;
    display: flex;
    flex-direction: row;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-inline-start: 5%;
}

.images-reconhecimento img{
    height: 140px;
    width: auto;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

.icon.small-icon {
    width: 5.7vw;
}

.counter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-size: 6vw;
    font-weight: bold;
    color: white;
}

.arrow {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background-color: transparent;
}

.arrow img.arrow-img {
    width: 130px; /* Ajuste conforme necessário */
    height: auto;
}
.text {
    font-size: 1.5vw;
    color: white;
    margin: 5px 0;
}

.odometer {
    font-weight: 900;
    font-size: 3vw;
    margin-bottom: -15px;
    margin-left: -14px;
}

.odometer-value {
    font-family: 'Author', sans-serif;
}


.diamond {
    width: 123px; 
    height: 23px; 
    background-color: rgba(242, 102, 94, 1); 
    transform: skew(-21deg);
    display: inline-block;
    justify-content: center;
    align-content: center;
    color: white;
    overflow: hidden; 
    margin-top: 20px;
    position: relative;
}
.btt-area-modal{
    justify-items: center;
    align-items: center;
    display: flex;
    justify-content: center;
}

.diamond-text {
    transform: skew(21deg);
    font-size: 14px;
    color: white;
    font-weight: 600;
    text-align: center;
    justify-content: center;
}

.diamond:hover {
    background-color: rgb(204, 83, 77);
}


@media only screen and (max-width: 768px) {
    
    .business{
        margin-inline: 0px;
    }

    .business-p {
        text-align: left;
        margin: 0;
        font-size: 12px;
    }

    .business-title{
        margin-inline: 5%;
        transform: translateX(20px);
    }

    .business-title span:first-child {
        margin-bottom: 20px;
   }

    .business-title span{
        font-size: 20px;
        z-index: 2;
        margin-inline: 0;
        line-height: 16px;
    }

    .business-img img{
        width: 200px;
        height: 200px;
        transform: none;
    }

    .diamond{
        margin-top: 15px;
        height: 20px;
        width: 105px;
        font-size: 18px;
    }

    .arrow-img{
        height: 80px;
        width: auto;
    }

    .diamond-text{
        font-size: 11px;
        transform: skew(21deg) translateY(-15%) translateX(2%);
        font-weight: 500;
        text-align: center;
        margin-top: 4px;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 99; 
        top: 0;
        left: 0;
        width: 100vw; 
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.232); 
    }

    .modal-content {
        position: relative;
        margin: 50% auto; 
        width: 85%; 
        padding: 20px;
        background-color: #fff; /* Fundo branco para o conteúdo */
        border-radius: 1em; /* Bordas arredondadas */
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.345); /* Sombra leve */
        transform: scale(1); /* Mantém o tamanho inicial */
        transition: transform 0.3s ease; /* Transição suave */
    }

    .close {
        font-size: 28px;
        position: absolute;
        top: 10px;
        right: 20px;
        color: #aaa;
    }
    .custom-select-mobile {
        display: block;
        appearance: none; /* Remove o estilo padrão do select */
        background-color: #fff; /* Cor de fundo */
        border: 1px solid #4d4c4c57; /* Borda personalizada */
        border-radius: 5px; /* Cantos arredondados */
        font-size: 16px; /* Tamanho da fonte */
        font-family: 'Author', sans-serif; /* Fonte personalizada */
        color: #333; /* Cor do texto */
        max-width: 40%; /* Ocupa 100% da largura disponível */
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Sombra leve */
        cursor: pointer;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        justify-content: center;
    }
    
    /* Adiciona um ícone de seta personalizado */
    .custom-select-mobile::after {
        content: '\25BC'; /* Unicode da seta para baixo */
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        font-size: 16px;
        color: #f2655e00;
        pointer-events: none;
    }
    
    .custom-select-container {
        position: relative;
        width: 100%;
        display: flex; /* Flexbox para centralizar o select, se desejado */
        justify-content: start; 
        margin-inline: 30px;
        margin-bottom: 30px;
    }
    
    .custom-select-mobile:hover {
        border-color: #ff5b5b00; /* Borda ao passar o mouse */
        box-shadow: 0 4px 8px rgba(22, 55, 95, 0.131); /* Sombra ao passar o mouse */
    }
    
    /* Efeito ao focar */
    .custom-select-mobile:focus {
        border-color: #ff5b5b00; /* Borda ao focar */
        outline: none; /* Remove o outline padrão */
    }
    
    .custom-select-mobile option {
        padding: 10px;
        font-size: 16px;
        margin-left: 42px;
    }

    .custom-select {
        display: none;
    }

    .tf-global-header{
        justify-content: center;
    }

    .tf-global {
        justify-content: center;
    }

    #countrySelect {
        margin-top: 10px; /* Espaço acima do select */
        width: 200px; 
        height: 40px;
    }
    .tf-global-p{
        margin-inline: 8%;
        text-align: start;
    }

    .images-reconhecimento{
        max-width: 50%;
        display: flex;
        flex-direction: row;
        margin-top: 30px;
        margin-inline: 50%;
    }
    
    .images-reconhecimento img{
        height: auto;
        width: 130px;
    }

    .reconhecimento-content {
        display: flex;
        flex-direction: column;    
        gap: 20px;
    }    

    .tfg-map {
        width: 100%;
    }
    
    .text-atuacao {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        font-family: 'Author', sans-serif;
        color: white;
        z-index: 2;
        max-width: 30px;
        animation: fadeIn 4s ease-in-out;
        font-size: 38px;
        font-weight: 100;
        max-width: 100vw;
        line-height: 30px;
    }

    
    .arrow-img{
        height: 80px;
        width: auto;
    }


    dialog {
        width: 90%; 
        height: auto;
        max-width: 600px;
        padding: 1rem; 
    }

    .dialog-container {
        flex-direction: column; /* Alinha os itens em coluna */
    }

    .dialog-card {
        width: 100%; /* Ajusta a largura do card para preencher o modal */
    }

    
    .desks-locations-container {
        margin-inline: 0% ;
    }
    
    .desk-columns a, .location-columns p {
        font-size: 14px;
    }
    

    .diagonal{
        height: 16vw;
        width: 123vw;
        transform: rotate(20deg) translateY(140px) translateX(-10px);
        background-color: rgba(235, 235, 235, 1);
        z-index: 2;
        display: block;
        position: absolute; 
    }

    .image-container img{
     content: url('/tozzinifreire/site/assets/img/tf-global/mobiletfg.jpg');
    }

    .image-container{
        background-color: #011e2c;
        padding-top: 10px;
        margin-top: 20px;
    }

    .image-container::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, #011e2c 13%, #011e2c56 21%, rgba(0, 0, 0, 0) 100%);
        z-index: 2;
        pointer-events: none;
    }
    
    .hamburguer-menu {
        position: fixed;
        top: 0;
        left: 50%;
        margin-top: 73px;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        z-index: 10; 
    }
    
    .hamburguer-icon {
        display: inline-flex;
        align-items: center;
        background: rgba(2, 57, 79, 1);
        border: none;
        border-radius: 7px;
        padding: 3px 16px;
        cursor: pointer;
        position: relative;
        margin: 10px auto;
    }
    
    .hamburguer-icon .bar {
        display: block;
        width: 20px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: background 0.3s, transform 0.3s;
    }
    
    .menu-text {
        color: white;
        font-size: 14px;
        margin-left: 10px;
        white-space: nowrap;
    }
    
    .hamburguer-text-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(2, 57, 79, 1);
        border-radius: 8px;
        padding: 5px;
        width: 180px;
        text-align: center;
        z-index: 1001;
    }
    
    .hamburguer-text-menu a {
        display: block;
        padding: 10px;
        color: white;
        text-decoration: none;
        font-weight: 300;
    }
    
    .hamburguer-text-menu a:hover {
        background: #919292;
    }
    
    .hamburguer-menu.active .hamburguer-text-menu {
        display: block;
    }
    
    .hamburguer-menu.active .hamburguer-icon .bar {
        background: transparent;
    }
    
    .hamburguer-menu.active .hamburguer-icon .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburguer-menu.active .hamburguer-icon .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburguer-menu.active .hamburguer-icon .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .text-menu {
        display: none; 
    }
    
    .section-title {
        font-size: 8vw; 
    }
    
    .icon-container{
        align-items: center;    
    }

    .counter{
        display: flex;
        flex-direction: column;
    }
    
    .counter-item {
        display: flex;
        align-items: center; 
        margin: 0 1vw; 
        text-align: center;
        flex-direction: row;
    }

    .icon.small-icon {
        width: 17vw;
    }
    
    .text-overlay {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding: 10px;
        font-family: 'Author', sans-serif;
        color: white;
        z-index: 2;
    }

    .text {
        font-size: 18px;
        max-width: 70px;
        line-height: 20px;
        margin-top: 10px;
    }

    .odometer {
        font-size: 6vw;
        padding-inline: 0.3vw; 
        margin-bottom: -14px;
        margin-left: -20px;
    }

    .location {
        font-size: 4vw;
        font-weight: 300;
    }

    .who-we-are{
        padding-top: 60px;
        margin-bottom: -1vw;
        margin-top: -1vw;
    }

    .who-we-are-p {
        color: white;
        max-width: 100%;
        text-align: center;
        font-size: 15px;
        font-weight: 100;
        margin-inline-end: 0px;
    }

    .combined-text {
        flex-direction: row;
        font-size: 4vw; 
    }

    .number, .text {
        font-size: 5vw; 
    }

    .diamond{
        margin-top: 15px;
        height: 20px;
        width: 105px;
        font-size: 18px;
    }

    .diamond-text{
        font-size: 11px;
        transform: skew(21deg) translateY(-15%) translateX(2%);
        font-weight: 500;
        text-align: center;
        margin-top: 4px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}