body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}
header {
    background-color: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px;
    text-align: center;
}

.logo-link {
    flex-shrink: 0; /* evita que a logo deforme */
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #009ee0;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px; 
}

#scrollToTopBtn:hover {
    background-color: #555;
}

.logo-container {
    width: 330px;
    height: 160px;
    background-position: left;
    background-repeat: no-repeat;
    background-size: contain;
}

@media (min-width: 768px) {
    .logo-container {
        background-image: url('../img/logo/Logo.webp');
    }
}

@media (max-width: 767px) {
    .logo-container {
        background-image: url('../img/logo/Logo_001.webp');
        background-position: center;
    }
}

.logo-link {
    text-decoration: none;
}

/* ===== NAV DESKTOP ===== */
#nav {
    flex-grow: 1; 
    display: flex;
    justify-content: center; /* centraliza o menu */
    width: 100%; 
    text-align: center; 
}

.nav-top {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; 
    justify-content: center; 
}

.nav-top li {
    margin: 0 30px;
    position: relative; /* necessário para dropdown */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 26px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* ===== DROPDOWN (desktop) ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    border-radius: 5px;
    min-width: 180px;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 18px;
    color: #fff;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #3498db;
    color: #fff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== BANDEIRAS ===== */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px;
}

.language-selector .flag {
    width: 32px;
    height: 22px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.language-selector .flag:hover {
    transform: scale(1.1);
    border-color: #009ee0;
}

.language-selector .flag.active {
    border-color: #000;
    transform: scale(1.15);
}

/* ===== NAV MOBILE ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* 🔥 empilha logo e menu */
        align-items: center;
    }

    #nav {
        display: block;
        background: #111;
        width: 100%;
        padding: 10px;
    }

    .nav-top {
        flex-direction: column;
        align-items: center;
    }

    .nav-top li {
        margin: 10px 0;
    }

    /* Submenu sempre visível no mobile */
    .dropdown-menu {
        display: block;
        position: static;
        background: none;
        box-shadow: none;
        padding-left: 15px; /* indentação */
    }

    .dropdown-menu li a {
        font-size: 20px;
        color: #ccc;
    }

    .dropdown-menu li a:hover {
        color: #3498db;
        background: none;
    }

    /* Bandeiras centralizadas abaixo do menu */
    .language-selector {
        margin-top: 15px;
        text-align: center;
        width: 100%;
    }
}

main {
    padding: 20px;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h4,
.h4 {
    font-size: 24px;
    border-bottom: 2px solid #ffec00;
    padding-bottom: 10px;
}

.services-grid, .products-grid {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service, .product {
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(255, 236, 0, 0.879);
}

.product img {
    width: 300px;
    height: 200px;
}

.blue {
    color: #009ee0;
}

.yellow {
    color: #ffec00;
}

#clientes {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

/* Carousel */
.carousel, .portfolio-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-items, .portfolio-carousel-items {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-items img, .portfolio-carousel-item img {
    width: calc(100% / 7); /* Ajuste para 6 imagens visíveis */
    padding: 22px;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    max-height: 300px;
}

/* Button */
.carousel-button, .portfolio-carousel-controls button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-button:hover, .portfolio-carousel-controls button:hover {
    background: #ffec00;
    color: #009ee0;
}

/* Portfolio Section */
#portfolio {
    background: #f4f4f4;
    padding: 20px;
}

.portfolio-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    flex: 1;
}

.portfolio-carousel {
    width: 100%;
}

.portfolio-carousel-item {
    min-width: 100%;
    height: 350px; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.portfolio-content {
    flex: 0 0 65%;
    text-align: left;
    padding-left: 10px;
    margin-top: 1px;
}

.portfolio-carousel-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding-bottom: 1px;
}

.portfolio-carousel-controls button {
    padding: 5px 10px;
    margin: 0 1px;
    cursor: pointer;
}

/* Layout for Video and Carousel */
.portfolio-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.portfolio-carousel-item img, .video-container iframe {
    width: 100%;
    height: 350px; 
    object-fit:cover;
    max-width: 420px;
    display: block;
}

.video-container {
    flex: 1;
    max-width: 420px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-wrapper {
        flex-direction: column;
    }
    
    .video-container, .portfolio-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .portfolio-carousel-item img, .video-container iframe {
        max-width: 100%;
        height: auto;
    }
}
@media (max-width: 768px) {
    .portfolio-item {
      grid-template-columns: 1fr;
    }
}

footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 5px 0;
}

.services-section {
    color: rgb(0, 0, 0);
    padding: 1px 1px;
    text-align: center;
}

