﻿#prefooter {
  background-color: var(--bcc-verde-scuro);
  border-top: 1px solid var(--bcc-bianco);
}
#prefooter ul {
  width: 100%;
}
#prefooter ul li {
  line-height: 1.5;
  position: relative;
  vertical-align: middle;
}
#prefooter ul li a {
  color: var(--bcc-bianco);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  text-decoration: none;
}
#prefooter ul li a:after {
  background: var(--bcc-bianco);
  bottom: 1px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
  transition: width 0.3s;
  width: 0;
}
#prefooter ul li a:focus:after, #prefooter ul li a:hover:after {
  width: 100%;
}
#prefooter ul li br {
  display: none;
}

#subfooter {
  background-color: var(--bcc-verde-medio);
  border-top: 1px solid var(--bcc-bianco);
}
#subfooter li {
  line-height: 1.5;
  position: relative;
  vertical-align: middle;
}
#subfooter li a {
  color: var(--bcc-bianco);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  text-decoration: none;
}
#subfooter li a:after {
  background: var(--bcc-bianco);
  bottom: 0.0625rem;
  content: "";
  height: 0.125rem;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
  transition: width 0.3s;
  width: 0;
}
#subfooter li a:focus:after, #subfooter li a:hover:after {
  width: 100%;
}
#subfooter .contenitore-icone-social {
  margin-bottom: 1.875rem;
  margin-top: 0.9375rem;
}

#prefooter,
#subfooter {
  height: auto;
  line-height: 1.5;
}
#prefooter ul,
#subfooter ul {
  display: block;
  margin-bottom: 0;
  min-height: auto;
  width: auto;
}
#prefooter ul li,
#subfooter ul li {
  display: block;
  margin: 1.25rem 0;
  text-align: left;
}
#prefooter ul li a,
#subfooter ul li a {
  padding: 0;
  position: relative;
}
#prefooter ul li:first-child,
#subfooter ul li:first-child {
  margin-top: 1.25rem;
}
#prefooter ul li:last-child,
#subfooter ul li:last-child {
  margin-top: 1.25rem;
}

#chiusura-footer {
  align-items: center;
  background-color: var(--bcc-verde-medio);
  border-top: 1px solid var(--bcc-bianco);
  display: flex;
  height: 10.25rem;
  padding: 1rem 0 4rem 0;
}
#chiusura-footer .certificazioni-footer {
  text-align: right;
}
#chiusura-footer .certificazioni-footer > img {
  margin-left: 1rem;
}

