:root {
  --ipassp-green: #075522;
  --ipassp-green-dark: #003f18;
  --ipassp-green-soft: #eaf5f0;
  --ipassp-red: #d52027;
  --ipassp-red-dark: #b6161c;
  --ipassp-ink: #14251a;
  --ipassp-muted: #657069;
  --ipassp-line: #e5e9e6;
  --ipassp-shadow: 0 8px 28px rgba(5, 54, 25, 0.08);
}

body {
  background: #fff;
  color: var(--ipassp-ink);
  font: 14px/1.55 "Open Sans", sans-serif;
}

.container { max-width: 1200px; }

.top-header {
  background: var(--ipassp-green);
  color: #fff;
  min-height: 38px;
}

.top-header-inner,
.main-header-inner,
.site-footer-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.top-header-inner { min-height: 38px; position: relative; }
.top-contact { display: flex; gap: 28px; font-size: 12px; }
.top-contact i { color: #f7c94b; margin-right: 5px; }

.top-header-actions,
.header-social-links {
  align-items: center;
  display: flex;
}

.top-header-actions { gap: 12px; }
.header-social-links { gap: 5px; }

.header-social-links a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 25px;
  justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  width: 25px;
}

.header-social-links a:hover,
.header-social-links a:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--ipassp-green);
}

.accessibility-controls { align-items: center; display: flex; gap: 6px; }
.accessibility-controls button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  padding: 5px 7px;
}
.accessibility-controls button:hover { color: #f7c94b; }

.main-header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(5, 55, 25, 0.06);
  min-height: 100px;
  position: relative;
  z-index: 30;
}
.main-header-inner { min-height: 100px; }

