/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f2f2f2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 100px;
}
@media (max-width: 1300px) and (min-width: 1200px) {
  .container {
    margin: 0 auto;
    padding: 0 20px;
  }
}

/* Access Control Hero Section */
.access-control-hero {
  background-color: #f2f2f2;
  padding: 80px 0;
  color: #333;
}

.hero-content-software {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Poppins";
  font-size: 50px;
  font-weight: 600;
  line-height: 120%;
  color: #1c1c1c;
  margin-bottom: 20px;
  letter-spacing: normal;
}
.hero-text p {
  font-family: "Funnel Display";
  font-size: 20px;
  line-height: 31px;
  font-weight: 400;
  color: #1c1c1c;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  background-color: #dc6339;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-cta-primary:hover {
  background-color: #e2e2e2;
  color: #333;
  transform: translateY(-2px);
}

.hero-cta-secondary {
  background-color: #e2e2e2;
  color: #1C1C1C;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  background-color: #dc6339;
  color: white;
  transform: translateY(-2px);
}

.hero-images-wrapper {
  position: relative;
  display: inline-block;
}

.main-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.secondary-hero-image {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32%;
  border-radius: 15px;
}

.hero-images-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-right: 25px solid #f5f5f5;
  transition: opacity 0.3s ease;
}

/* Why Choose Section */
.why-choose-section {
  padding: 80px 0;
}

.why-choose-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.why-choose-title h2 {
  font-family: "Poppins";
  font-size: 42px;
  font-weight: 600;
  color: #1c1c1c;
  line-height: 120%;
}

.why-choose-subtitle p {
  font-family: "Funnel Display";
  font-size: 20px;
  color: #1c1c1c;
  line-height: normal;
  padding-top: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
}

.feature-card {
  flex-direction: row;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid #dc6339;
}

.feature-icon {
  margin-right: 25px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-content h3 {
  font-family: "Poppins";
  font-size: 24px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 20px;
}

.feature-content ul {
  list-style-type: none;
}

.feature-content li,
.feature-content p {
  font-family: "Funnel Display";
  font-size: 18px;
  color: #1c1c1c;
  line-height: 25px;
  font-weight: 400;
}

.feature-content ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.feature-content ul li::before {
  content: "•";
  color: #1c1c1c;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 18px;
}

/* Testimonial Section */
.testimonial {
  padding: 60px 0;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  padding: 6px 15px;
  border-radius: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  gap: 10px;
	
	font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
}

.testimonial-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #232323;
  margin: 0;
}

.testimonial-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
  background: #DC6339;
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(20,20,40,0.10);
  overflow: hidden;
  min-height: 320px;
  margin-top: 0;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  background: #FFFFFF;
  border-radius: 30px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  grid-row: 1 / -1;
  grid-column: 1 / 2;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: none;
  border: none;
  display: block;
}

.testimonial-text {
  grid-column: 2 / 3;
  grid-row: 1 / -1;
  flex: 1;
  padding: 56px 60px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  color: #FFFFFF;
}

.testimonial-quote-icon {
  position: absolute;
  top: 32px;
  right: 48px;
  width: 70px;
  height: 70px;
  color: #bdb7e3;
  opacity: 0.7;
}

.testimonial-quote blockquote {
   font-family: 'Funnel Display', sans-serif; 
    font-weight: 500;
    font-size: 19px;
    line-height: 28px;
    margin: 0;
    max-width: 80%;
}

.testimonial-client-info h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px 0;
  margin-top: 40px;
  color: #FFFFFF;
}

.testimonial-client-info p {
   font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin: 0;
    opacity: 0.85;
    color: #FFFFFF;
}

/* Estilo do cartão CTA */
.cta-card {
  display: flex;
  align-items: end;
  justify-content: center;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #dc6339;
  color: #ffffff;
  padding: 50px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 32px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  height: 200px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #c7562f;
}

.cta-button svg {
  stroke: #ffffff;
}

/* Technology Section */
.equipment-categories {
  padding: 80px 0;
  background-color: #f2f2f2;
}

.equipment-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: flex-start;
}

.equipment-title h2 {
  font-size: 42px;
  font-weight: 600;
  color: #1c1c1c;
  margin: 0;
  line-height: 120%;
}

.equipment-subtitle p {
  font-size: 20px;
  font-family: "Funnel Display", sans-serif;
  color: #1c1c1c;
  margin: 0;
  max-width: 500px;
}

/* ----- Grelha de Cards (Desktop) ----- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.equipment-card {
  border-radius: 20px;
  border: 2px solid #dc6339;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 250px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.equipment-icon {
  width: 60px;
  height: 60px;
  background-color: #dc6339;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.equipment-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 9px;
  line-height: 30px;
}

.equipment-content p {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

/* ----- Card de Destaque (Desktop) ----- */
.equipment-card.destaque {
  position: relative; /* Essencial para posicionar a seta */
  border: none;
  box-shadow: 0 0 15px 2px rgba(220, 99, 57, 0.4);
  justify-content: center; /* Alinha o texto verticalmente */
  align-items: center;
  gap: 20px;
}

