/* Shared footer. Selectors are scoped to preserve the existing site layout. */
#footer.optec-footer {
  --footer-bg: #f1f2f5;
  --footer-text: #535763;
  --footer-heading: #282c48;
  --footer-rule: #d1d4de;
  --footer-accent: #bd1b27;
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 40px;
  padding: 0;
  border-top: 3px solid #da2127;
  font-family: var(--optec-font-body);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
#footer.optec-footer *, #footer.optec-footer *::before, #footer.optec-footer *::after {
  box-sizing: border-box;
}
#footer.optec-footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color .18s ease;
}
#footer.optec-footer a:hover { color: var(--footer-heading); text-decoration: underline; }
#footer.optec-footer a:focus-visible { outline: 2px solid var(--footer-heading); outline-offset: 5px; }
#footer.optec-footer .optec-footer-main {
  display: grid;
  grid-template-columns: 1.4fr .75fr 1.15fr 1.1fr;
  gap: 48px;
  padding: 56px 0 48px;
}
#footer.optec-footer .optec-footer-company { max-width: 290px; }
#footer.optec-footer .optec-footer-logo {
  display: inline-block;
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}
#footer.optec-footer .optec-footer-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}
#footer.optec-footer p { margin: 0 0 7px; font-size: inherit; line-height: inherit; }
#footer.optec-footer .optec-footer-name { color: var(--footer-heading); font-weight: 700; }
#footer.optec-footer .optec-footer-corporate { margin-top: 16px; }
#footer.optec-footer h2 {
  margin: 2px 0 25px;
  color: var(--footer-heading);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-align: left;
}
#footer.optec-footer .optec-footer-column { min-width: 0; }
#footer.optec-footer .optec-footer-column > a { display: block; width: fit-content; margin-bottom: 11px; }
#footer.optec-footer address { margin: 0; font-style: normal; line-height: inherit; }
#footer.optec-footer address strong { display: block; color: var(--footer-heading); font-weight: 600; margin-bottom: 10px; }
#footer.optec-footer address span { display: block; }
#footer.optec-footer .optec-footer-contact > a { overflow-wrap: anywhere; }
#footer.optec-footer .optec-footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 24px;
  border-top: 1px solid var(--footer-rule);
  padding: 23px 0;
  font-size: 12px;
}
#footer.optec-footer .optec-footer-policies { display: flex; flex-wrap: wrap; gap: 10px 20px; }
@media (max-width: 1199px) {
  #footer.optec-footer .optec-footer-main { gap: 28px; grid-template-columns: 1.25fr .7fr 1.1fr 1.1fr; }
  #footer.optec-footer .optec-footer-contact { font-size: 13px; }
}
@media (max-width: 991px) {
  #footer.optec-footer .optec-footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  #footer.optec-footer .optec-footer-contact { font-size: 14px; }
}
@media (max-width: 575px) {
  #footer.optec-footer > .container { padding-left: 24px; padding-right: 24px; }
  #footer.optec-footer .optec-footer-main { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  #footer.optec-footer .optec-footer-company { max-width: 100%; }
  #footer.optec-footer h2 { margin-bottom: 16px; }
  #footer.optec-footer .optec-footer-column > a { padding: 5px 0; margin-bottom: 4px; }
  #footer.optec-footer .optec-footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
  #footer.optec-footer .optec-footer-policies { gap: 12px 20px; }
  #footer.optec-footer .optec-footer-policies a { padding: 5px 0; }
}

/* Alternative backgrounds are limited to the footer. Pearl is the proposal default. */
#footer.optec-footer[data-footer-theme="azzurrato"] {
  --footer-bg: #e2e8ef;
  --footer-text: #485467;
  --footer-heading: #25344c;
  --footer-rule: #bdc8d6;
}
#footer.optec-footer[data-footer-theme="blu"] {
  --footer-bg: #bdcde3;
  --footer-text: #34425d;
  --footer-heading: #202d4c;
  --footer-rule: #98afce;
}
#footer.optec-footer .optec-footer-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  font-size: 12px;
}
#footer.optec-footer .optec-footer-group a { display: inline-flex; }
#footer.optec-footer .optec-footer-group img { display: block; width: 96px; max-width: 100%; height: auto; }

/* LinkedIn, consistent with the group company footer. */
#footer.optec-footer .optec-footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
}
#footer.optec-footer .optec-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  color: var(--footer-heading);
  font: 700 18px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -1px;
}
#footer.optec-footer .optec-footer-social a:hover { color: var(--footer-accent); }
@media (pointer: coarse) {
  #footer.optec-footer .optec-footer-social a { min-width: 44px; min-height: 44px; }
}

#footer.optec-footer .optec-footer-offices address + address { margin-top: 24px; }