/* Footer */
footer p {
  line-height: 1.5;
}
footer ul {
  list-style-type: none;
  padding: 0;
}
footer h2 ~ ul {
  margin-bottom: 0px;
}
footer#area-centrale {
  background-color: var(--bcc-verde-medio);
  color: var(--bcc-bianco);
  padding: 2rem 0 1.25rem 0;
}
footer#area-centrale .logo-footer {
  margin: 0 0 2rem 0;
}
footer#area-centrale .logo-footer img {
  height: auto;
  max-width: 100%;
  width: 15.1875rem;
}
footer#area-centrale .info-footer {
  color: var(--bcc-bianco);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
}
footer#area-centrale .info-footer a {
  display: inline-block;
  word-break: break-all;
}
footer#area-centrale a {
  color: var(--bcc-bianco);
  outline: none;
  text-decoration: none;
}
footer#area-centrale a:focus, footer#area-centrale a:hover {
  color: var(--bcc-bianco);
  text-decoration: underline;
}
footer#area-centrale ul.contenitore-icone-social {
  margin: 1.25rem 0 0;
}
footer#area-centrale ul.contenitore-icone-social .icone-social {
  display: inline-block;
}
footer#area-centrale ul.contenitore-icone-social .icone-social a {
  display: block;
  font-size: 0;
  padding: 0.625rem;
}
footer#area-centrale ul.contenitore-icone-social .icone-social a:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--bcc-bianco);
}
footer#area-centrale ul.contenitore-icone-social .icone-social img {
  max-width: 100%;
}
footer#area-centrale .voci-menu-footer ul {
  font-size: 0.875rem;
}
footer#area-centrale .voci-menu-footer ul li {
  margin-bottom: 0rem;
  padding-bottom: 0.75rem;
}
footer#area-centrale .voci-menu-footer ul li:nth-child(2) {
  margin-top: 1.25rem;
}
footer#area-centrale .voci-menu-footer ul li:nth-child(2) a {
  font-weight: 400;
}
footer#area-centrale .voci-menu-footer ul li a {
  display: inline-block;
  margin: 0;
}
footer#area-centrale .voci-menu-footer ul li:last-child {
  padding-bottom: 0;
}
footer#area-centrale .row:nth-of-type(2) {
  margin-top: 0;
}
footer#area-centrale h2 {
  color: var(--bcc-bianco);
  font-size: 0.875rem;
  margin-bottom: 0;
  margin-top: 2rem;
}
footer#area-centrale h2 button {
  background-color: transparent;
  border: 0;
  color: var(--bcc-bianco);
  font-weight: 700;
  line-height: 1.5;
  outline: 0;
  padding: 0.125rem 2.0625rem 0.1255rem 0;
  position: relative;
}
footer#area-centrale h2 button:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--bcc-bianco);
}
footer#area-centrale h2 button:active {
  box-shadow: none;
}
footer#area-centrale h2 button:before {
  background: url(https://static.publisher.iccrea.bcc.it/archivio/648/175800.svg) no-repeat right top;
  content: "";
  height: 0.5rem;
  position: absolute;
  right: 0.3125rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  transition: transform 0.3s;
  width: 0.875rem;
}
footer#area-centrale h2 button[aria-expanded=true]:before {
  transform: translateY(-50%) rotate(0);
}

/* Media breakpoint up md */
@media (min-width: 768px) {
  #prefooter,
  #subfooter {
    height: 4.5rem;
    padding: 0rem;
  }
  #prefooter .container,
  #subfooter .container {
    height: 4.5rem;
  }
  #prefooter ul,
  #subfooter ul {
    align-items: center;
    display: flex;
    height: 4.5rem;
    justify-content: space-between;
  }
  #prefooter ul li,
  #subfooter ul li {
    align-items: center;
    align-self: center;
    display: flex;
    height: 4.5rem;
    margin: 0 1rem;
    text-align: center;
  }
  #prefooter ul li a,
  #subfooter ul li a {
    padding-bottom: 0rem;
    position: static;
  }
  #prefooter ul li:first-child,
  #subfooter ul li:first-child {
    margin-left: 0;
    margin-top: 0;
  }
  #prefooter ul li:last-child,
  #subfooter ul li:last-child {
    margin-bottom: 0;
    margin-right: 0;
    margin-top: 0;
  }
  #chiusura-footer {
    padding: 1.5rem 0 4rem 0;
  }
  #chiusura-footer .certificazioni-footer > img {
    margin-left: 1.5rem;
  }
  footer#area-centrale {
    padding-top: 2.5rem;
  }
  footer#area-centrale .voci-menu-footer ul li:first-child {
    padding-bottom: 1.25rem;
  }
  footer#area-centrale .voci-menu-footer ul li:first-child a {
    font-weight: 700;
    margin-top: 0;
  }
  footer#area-centrale .voci-menu-footer ul li:nth-child(2) {
    margin-top: 0;
  }
  footer#area-centrale .voci-menu-footer ul li a {
    font-size: 0.875rem;
    font-weight: 400;
  }
  footer#area-centrale .voci-menu-footer .row:nth-child(2), footer#area-centrale .voci-menu-footer .row:nth-child(3) {
    margin-top: 3rem;
  }
}
/* Fine footer */
