
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap');

:root {
  --milbra-blue: #173E6B;
  --milbra-yellow: #FFA600;
  --milbra-gray: #D9D9D9;
  --milbra-dark: #272324;
  --milbra-light: #F5F7FA;
  --white: #ffffff;
  --border: rgba(23, 62, 107, .12);
  --shadow: 0 18px 45px rgba(23, 62, 107, .14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-margin-top: 100px;
  font-family: Rubik, Arial, Helvetica, sans-serif;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #fff;
  color: var(--milbra-dark);
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.tarja-contato {
  width: 100%;
  position: fixed;
  z-index: 1002;
  text-align: right;
  padding: 3px 20px;
  box-sizing: border-box;
  top: 0;
  left: 0;
  display: flex;
  gap: 60px;
  justify-content: end;
  background: linear-gradient(-90deg, #FFA600, #FFA600, #FFA600, transparent, transparent, transparent);
}

.tarja-contato-item {
  font-family: Rubik;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--milbra-blue);
}

.tarja-contato-item a { color: var(--milbra-blue); }

#topoMenu.topo-menu-portal {
  box-sizing: border-box;
  z-index: 1000;
  background: var(--milbra-gray);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 24px 20px 12px;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 6px 20px rgba(23,62,107,.08);
}

#containerLogo {
  min-width: 150px;
  max-width: 260px;
}

.logo-milbra {
  max-width: 240px;
  min-width: 139px;
  width: 100%;
}

#menuMob.menu-portal {
  height: auto;
  display: flex;
  padding-left: 30px;
  flex: 1;
}

#menuMob ul {
  pointer-events: auto;
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

#menuMob ul li {
  cursor: pointer;
  background: transparent;
  border-radius: 20px;
  transition: all .5s ease-in-out;
}

#menuMob ul li:hover {
  background: #fff;
}

#menuMob ul a {
  color: var(--milbra-blue);
  font-size: 15px;
  text-decoration: none;
  font-family: Rubik;
  font-weight: 700;
}

.menubtProportion {
  text-align: center;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  min-width: 100%;
  height: fit-content;
  display: flex;
}

.lang-portal {
  width: fit-content;
  display: flex;
  position: relative;
}

.divSelLanguage {
  height: 40px;
  display: flex;
  overflow: hidden;
  background: #fff;
  border-radius: 40px;
}

.divItemLang {
  height: 40px;
  min-height: 40px;
  display: flex;
  width: 100px;
  justify-content: center;
  align-items: center;
  color: var(--milbra-blue);
  gap: 10px;
}

.bt-menu-cel {
  display: none;
  border: 0;
  background: transparent;
}

.btMenuLine {
  pointer-events: none;
  background: var(--milbra-blue);
  border-radius: 4px;
  width: 40px;
  height: 5px;
  transition: all .3s ease-in;
  display: block;
  margin: 4px 0;
}

#imgContainer.portal-hero-milbra {
  background:
    linear-gradient(135deg, rgba(23,62,107,.92), rgba(23,62,107,.62), rgba(156,176,201,.25)),
    url('https://milbra.buuk.com.br/storage/page/home-1/yiIeQ-fundo-hero-milbra-home.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  padding-top: 100px;
}

#textHomeContainer {
  width: 100%;
  height: 100%;
  align-items: start;
  background: linear-gradient(135deg, #173E6Bdd, #173E6Baa, #9CB0C933, #9CB0C933);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#textHomeContainerCenter {
  width: 52%;
  min-width: 400px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding-left: 60px;
}

#homeTitleBanner1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 121%;
  font-family: Rubik;
  font-weight: 700;
  color: #fff;
}

#homeSubtitleBanner1,
#homeSubtitleBanner1 * {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 140%;
  font-family: Rubik;
  font-weight: 600;
  color: #fff;
  max-width: 560px;
  text-align: left;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.findOutMoreNew {
  background: var(--milbra-yellow);
  color: var(--milbra-blue);
  height: fit-content;
  padding: 13px 22px;
  justify-content: center;
  font-family: Rubik;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: fit-content;
  border: none;
  border-radius: 40px;
  align-items: center;
  text-decoration: none;
  transition: all .3s ease-in-out;
  display: flex;
}

.findOutMoreNew:hover {
  background: #fff;
  color: var(--milbra-blue);
}

.findOutMoreNew.secondary {
  background: #fff;
  color: var(--milbra-blue);
}