/* Esconde a estrutura de ícone antiga que já não é usada neste card */
.equipment-card.destaque .equipment-icon {
  display: none;
}

/* Aumenta o título do card de destaque */
.equipment-card.destaque h3 {
  max-width: 85%;
  font-size: 28px;
  line-height: 120%;
  color: #1e1e1e;
}

.equipment-card.destaque p {
  max-width: 85%;
  font-size: 16px;
  font-family: "Funnel Display", sans-serif;
  color: #1c1c1c;
}

/* Posiciona a seta no canto superior direito */
.equipment-card.destaque .arrow-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px; /* Manter para dar espaço ao ícone */
  height: 42px; /* Manter para dar espaço ao ícone */
  color: #dc6339;

  /* 2. Removemos APENAS as propriedades visuais do círculo */
  border: none; /* ou border: 0; */
  border-radius: 0;
}

.equipment-card.destaque .arrow-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

/* Efeito hover melhorado */
.equipment-card.destaque:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(220, 99, 57, 0.4);
}

/* ----- Botão mobile (escondido em desktop) ----- */
.btn-mobile-pos {
  display: none;
}

/* Section Label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  background-color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-bullet {
  color: #dc6339;
  font-size: 25px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
}

.section-text {
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

/* Business Solutions Section - Updated to match the image */
.xopvision-industries-container {
  max-width: 1393px;
  margin: 0 auto;
  padding: 60px 40px;
}

.xopvision-industries-title {
  font-family: "Poppins";
  font-size: 42px;
  font-weight: 600;
  color: #1c1c1c;
  line-height: 128%;
  max-width: 70%;
}
.xopvision-industries-subitle {
  font-family: "Funnel Display";
  font-weight: 400;
  font-size: 20px;
  line-height: normal;
  margin: 30px 0px;
  max-width: 60%;
}

.xopvision-industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.xopvision-industry-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
}

.xopvision-industry-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}

.xopvision-industry-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 120%;
  color: #1c1c1c;
  margin-bottom: 20px;
}

.xopvision-industry-content {
  text-align: left;
}

.xopvision-industry-scenario,
.xopvision-industry-benefit {
  margin-bottom: 15px;
}

.xopvision-scenario-label,
.xopvision-benefit-label {
  font-weight: 700;
  color: #333;
  display: inline;
}

.xopvision-scenario-text,
.xopvision-benefit-text {
  font-family: "Funnel Display";
  font-weight: 400;
  color: #1c1c1c;
  display: inline;
  font-size: 18px;
  line-height: 25px;
}

.xopvision-desktop-button {
  background-color: #000;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background-color 0.3s ease;
}

.xopvision-desktop-button:hover {
  background-color: #555;
}

.xopvision-mobile-button {
  display: none;
}

/* Final CTA Section - Updated to match the image */
.final-cta {
  padding: 80px 0;
  background-color: #f2f2f2;
}

.final-cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.final-cta-text h2 {
  font-family: "Poppins";
  font-size: 42px;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 20px;
  line-height: 120%;
}

.final-cta-text p {
  font-family: "Funnel Display";
  font-size: 20px;
  color: #1c1c1c;
  line-height: 30px;
  margin-bottom: 30px;
}
.final-cta-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  background-color: #dc6339;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #d54d1e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 93, 36, 0.3);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #333;
  padding: 13px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #f9f9f9;
  color: black;
  transform: translateY(-2px);
}

