/* Estilos customizados para o logo SGS - Versão 3.2 - Com Link */

/* ========================================
   LINK DO LOGO SGS
   ======================================== */

/* Remover decoração do link */
.u-header .logos-wrapper a {
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

/* Efeito hover no link */
.u-header .logos-wrapper a:hover .u-image-sgs {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* ========================================
   DESKTOP E TABLETS
   ======================================== */

/* Desktop - Wrapper invisível (não afeta layout) */
.u-header .u-sheet-1 .logos-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.u-header .u-sheet-1 .logos-wrapper > * {
  pointer-events: auto;
}

/* Desktop - Logo SGS no canto esquerdo */
.u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: auto;
  max-width: 100px;
  z-index: 10;
}

/* Desktop - Aparelho auditivo mantém posição original do Nicepage */
.u-header .u-sheet-1 .logos-wrapper .u-image-2 {
  position: absolute;
  width: 146px;
  height: 146px;
  top: 50%;
  right: 156px;
  transform: translateY(-50%);
  margin-top: -57.5px;
}

/* Ajuste para o logo WSA não sobrepor */
.u-header .u-sheet-1 .u-logo.u-image-1 {
  margin-left: 120px;
}

/* Tablets grandes */
@media (max-width: 1199px) {
  .u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
    width: 90px;
    max-width: 90px;
  }
  
  .u-header .u-sheet-1 .u-logo.u-image-1 {
    margin-left: 105px;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-2 {
    width: 120px;
    height: 120px;
    right: 98px;
    margin-top: -60px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
    width: 75px;
    max-width: 75px;
    left: 8px;
  }
  
  .u-header .u-sheet-1 .u-logo.u-image-1 {
    margin-left: 90px;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-2 {
    width: 120px;
    height: 120px;
    right: -1px;
    margin-top: -60px;
  }
}

/* Tablets pequenos */
@media (max-width: 767px) {
  .u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
    width: 65px;
    max-width: 65px;
    left: 5px;
  }
  
  .u-header .u-sheet-1 .u-logo.u-image-1 {
    margin-left: 75px;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-2 {
    width: 120px;
    height: 120px;
    right: 11px;
    margin-top: -25px;
  }
}

/* ========================================
   MOBILE - LAYOUT VERTICAL
   Texto em cima, logos em baixo lado a lado
   ======================================== */

@media (max-width: 575px) {
  /* Aumentar altura do header */
  .u-header .u-sheet-1 {
    min-height: 140px !important;
    height: 140px !important;
    padding: 15px 10px !important;
    position: relative !important;
    display: block !important;
  }
  
  /* Logo WSA - Centralizado no topo, sem margem esquerda */
  .u-header .u-sheet-1 .u-logo.u-image-1 {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 15px auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: block !important;
    text-align: center !important;
  }
  
  .u-header .u-sheet-1 .u-logo-image-1 {
    max-width: 280px !important;
    width: auto !important;
    height: auto !important;
    max-height: 50px !important;
    display: inline-block !important;
    margin: 0 !important;
  }
  
  /* Wrapper - Posicionado estaticamente embaixo do logo WSA */
  .u-header .u-sheet-1 .logos-wrapper {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    pointer-events: auto !important;
  }
  
  /* Link do logo SGS em mobile */
  .u-header .u-sheet-1 .logos-wrapper a {
    display: block !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
  
  /* Logo SGS - Primeiro elemento do wrapper */
  .u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 60px !important;
    max-width: 60px !important;
    min-width: 60px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  
  /* Aparelho auditivo - Segundo elemento do wrapper */
  .u-header .u-sheet-1 .logos-wrapper .u-image-2 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
}

/* Extra small devices - 400px */
@media (max-width: 400px) {
  .u-header .u-sheet-1 {
    min-height: 130px !important;
    height: 130px !important;
    padding: 12px 8px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper {
    gap: 25px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
    width: 55px !important;
    max-width: 55px !important;
    min-width: 55px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-2 {
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
  }
  
  .u-header .u-sheet-1 .u-logo-image-1 {
    max-width: 240px !important;
    max-height: 45px !important;
  }
}

/* iPhone SE - 375px */
@media (max-width: 375px) {
  .u-header .u-sheet-1 {
    min-height: 125px !important;
    height: 125px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper {
    gap: 22px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-2 {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
  
  .u-header .u-sheet-1 .u-logo-image-1 {
    max-width: 220px !important;
    max-height: 42px !important;
  }
}

/* iPhone Mini - 360px */
@media (max-width: 360px) {
  .u-header .u-sheet-1 {
    min-height: 120px !important;
    height: 120px !important;
    padding: 10px 5px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper {
    gap: 20px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-sgs {
    width: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
  }
  
  .u-header .u-sheet-1 .logos-wrapper .u-image-2 {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  
  .u-header .u-sheet-1 .u-logo-image-1 {
    max-width: 200px !important;
    max-height: 38px !important;
  }
}