.findOutMoreNew.light {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.homeSection1General {
  width: 100%;
  padding: 70px 0;
}

.homeSection1Center,
.homeSection1General {
  display: flex;
  justify-content: center;
  align-items: center;
}

.homeSection1Center {
  width: 90%;
  flex-direction: column;
}

.homeSection1Title {
  font-size: 40px;
  line-height: 46px;
  font-family: Rubik;
  font-weight: 700;
  color: var(--milbra-blue);
  text-align: center;
}

.homeSection1Content {
  font-size: 20px;
  line-height: 30px;
  font-family: Rubik;
  color: var(--milbra-blue);
  margin: 10px 0 30px;
  text-align: center;
  max-width: 950px;
}

.portal-card-grid {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portal-card,
.campaign-card,
.portal-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.portal-card-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff3d6;
  color: var(--milbra-blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 18px;
}

.portal-card h3,
.campaign-card h3,
.portal-form-card h2 {
  color: var(--milbra-blue);
  font-size: 24px;
  margin-bottom: 10px;
}

.portal-card p,
.campaign-card p,
.portal-form-card p {
  color: #4c6178;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.portal-button,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--milbra-blue);
  color: #fff;
  border: 0;
  border-radius: 40px;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
}

.homeSection3General {
  width: 100%;
  border-radius: 30px 30px 0 0;
  background: var(--milbra-blue);
  padding: 70px 0;
}

.homeSection3Center,
.homeSection3General {
  display: flex;
  justify-content: center;
  align-items: center;
}

.homeSection3Center {
  width: 90%;
  flex-direction: column;
  gap: 26px;
}

.homeSection3Title {
  font-size: 40px;
  line-height: 46px;
  font-family: Rubik;
  font-weight: 700;
  color: var(--milbra-yellow);
  text-align: center;
}

.homeSection3Content {
  font-size: 20px;
  line-height: 160%;
  font-family: Rubik;
  color: #fff;
  text-align: center;
  max-width: 950px;
}

.portal-trust-grid {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.portal-trust-card {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
}

.portal-trust-card strong {
  display: block;
  color: var(--milbra-yellow);
  margin-bottom: 8px;
  font-size: 18px;
}

.portal-trust-card span {
  color: rgba(255,255,255,.86);
  line-height: 1.55;
}

.campaign-highlight {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  margin-bottom: 26px;
}

.campaign-video-wrap {
  background: #fff;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.campaign-video-frame {
  width: 100%;
  max-width: 260px;
  height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}

.campaign-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-text-box {
  background: #fff;
  border-radius: 30px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.campaign-badge {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3d6;
  color: var(--milbra-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.campaign-text-box h3 {
  color: var(--milbra-blue);
  font-size: 30px;
  line-height: 1.18;
  margin: 18px 0 10px;
}

.campaign-text-box p {
  color: #4c6178;
  line-height: 1.7;
  margin-bottom: 22px;
}

.campaign-grid {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.portal-footer {
  width: 100%;
  background: var(--milbra-dark);
  color: #fff;
  padding: 26px 20px;
  text-align: center;
}

.portal-subpage-hero {
  width: 100%;
  padding: 170px 20px 85px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(23,62,107,.92), rgba(23,62,107,.62)),
    url('https://milbra.buuk.com.br/storage/page/home-1/yiIeQ-fundo-hero-milbra-home.jpg');
  background-position: center;
  background-size: cover;
}

.portal-subpage-center {
  width: min(960px, 100%);
  margin: 0 auto;
}

.portal-label {
  color: var(--milbra-yellow);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.portal-subpage-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  margin: 12px 0;
}

.portal-subpage-hero p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.94);
}

.portal-form-main {
  width: 100%;
  padding: 70px 20px 90px;
  background: var(--milbra-light);
}

.portal-form-card {
  width: min(980px, 100%);
  margin: 0 auto;
}

.notice {
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 22px;
  background: #f0f6ff;
  border: 1px solid rgba(23, 62, 107, .14);
  color: var(--milbra-blue);
  line-height: 1.6;
}

.notice.warn {
  background: #fff8eb;
  border-color: #f0cf80;
  color: #9b5600;
}

.notice.error,
.result-box.error {
  background: #fff1f1;
  border-color: #ffc7c7;
  color: #b00000;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--milbra-blue);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(23,62,107,.16);
  border-radius: 14px;
  padding: 13px 15px;
  font-family: Rubik;
  outline: none;
  background: #fff;
  color: #26364d;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--milbra-yellow);
  box-shadow: 0 0 0 4px rgba(255,166,0,.16);
}

.hint {
  color: #6c7784;
  font-size: 13px;
  line-height: 1.4;
}

.hidden { display: none !important; }

.button-submit {
  border: 0;
  border-radius: 40px;
  padding: 18px 34px;
  font-family: Rubik;
  font-weight: 800;
  color: var(--milbra-blue);
  background: var(--milbra-yellow);
  cursor: pointer;
}

.result-box {
  display: none;
  margin-top: 20px;
}

.protocol {
  font-weight: 900;
  color: var(--milbra-blue);
  font-size: 18px;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.admin-actions select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0 12px;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 900px;
}

th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--milbra-blue);
  background: #f3f7fb;
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--milbra-blue);
  font-weight: 800;
  font-size: 12px;
}

.badge.high {
  background: #fff1f2;
  color: #be123c;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .54);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1003;
}

.modal.open { display: flex; }

.modal-content {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
}

@media screen and (max-width: 1000px) {
  .tarja-contato { display: none; }

  #topoMenu.topo-menu-portal {
    padding: 18px 18px;
    min-height: 86px;
  }

  #menuMob.menu-portal {
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    padding: 0;
    background: #fff;
    transition: height .3s ease;
  }

  #menuMob.menu-portal.open {
    height: auto;
    padding: 18px 0;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
  }

  #menuMob ul {
    flex-direction: column;
    align-items: center;
  }

  .bt-menu-cel {
    display: block;
  }

  .lang-portal {
    display: none;
  }

  #textHomeContainer {
    align-items: center;
    justify-content: end;
  }

  #textHomeContainerCenter {
    width: 85%;
    min-width: auto;
    padding-left: 0;
    padding-bottom: 60px;
  }

  .portal-card-grid,
  .portal-trust-grid,
  .campaign-highlight,
  .campaign-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .campaign-video-frame {
    max-width: 240px;
    height: 420px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  #containerLogo {
    width: 138px;
  }

  #imgContainer.portal-hero-milbra {
    min-height: 650px;
  }

  #homeTitleBanner1 {
    font-size: 28px;
  }

  #homeSubtitleBanner1 {
    font-size: 16px;
    text-align: left;
  }

  .portal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .findOutMoreNew {
    width: 100%;
  }

  .homeSection1Title,
  .homeSection3Title {
    font-size: 28px;
    line-height: 1.25;
  }

  .homeSection1Content,
  .homeSection3Content {
    font-size: 16px;
    line-height: 1.55;
  }

  .campaign-video-frame {
    max-width: 220px;
    height: 360px;
  }
}