.final-cta-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .container {
    margin: 0 auto;
    padding: 0 20px;
  }
  .access-control-hero,
  .why-choose-section,
  .technology-section,
  .sectors-section,
  .final-cta-section {
    padding: 60px 0;
  }

  /* --- Secção Hero --- */
  .hero-content-software {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .hero-text {
    display: contents;
  }

  .hero-images-wrapper {
    order: -1;
  }
  .secondary-hero-image {
    width: 31%;
    bottom: 0;
    right: 0;
  }
  .hero-buttons {
    order: 3;
    justify-content: center;
  }

  .hero-image-software {
    order: 2;
  }

  /* --- Secção Why Choose --- */
  .why-choose-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .why-choose-subtitle p {
    padding-top: 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .feature-card {
    padding: 20px 0;
  }
  .cta-button {
    display: none;
  }
  .features-grid-new {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quote-button {
    position: static;
    text-align: center;
    margin-top: 20px;
  }
  .cta-button-cards {
    display: none;
  }
  .mobile-container {
    padding: 15px;
  }
  .hero-image {
    display: none !important;
  }
  .cta-card {
    display: none;
  }

  .testimonial {
    display: none;
  }
  
  /* --- Secção Business Solutions --- */
  .xopvision-industries-subitle {
    text-align: center;
    margin-bottom: 20px;
    max-width: 100%;
  }
  .xopvision-industries-container {
    padding: 30px 20px;
  }

  .xopvision-industries-title {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    max-width: 100%;
  }

  .xopvision-industries-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .xopvision-industries-grid::-webkit-scrollbar {
    display: none;
  }

  .xopvision-industry-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    margin-bottom: 0;
  }

  .xopvision-industry-image {
    height: 250px;
    border-radius: 25px;
  }

  .xopvision-industry-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .xopvision-scenario-text,
  .xopvision-benefit-text {
    font-size: 15px;
    text-align: center;
    align-items: center;
  }

  .xopvision-desktop-button {
    display: none;
  }

  .xopvision-mobile-button {
    display: block;
    background-color: #dc6339;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px auto 0;
    position: relative;
    transition: background-color 0.3s ease;
  }

  .xopvision-mobile-button::after {
    content: "→";
    margin-left: 8px;
    font-size: 16px;
  }

  .xopvision-mobile-button:hover {
    background-color: #dc6339;
  }

  .xopvision-scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s ease;
  }

  .xopvision-scroll-dot.active {
    background-color: #dc6339;
  }
  .why-choose h2,
  .technology-section h2,
  .final-cta-text h2 {
    font-size: 28px;
  }
  .final-cta {
    padding: 60px 0;
  }

  .final-cta-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Ordem dos elementos: texto -> botões -> imagem */
  .final-cta-text {
    order: 1;
    text-align: center;
  }

  .final-cta-buttons {
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .final-cta-image {
    order: 3;
  }

  .final-cta-text h2 {
    font-size: 28px;
  }

  .final-cta-text p {
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
  }
  .hero-text h1 {
    order: 1;
    text-align: center;
    align-items: center;
    font-size: 28px;
  }

  .hero-text p {
    order: 1;
    text-align: center;
    align-items: center;
  }

  /* Secção Tecnologia */
  /* ----- Ajustes no cabeçalho ----- */
  .equipment-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .equipment-title h2 {
    font-size: 28px;
  }
  .equipment-subtitle p {
    margin: 15px auto 0;
  }

  /* ----- Transformar a grelha em Carrossel ----- */
  .equipment-grid {
    display: flex;
    flex-wrap: nowrap; /* A CORREÇÃO CRÍTICA: Força uma única linha */
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .equipment-grid::-webkit-scrollbar {
    display: none;
  }

  /* ----- Estilo dos cards no carrossel ----- */
  .equipment-grid .equipment-card {
    flex: 0 0 90%; /* Cada card ocupa 90% da largura */
    scroll-snap-align: center;
    padding: 20px 15px;
  }
  .equipment-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  .equipment-content h3 {
    font-size: 18px;
    line-height: 24px;
  }
  .equipment-content p {
    font-size: 14px;
  }

  /* ----- Esconde o card de destaque em mobile ----- */
  .equipment-grid .equipment-card.destaque {
    display: none;
  }

  /* ----- Mostra e estiliza o botão mobile ----- */
  .btn-mobile-pos {
    display: block;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 14px 20px;
    background-color: #dc6339;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-family: "Poppins", sans-serif;
  }
}
/* Desktop only - hide mobile elements */
@media (min-width: 769px) {
  .xopvision-mobile-only {
    display: none;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .xopvision-industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .xopvision-industries-title {
    font-size: 36px;
  }
}
@media (max-width: 480px) {
  .final-cta {
    padding: 40px 0;
  }

  .final-cta-text h2 {
    font-size: 24px;
  }

  .final-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
/* ===== Ajustes gerais para TABLET (mantém layout desktop, reduz fontes) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 90%;
    line-height: 1.2;
  }

  p, li, a, span, button {
    font-size: 90%;
    line-height: 1.5;
  }

  .hero-text h1 {
    font-size: 20px;
  }

  .hero-text p {
    font-size: 15px;
    line-height: 120%;
  }

  .why-choose-title h2,
  .equipment-title h2,
  .xopvision-industries-title,
  .final-cta-text h2 {
    font-size: 28px;
  }

  .why-choose-subtitle p,
  .equipment-subtitle p,
  .xopvision-industries-subitle,
  .final-cta-text p {
    font-size: 16px;
  }

  .feature-content h3,
  .equipment-content h3,
  .xopvision-industry-title {
    font-size: 20px;
  }

  .feature-content p,
  .equipment-content p,
  .xopvision-industry-content p {
    font-size: 15px;
  }

  .cta-button,
  .btn-primary,
  .btn-secondary,
  .hero-cta-primary,
  .hero-cta-secondary {
    font-size: 90%;
    padding: 10px 18px;
  }

  .container {
    padding: 0 30px;
  }

  .xopvision-industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