.brand a,
.footer-brand {
  align-items: center;
  color: var(--ipassp-green-dark);
  display: flex;
  gap: 13px;
  text-decoration: none;
}
.brand-symbol {
  align-items: center;
  background: linear-gradient(145deg, #07914a, #075522);
  border-radius: 58% 20% 58% 20%;
  color: #fff;
  display: inline-flex;
  font-size: 29px;
  height: 56px;
  justify-content: center;
  transform: rotate(-8deg);
  width: 48px;
}
.brand-symbol i { transform: rotate(8deg); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.brand-copy small { color: #1f3025; font-size: 10px; line-height: 1.25; margin-top: 5px; }

.main-header .legacy-logo {
  align-items: center;
  background: url("../images/logo_prefa.jpg") no-repeat left center;
  background-size: 68px auto;
  display: flex;
  height: 78px;
  margin: 0;
  padding-left: 80px;
  text-align: left;
}
.main-header .legacy-logo h1 { font-size: 28px; font-weight: 800; margin: 0; text-transform: uppercase; }
.main-header .legacy-logo h1 a { color: var(--ipassp-green-dark); }

.desktop-navigation { align-items: center; display: flex; gap: 17px; }
.main-header .menu { margin: 0; }
.main-header .menu > ul { align-items: center; display: flex; gap: 2px; }
.main-header .menu ul li { float: none; margin-left: 0; position: relative; }
.main-header .menu ul li a {
  color: #172018;
  display: block;
  font-size: 12px;
  font-weight: 700;
  padding: 14px 12px;
  text-transform: uppercase;
}
.main-header .menu ul li a:hover { color: var(--ipassp-green); }
.main-header .menu .submenu {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--ipassp-shadow);
  display: none;
  left: 0;
  min-width: 230px;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  z-index: 50;  
}
.main-header .menu li:hover > .submenu { display: block; }
.main-header .menu .submenu li a { font-size: 12px; padding: 10px 16px; text-transform: uppercase; }

.red-button {
  background: var(--ipassp-red);
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 13px 18px;
  text-transform: uppercase;
}
.red-button:hover { background: var(--ipassp-red-dark); color: #fff; }

.brand-ribbon {
  background: linear-gradient(115deg, #0874bc 0 13%, #f3bb18 13% 24%, #008855 24% 42%, #db3126 42% 56%, #f27416 56% 69%, #0874bc 69% 84%, #075522 84%);
  height: 24px;
  opacity: 0.95;
}
.responsive-menu { display: none; }

.home-hero { padding-top: 24px; }
.home-hero .flexslider {
  background: #f9f0ec;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--ipassp-shadow);
  margin: 0 0 48px;
  overflow: hidden;
  position: relative;
}
.home-hero .slides > li { background: linear-gradient(100deg, #f8efeb, #fff); display: none; min-height: 360px; position: relative; }
.home-hero .slides > li:first-child { display: block; }
.hero-media { height: 360px; width: 55%; }
.hero-media img { height: 100% !important; object-fit: cover; width: 100% !important; }
.home-hero .flex-caption {
  color: var(--ipassp-ink);
  display: block !important;
  left: 55%;
  padding: 60px 65px;
  position: absolute;
  text-align: left;
  top: 0;
  width: 45%;
}
.home-hero .flex-caption h2 {
  color: var(--ipassp-green-dark);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 18px;
  text-transform: none;
}
.hero-copy { color: #344339; font-size: 15px; line-height: 1.65; }
.hero-copy p { margin-bottom: 15px; }
.hero-copy a { background: var(--ipassp-red); border-radius: 5px; color: #fff; display: inline-block; font-weight: 700; padding: 10px 18px; }
.home-hero .flex-direction-nav a { background-color: #fff; border-radius: 50%; color: var(--ipassp-green); height: 38px; opacity: 1; width: 38px; }
.home-hero .flex-control-nav { bottom: -30px; }

.home-section { padding: 24px 0 34px; }
.home-section-title h2 {
  color: var(--ipassp-green-dark);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}
.home-section-title span { background: var(--ipassp-red); display: block; height: 2px; margin: 10px auto 22px; width: 38px; }
.home-section-title--left span { margin-left: 0; }

.services-grid {
  border: 1px solid var(--ipassp-line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.service-card {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--ipassp-line);
  border-right: 1px solid var(--ipassp-line);
  display: flex;
  gap: 18px;
  min-height: 150px;
  padding: 28px 28px;
}
.service-card:nth-child(3n) { border-right: 0; }
.service-icon {
  align-items: center;
  background: #fff1f1;
  border-radius: 50%;
  color: var(--ipassp-red);
  display: flex;
  flex: 0 0 52px;
  font-size: 25px;
  height: 52px;
  justify-content: center;
}
.service-card h3 { color: var(--ipassp-ink); font-size: 15px; font-weight: 800; margin: 2px 0 7px; }
.service-excerpt { color: var(--ipassp-muted); font-size: 12px; line-height: 1.5; }
.service-excerpt p { margin: 0; }
.service-card a,
.read-more { color: #07507c; display: inline-block; font-size: 12px; font-weight: 700; margin-top: 11px; }
.service-card a i,
.read-more i { font-size: 9px; margin-left: 4px; }

.institution-panel {
  background: linear-gradient(120deg, #edf8f4, #eef5f1);
  border-radius: 12px;
  display: grid;
  gap: 55px;
  grid-template-columns: 0.95fr 1.35fr;
  padding: 38px;
}
.institution-copy { color: #34443a; font-size: 14px; line-height: 1.75; }
.institution-copy p { margin-bottom: 12px; }
.green-button { background: var(--ipassp-green); border-radius: 5px; color: #fff; display: inline-block; font-size: 12px; font-weight: 700; margin-top: 12px; padding: 11px 18px; }
.green-button:hover { background: var(--ipassp-green-dark); color: #fff; }
.values-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.value-card { background: rgba(255, 255, 255, 0.85); border-radius: 10px; display: flex; gap: 14px; min-height: 125px; padding: 22px; }
.value-card > i { color: #168256; font-size: 23px; margin-top: 2px; }
.value-card h3 { color: var(--ipassp-ink); font-size: 12px; font-weight: 800; margin: 0 0 8px; text-transform: uppercase; }
.value-card p,
.value-card div { color: #516057; font-size: 12px; line-height: 1.6; }

.section-heading-row { align-items: flex-start; display: flex; justify-content: space-between; }
.section-heading-row > a { color: var(--ipassp-ink); font-size: 12px; font-weight: 700; padding-top: 5px; }
.news-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.news-card { border: 1px solid var(--ipassp-line); border-radius: 10px; box-shadow: 0 5px 18px rgba(10, 42, 21, 0.04); overflow: hidden; }
.news-image { display: block; height: 160px; position: relative; }
.news-image img { height: 100%; object-fit: cover; width: 100%; }
.news-image time { background: var(--ipassp-green); border-radius: 5px; color: #fff; display: flex; flex-direction: column; left: 10px; line-height: 1; padding: 8px; position: absolute; text-align: center; top: 10px; }
.news-image time strong { font-size: 18px; }.news-image time span { font-size: 9px; margin-top: 3px; }
.news-card-body { min-height: 180px; padding: 18px; }
.news-card h3 { font-size: 14px; font-weight: 800; line-height: 1.45; margin: 0 0 12px; }
.news-card h3 a { color: var(--ipassp-green-dark); }
.news-card p { color: var(--ipassp-muted); font-size: 12px; line-height: 1.55; }

.documentos-resumo__accordion {
  border: 1px solid rgba(15, 93, 48, .12);
  border-radius: 0 7px 7px 0;
  overflow: hidden;
}

.documentos-resumo__titulo {
  align-items: center;
  background: linear-gradient(90deg, rgba(15, 93, 48, 0.1), rgba(15, 93, 48, 0.02));
  border-left: 3px solid var(--ipassp-green);
  color: var(--ipassp-green-dark);
  cursor: pointer;
  display: flex;
  font-size: 17px;
  font-weight: 600;
  justify-content: space-between;
  list-style: none;
  padding: 10px 14px;
}

.documentos-resumo__titulo::-webkit-details-marker { display: none; }
.documentos-resumo__titulo i { font-size: 12px; transition: transform .25s ease; }
.documentos-resumo__accordion[open] .documentos-resumo__titulo i { transform: rotate(180deg); }

.documentos-resumo__conteudo {
  animation: documentos-resumo-abrir .2s ease;
  padding: 22px 16px 16px;
}

@keyframes documentos-resumo-abrir {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.documentos-resumo__mais {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.documentos-resumo__mais a {
  align-items: center;
  color: var(--ipassp-green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.documentos-resumo__mais a:hover {
  color: var(--ipassp-green-dark);
}

.contact-panel { background: linear-gradient(120deg, #fff3f1, #f9eded); border-radius: 12px; display: grid; gap: 45px; grid-template-columns: 0.75fr 1.75fr; padding: 34px 40px; }
.contact-line { align-items: flex-start; display: flex; gap: 16px; margin: 0 0 23px; }
.contact-line i { color: var(--ipassp-red); font-size: 21px; width: 22px; }
.contact-line p { color: #39463e; font-size: 12px; line-height: 1.6; margin: 0; }
.contact-form-modern { display: flex; flex-direction: column; gap: 12px; }
.contact-form-modern label { display: block; margin: 0; width: 100%; }
.contact-form-modern label > span { height: 1px; overflow: hidden; position: absolute; width: 1px; }
.contact-fields-row { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.contact-form-modern input,
.contact-form-modern select,
.contact-form-modern textarea { background: #fff; border: 1px solid #eee; border-radius: 5px; color: #39463e; font: 12px "Open Sans", sans-serif; padding: 13px 15px; width: 100%; }
.contact-form-modern textarea { min-height: 105px; resize: vertical; }
.contact-form-modern .red-button { align-self: flex-start; cursor: pointer; }

.quick-footer { background: #f7f8f7; border-top: 1px solid #edf0ee; margin-top: 28px; padding: 34px 0; }
.quick-footer-grid { display: grid; gap: 35px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-footer h3 { color: var(--ipassp-green-dark); font-size: 13px; font-weight: 800; margin: 0 0 15px; }
.quick-footer ul,
.quick-footer li { list-style: none; margin: 0; padding: 0; }
.quick-footer-menu { display: flex; flex-direction: column; gap: 0; }
.quick-footer-menu a {
  align-items: baseline;
  display: flex;
  gap: 8px;
  padding: 1px 0;
  text-decoration: none;
}
.quick-footer-menu > li > a::before {
  color: var(--ipassp-red);
  content: "\203A";
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.quick-footer-submenu { display: flex; flex-direction: column; gap: 0; padding-left: 19px !important; }
.quick-footer-submenu a::before {
  color: #879089;
  content: "\2022";
  flex: 0 0 auto;
  line-height: 1;
}
.quick-footer a,
.quick-footer p { color: #4a564e; font-size: 11px; line-height: 1.45; }
.quick-footer a:hover,
.quick-footer a:focus-visible { color: var(--ipassp-green); text-decoration: underline; }

.site-footer-new { background: linear-gradient(110deg, #034116, #076326); color: #fff; padding: 27px 0; }
.site-footer-inner { gap: 25px; }
.footer-brand-legacy img {
  background: #fff;
  border-radius: 4px;
  height: 54px;
  object-fit: contain;
  width: 72px;
}
.footer-brand strong { color: #fff; font-size: 18px; }
.site-footer-new > .container > img { height: 52px; object-fit: contain; width: 52px; }
.footer-legal button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  padding: 0;
  text-decoration: underline;
}

.privacy-dialog {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  color: var(--ipassp-ink);
  margin: auto;
  max-height: min(82vh, 760px);
  max-width: 760px;
  padding: 0;
  width: calc(100% - 32px);
}

.privacy-dialog::backdrop {
  background: rgba(0, 30, 12, .7);
  backdrop-filter: blur(2px);
}

.privacy-dialog__header {
  align-items: flex-start;
  background: linear-gradient(135deg, #edf7f1, #fff);
  border-bottom: 1px solid var(--ipassp-line);
  display: flex;
  justify-content: space-between;
  padding: 22px 26px;
}

.privacy-dialog__header span {
  color: var(--ipassp-green);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.privacy-dialog__header h2 {
  color: var(--ipassp-green-dark);
  font-size: 23px;
  font-weight: 800;
  margin: 0;
}

.privacy-dialog__close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ipassp-line);
  border-radius: 50%;
  color: var(--ipassp-muted);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.privacy-dialog__content {
  font-size: 14px;
  line-height: 1.65;
  max-height: calc(82vh - 165px);
  overflow-y: auto;
  padding: 24px 26px 10px;
}

.privacy-dialog__content h3 {
  color: var(--ipassp-green-dark);
  font-size: 15px;
  font-weight: 800;
  margin: 20px 0 5px;
}

.privacy-dialog__content p { margin: 0 0 10px; }
.privacy-dialog__content a { color: var(--ipassp-green); font-weight: 700; }
.privacy-dialog__updated { color: var(--ipassp-muted); font-size: 12px; padding-top: 12px; }
.privacy-dialog__footer { border-top: 1px solid var(--ipassp-line); padding: 14px 26px; text-align: right; }
.privacy-dialog__footer button { background: var(--ipassp-green); border: 0; border-radius: 5px; color: #fff; font-size: 13px; font-weight: 700; padding: 9px 18px; }
.footer-copy { flex: 1; font-size: 10px; line-height: 1.6; }.footer-copy p { margin: 2px 0; }
.footer-legal { align-items: center; display: flex; gap: 24px; }
.footer-social-links { align-items: center; display: flex; gap: 7px; }
.footer-social-links a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  height: 30px;
  justify-content: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
  width: 30px;
}
.footer-social-links a:hover,
.footer-social-links a:focus-visible { background: #fff; color: var(--ipassp-green); }

@media (max-width: 1100px) {
  .desktop-navigation { display: none; }
  .responsive-menu {
    display: block;
    padding: 0;
    position: relative;
    top: 0 !important;
    width: auto;
    z-index: 100;
  }
  .appm-btn { align-items: center; background: var(--ipassp-green); border: 0; border-radius: 5px; color: #fff; display: flex; font-size: 21px; height: 44px; justify-content: center; padding: 0; width: 48px; }
  .appm-menu { background: #fff; border-radius: 8px; box-shadow: var(--ipassp-shadow); display: none; max-height: calc(100vh - 130px); overflow-y: auto; padding: 10px; position: absolute; right: 0; top: 52px; width: min(340px, calc(100vw - 24px)); z-index: 110; }
  .appm-menu.show { display: block; }.appm-list { list-style: none; margin: 0; padding: 0; }
  .appm-link { background: transparent; border: 0; color: var(--ipassp-ink); display: block; padding: 12px; text-align: left; width: 100%; font-weight: bold; }
  .appm-submenu { display: none; padding-left: 16px; }.appm-item.open .appm-submenu { display: block; }
  .main-header .legacy-logo { margin: 0; }
  .main-header .main-header-inner > :nth-child(2) { display: none; }
}

@media (max-width: 900px) {
  .top-contact span:nth-child(3) { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }.service-card:nth-child(3n) { border-right: 1px solid var(--ipassp-line); }.service-card:nth-child(2n) { border-right: 0; }
  .institution-panel { gap: 28px; grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 1fr; }
  .quick-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .top-header-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding-bottom: 6px; padding-top: 6px; }
  .top-contact { flex-direction: column; gap: 2px; }.top-contact span:nth-child(2) { display: none; }
  .top-header-actions { position: absolute; right: 10px; top: 6px; }
  .accessibility-controls { position: static; }
  .main-header,
  .main-header-inner { min-height: 82px; }.brand-symbol { height: 46px; width: 40px; }
  .main-header .legacy-logo { background-size: 55px auto; height: 68px; padding-left: 64px; }.main-header .legacy-logo h1 { font-size: 23px; }
  .brand-ribbon { height: 13px; }
  .home-hero { padding-left: 12px; padding-right: 12px; padding-top: 14px; }
  .home-hero .slides > li { min-height: 430px; }.hero-media { height: 230px; width: 100%; }
  .home-hero .flex-caption { left: 0; padding: 24px; position: relative; top: auto; width: 100%; }.home-hero .flex-caption h2 { font-size: 25px; }
  .home-hero .flexslider { margin-bottom: 25px; }
  .home-section { padding: 18px 0; }.services-grid { grid-template-columns: 1fr; }.service-card { border-right: 0 !important; min-height: auto; padding: 22px; }
  .institution-panel { padding: 25px 20px; }.values-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 15px; }.news-grid { grid-template-columns: 1fr; }.news-image { height: 210px; }
  .contact-panel { padding: 26px 20px; }.contact-fields-row { grid-template-columns: 1fr; }
  .quick-footer-grid { grid-template-columns: 1fr; }.site-footer-inner { align-items: flex-start; flex-wrap: wrap; }.footer-copy { flex-basis: 100%; order: 3; }.footer-legal { flex-direction: column; gap: 7px; }
  .privacy-dialog { max-height: 90vh; width: calc(100% - 20px); }
  .privacy-dialog__header { padding: 18px; }
  .privacy-dialog__header h2 { font-size: 20px; }
  .privacy-dialog__content { max-height: calc(90vh - 154px); padding: 18px 18px 8px; }
  .privacy-dialog__footer { padding: 12px 18px; }
}