.services-section h2 {
    margin-bottom: 30px;
    font-size: 2em;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-item {
    padding: 20px;
    width: 30%; 
    box-sizing: border-box;
    border-radius: 5px;
}

.service-item img {
    width: 100px; 
    height: auto;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-item {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .service-item {
        width: 100%;
    }
}

#contato {
    text-align: center;
    padding: 10px;
}

.contact-section {
    max-width: auto;
    margin: 0 auto;
    background: url('../img/logo/contacts.png') repeat;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.contact-header .logo {
    width: 320px; 
    margin-right: 10px;
}

.contact-header h2 {
    font-family: 'Agency FB', sans-serif; 
    font-size: 24px;
}

.contact-motto {
    font-style: italic;
    margin-bottom: 10px;
}

.contact-details {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.contact-icon img {
    width: 40px; 
    margin-right: 10px;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 4px;
}

.contact-social img {
    width: 40px; 
}

.contact-employees {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.employee {
    flex: 1;
    margin: 0 3px;
}

.contact-footer {
    background: linear-gradient(to right, #009ee0, #ffec00);
    padding: 10px;
    border-radius: 5px;
}

.contact-footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-header {
        flex-direction: column;
    }

    .contact-header .logo {
        margin: 0 0 10px;
    }

    .contact-details {
        flex-direction: column;
    }

    .contact-icon {
        margin-bottom: 10px;
    }

    .contact-employees {
        flex-direction: column;
    }

    .employee {
        margin: 10px 0;
    }
}

/* Estilos para a seção de gauges e tendências */
#sample {
    background: rgb(201, 201, 201);
    padding: 40px 20px;

}

#sample h1 {
    text-align: center;
    font-size: 2.5em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0);
    margin-bottom: 30px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1860px;
    margin: 0 auto;
}

.panel {
    background: rgba(2, 2, 2, 0);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px; /* Altura fixa para o painel */
}

.panel h2 {
    font-size: 1.7em;
    margin: 0 0 5px;
    color: #000000;
}

.gauge {
    width: 250px;
    height: 160px;
    margin: 0 auto; /* Removido margem inferior extra */
}

.trend-chart {
    width: 100%;
    height: 200px !important; /* Altura fixa para o gráfico */
    margin: 10px auto 0; /* Margem superior para separação */
}

@media (max-width: 600px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .panel {
        height: auto; /* Permite ajuste em telas menores */
        min-height: 400px; /* Garante espaço mínimo */
    }
}

/* Estrutura e visibilidade */
.about-section.hidden { display: none; }
.about-section { padding: 10px 0; background-color: rgb(201, 201, 201);; color: #000000; border-radius: 8px; }

/* Container centralizado */
.about-section .container {
  max-width: auto;
  margin: 0 auto;
  padding: 0 10px;
}

/* Título principal */
.about-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-family: 'Agency FB', sans-serif;
}
.text-sky { color: #009ee0; }
.text-yellow { color: #ffec00; }
.bold { font-weight: bold; }

/* Texto de introdução */
.about-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}
.motto {
  font-size: 1.5rem;
  color: #ffec00;
  margin-top: 1px;
}

/* Missão, Visão, Valores - layout responsivo */
.mv-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 5px auto;
}
@media (min-width: 768px) {
  .mv-values {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}
.card-title {
  font-size: 1.5rem;
  color: #ffec00;
  margin-bottom: 15px;
}

/* Lista de valores com ícones */
.values-list {
  list-style: none;
  padding: 0;
}
.values-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
  font-size: 1.125rem;
}
.values-list .icon {
  margin-right: 10px;
  color: #000000;
}

/* ===== PORTFOLIO GRID ===== */
#portfolio {
  padding: 60px 20px;
  text-align: center;
}
#portfolio h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #009ee0;
  text-transform: uppercase;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

@media (min-width: 1900px) { /* Adjust breakpoint as needed */
  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(280px, 1fr));
  }
}


.portfolio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-5px);
}
.portfolio-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.portfolio-info {
  padding: 20px;
}
.portfolio-info h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}
.portfolio-info p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}
.portfolio-info button {
  background: #009ee0;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.portfolio-info button:hover {
  background: #007bbd;
}

/* ===== MODAL BASE ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow-y: auto;
  background: rgba(0,0,0,0.8);
  padding: 40px 20px;
}
.modal-content {
  background: #fff;
  margin: auto;
  max-width: 600px;
  border-radius: 14px;
  padding: 30px;
  position: relative;
  animation: fadeIn 0.4s ease;
}
.modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #009ee0;
}
.modal-content p {
  font-size: 1rem;
  margin: 8px 0;
  color: #333;
}
.modal .close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
}
.modal .close:hover {
  color: #000;
}

/* ===== CAROUSEL ===== */
.carousel1 {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
}

.carousel1-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel1-track img {
  width: 100%;
  height: 350px;
  flex-shrink: 0;
  border-radius: 10px;
  cursor: zoom-in; /* indica que dá pra ampliar */
  object-fit: cover;

}


.carousel1 button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 2;
}
.carousel1 button:hover {
  background: rgba(0,0,0,0.8);
}
.carousel1 .prev { left: 10px; }
.carousel1 .next { right: 10px; }

/* ===== ZOOM FULLSCREEN ===== */
.img-zoom-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.img-zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  cursor: zoom-out;
}

