* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #0066cc;
      font-family: 'Segoe UI', Arial, sans-serif;
      color: white;
    }
    
/* HEADER  Menu*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
}

.menu-toggle {
    display: none; /* shown on small screens via media query if needed */
    font-size: 26px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: white;
  }

.logo {
    font-size: 24px;
    font-weight: bold;
}

.ing{
  height: 200px;
}

.logo span {
    color: #00c6ff;
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #00c6ff;
    border-bottom: 2px solid;
}

    /* Hero Section - Logo Grande */
    .hero-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 50vh; /* mobile-first */
      background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
      padding: 28px 16px;
    }

    .hero-logo {
      font-size: clamp(2.2rem, 8vw, 5rem);
      font-weight: bold;
      margin-bottom: 16px;
      text-align: center;
      line-height: 1;
    }

    .hero-logo span {
      color: greenyellow;
    }

    .hero-subtitle {
      font-size: clamp(1rem, 3.5vw, 1.5rem);
      text-align: center;
      opacity: 0.95;
      max-width: 880px;
      margin: 0 8px;
    }

    /* Seção de Informações */
    .info-section {
      background-color: white;
      color: #333;
      padding: 40px 16px;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 12px;
    }

    .section-title {
      font-size: clamp(1.6rem, 4vw, 2.5rem);
      color: #0066cc;
      text-align: center;
      margin-bottom: 32px;
    }

    .about-text {
      text-align: center;
      font-size: clamp(0.95rem, 2.6vw, 1.1rem);
      line-height: 1.7;
      color: #555;
      margin-bottom: 40px;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
      padding: 0 12px;
    }

    .section-intro {
      text-align: center;
      font-size: 1.05rem;
      line-height: 1.6;
      color: #555;
      margin-bottom: 40px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-bottom: 32px;
    }

    .info-card {
      background-color: #f5f5f5;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }

    .info-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .info-card h3 {
      color: #0066cc;
      margin-bottom: 15px;
      font-size: 1.5rem;
    }

    .info-card p {
      line-height: 1.6;
      color: #666;
    }

    /* Seção de Imagem Divisória */
    .divider-image {
      height: 320px;
      background-size: cover;
      background-position: center;
      background-attachment: scroll; /* avoid fixed on mobile */
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .divider-image.img1 {
      background-image: url('../img/zlagro/photo-1574943320219-553eb213f72d.webp');
    }

    .divider-image.img2 {
      background-image: url('../img/zlagro/hero.webp');
    }

    .divider-overlay {
      background-color: rgba(0, 102, 204, 0.75);
      padding: 20px;
      border-radius: 10px;
    }

    .divider-text {
      font-size: clamp(1.2rem, 3.5vw, 2rem);
      font-weight: bold;
      text-align: center;
    }

    /* Seção de Serviços */
    .services-section {
      background-color: #f9f9f9;
      color: #333;
      padding: 40px 16px;
    }

    .agriculture-section {
      background-color: #ffffff;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
    }

    .service-card {
      background-color: white;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0,0,0,0.08);
      transition: transform 0.24s ease;
    }

    .service-card:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .service-image {
      width: 100%;
      height: auto;
      aspect-ratio: 16/9;
      background-size: cover;
      background-position: center;
    }

    .service-content {
      padding: 18px;
    }

    .service-content h3 {
      color: #0066cc;
      margin-bottom: 15px;
      font-size: 1.4rem;
    }

    .service-content p {
      line-height: 1.6;
      color: #666;
      margin-bottom: 15px;
    }

    .service-btn {
      display: inline-block;
      background-color: greenyellow;
      color: #333;
      padding: 10px 20px;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    .service-btn:hover {
      background-color: #9acd32;
    }

    /* Seção de Contactos */
    .contact-section {
      background-color: #0066cc;
      padding: 40px 16px;
      text-align: center;
    }

    .contact-section h2 {
      color: greenyellow;
      margin-bottom: 20px;
      font-size: clamp(1.4rem, 4vw, 2.5rem);
    }

    .contact-section p {
      font-size: 1.1rem;
      line-height: 1.8;
    }

    .contact-info {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
      margin-top: 30px;
    }

    .contact-item {
      font-size: 1.2rem;
    }

    /* Mobile small adjustments */
    @media (max-width: 599px) {
      .hero-section { min-height: 45vh; padding: 22px 12px; }
      .hero-logo { font-size: clamp(1.8rem, 10vw, 3rem); }
      .hero-subtitle { font-size: 1rem; }
      .section-title { font-size: 1.6rem; }
      .divider-image { height: 220px; }
      .about-text, .section-intro { font-size: 0.95rem; }
      .info-grid { grid-template-columns: 1fr; }
      .services-grid { grid-template-columns: 1fr; }
      header { padding: 14px 12px; }
      nav { display: flex; gap: 12px; }
      .menu-toggle { display: block; }
    }

    /* Tablet */
    @media (min-width: 600px) and (max-width: 1023px) {
      .hero-section { min-height: 48vh; padding: 28px 20px; }
      .hero-logo { font-size: clamp(2.4rem, 7.5vw, 4rem); }
      .info-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
      .services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
      .divider-image { height: 280px; background-attachment: scroll; }
      header { padding: 18px 6%; }
      .menu-toggle { display: block; }
      nav { display: flex; gap: 16px; }
    }

    /* Laptop */
    @media (min-width: 1024px) and (max-width: 1439px) {
      .hero-section { min-height: 55vh; padding: 36px 40px; }
      .hero-logo { font-size: clamp(3rem, 6.5vw, 4.6rem); }
      .info-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
      .services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
      .divider-image { height: 360px; }
      header { padding: 22px 8%; }
    }

    /* Large screens */
    @media (min-width: 1440px) {
      .hero-section { min-height: 60vh; padding: 48px 80px; }
      .hero-logo { font-size: clamp(4rem, 5.5vw, 6rem); }
      .divider-image { height: 420px; }
      .services-grid { gap: 30px; }
      .info-grid { gap: 30px; }
      header { padding: 28px 8%; }
    }
    
   .ing{
     border-radius: 16px;
     max-width: 100%;
   }

/* ====== BOTÃO VOLTAR AO TOPO ====== */

/* Container principal do botão */
.btn-topo-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* O botão em si */
.btn-topo {
    /* Formato e tamanho */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    /* Cores e aparência */
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    
    /* Centralização do conteúdo */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Transições suaves */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
}

/* Quando o botão está visível */
.btn-topo.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Efeito hover (quando o mouse passa por cima) */
.btn-topo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
    background: linear-gradient(135deg, #004d99 0%, #0066cc 100%);
}

/* Efeito active (quando clica) */
.btn-topo:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s;
}

/* Ícone/seta do botão */
.btn-topo-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

/* Animação da seta no hover */
.btn-topo:hover .btn-topo-icon {
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 768px) {
    .btn-topo-container {
        bottom: 20px;
        right: 20px;
    }
    
    .btn-topo {
        width: 50px;
        height: 50px;
    }
    
    .btn-topo-icon {
        width: 20px;
        height: 20px;
    }
}

/* Animações de entrada */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-topo.visible {
    animation: slideUpFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Acessibilidade - foco */
.btn-topo:focus {
    outline: 3px solid rgba(0, 198, 255, 0.5);
    outline-offset: 3px;
}

.btn-topo:focus:not(:focus-visible) {
    outline: none;
}