#sv-footer {
  font-family: var(--font-family-primary);
  background-image: url('../images/Footer_background.webp');
  background-repeat: no-repeat;
  background-size: 306.956% 100%;
  background-position: -337.287px 0;
  padding: 0 16px;
}

#sv-footer ul {
  list-style: none;
  padding: 0;
}

#sv-footer .sv-footer__container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: var(--container);
}

#sv-footer .sv-footer__top-content {
  padding: 48px 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

#sv-footer .sv-footer__top-content .sv-footer__top-content-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#sv-footer .sv-footer__top-content-right .sv-footer__text {
  text-align: center;
  color: var(--color-white);
  font-size: var(--px-16);
  font-weight: 400;
  line-height: 1.5em;
  margin: 0;
}

#sv-footer .sv-footer__top-content-right .sv-footer__buttons {
  display: flex;
  width: auto;
  transition: var(--transition-default);
  justify-content: flex-end;
}

#sv-footer .sv-footer__buttons .sv-footer__button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: var(--px-14);
  font-weight: 500;
  line-height: 1.5em;
  transition: var(--transition-default);
  fill: var(--e-global-color-text);
  box-shadow: 0 1px 2px 0 var(--color-shadow);
  border-radius: 8px;
  padding: 12px 16px;
  width: auto;
  border: 1px solid var(--color-secondary);
}

#sv-footer .sv-footer__buttons .sv-footer__button:hover {
  border-color: var(--color-Purple-400);
  background: var(--color-Purple-400);
}

#sv-footer .sv-footer__buttons .sv-footer__button::after {
  content: '';
  background-image: url(../images/heart.svg);
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

#sv-footer .sv-footer__top-content-right .sv-footer__social_icons {
  display: flex;
  align-items: center;
  gap: 35px;
}

#sv-footer .sv-footer__top-content-right .sv-footer__social_icons a {
  display: flex;
}

#sv-footer .sv-footer__social_icons .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

#sv-footer .sv-footer__social_icons {
  display: flex;
  gap: 12px;
}

#sv-footer .sv-footer__social_icons .sv-social-link {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: var(--transition-default);
}

#sv-footer .sv-footer__social_icons .sv-social-link--instagram {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/instagram.svg');
}

#sv-footer .sv-footer__social_icons .sv-social-link--linkedin {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/linkedin.svg');
}

#sv-footer .sv-footer__social_icons .sv-social-link--facebook {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/facebook.svg');
}

#sv-footer .sv-footer__social_icons .sv-social-link--youtube {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/youtube.svg');
}

#sv-footer .sv-footer__social_icons .sv-social-link--instagram:hover,
#sv-footer .sv-footer__social_icons .sv-social-link--instagram:focus-visible {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/instagram-hover.svg');
}

#sv-footer .sv-footer__social_icons .sv-social-link--linkedin:hover,
#sv-footer .sv-footer__social_icons .sv-social-link--linkedin:focus-visible {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/linkedin-hover.svg');
}

#sv-footer .sv-footer__social_icons .sv-social-link--facebook:hover,
#sv-footer .sv-footer__social_icons .sv-social-link--facebook:focus-visible {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/facebook-hover.svg');
}

#sv-footer .sv-footer__social_icons .sv-social-link--youtube:hover,
#sv-footer .sv-footer__social_icons .sv-social-link--youtube:focus-visible {
  background-image: url('/wp-content/themes/hello-theme-child-project-fcv/assets/images/social-media/youtube-hover.svg');
}

#sv-footer .sv-footer__mid-content {
  padding: 48px 0 40px 0;
  border-width: 1px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.15);
}

#sv-footer .sv-footer__menu-list,
#sv-footer .sv-footer__menu-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sv-footer .sv-footer__menu-list>li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#sv-footer .sv-footer__menu-list>li>a {
  color: var(--color-white);
  display: flex;
  font-size: var(--px-16);
  font-weight: 500;
  line-height: 1.5em;
  padding: 14px 20px;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu {
  display: grid;
  padding: 0 16px;
}

#sv-footer .sv-footer__menu-list .sub-menu a {
  position: relative;
  text-decoration: none;
  color: var(--color-white);
  font-size: var(--px-14);
  font-weight: 500;
  line-height: 1.5em;
  margin-bottom: 0;
  pointer-events: initial;
  transition: var(--transition-default);
  text-transform: capitalize;
  padding: 12px 16px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

#sv-footer .sv-footer__menu-list .sub-menu a::before {
  content: '';
  background-image: url(../images/chevron-right.svg);
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  transition: var(--transition-default);
}

#sv-footer .sv-footer__menu-list .not-display>a {
  display: none;
}

#sv-footer .sv-footer__menu-list .sub-menu .menu-item a:hover,
#sv-footer .sv-footer__menu-list .sub-menu .menu-item.active-item a {
  color: #7FA1F8;
}

#sv-footer .sv-footer__menu-list .sub-menu a:hover::before,
#sv-footer .sv-footer__menu-list .sub-menu .menu-item.active-item a::before {
  background-image: url(../images/chevron-right-hover.svg);
}

#sv-footer .sv-footer__menu {
  display: grid;
  grid-template-columns: 1fr;
}

#sv-footer .sv-footer__bottom-content {
  padding: 48px 16px;
  margin: 0 auto;
  max-width: var(--container);
}

#sv-footer .sv-footer__legal-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#sv-footer .sv-footer__legal-info small {
  color: var(--color-white);
  font-size: var(--px-14);
  line-height: 1.5em;
  text-align: center;
  font-weight: 400;
}

/* =========================
   Tablet (768px–1024px)
   ========================= */
@media (min-width: 768px) {
  #sv-footer {
    padding: 0 24px;
    background-size: cover;
  }

  #sv-footer .sv-footer__top-content .sv-footer__top-content-right {
    max-width: 585px;
  }

  #sv-footer .sv-footer__menu {
    grid-column-gap: 32px;
    grid-row-gap: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  #sv-footer .sv-footer__menu .col {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  #sv-footer .sv-footer__menu-list .sub-menu {
    padding: 0 !important;
  }

  #sv-footer .sv-footer__menu-list>li {
    gap: 20px;
  }

  #sv-footer .sv-footer__menu-list>li>a {
    font-size: var(--px-14);
    font-weight: 700;
    padding: 0;
  }

  #sv-footer .sv-footer__mid-content {
    display: flex;
    flex-direction: column;
    padding: 40px 0 48px 0;
  }

  #sv-footer .sv-footer__bottom-content {
    padding: 48px 0;
    max-width: 585px;
  }

  #sv-donate-icon {
    bottom: 24px;
    right: 24px;
  }
}

/* =========================
   Desktop (≥ 1025px)
   ========================= */
@media (min-width: 1025px) {
  #sv-footer {
    background-size: cover;
    background-position: center;
    padding: 0 32px;
  }

  #sv-footer .sv-footer__container {
    flex-wrap: nowrap;
  }

  #sv-footer .sv-footer__top-content {
    padding: 80px 0 40px 0;
    flex-direction: row;
    gap: 9%;
    align-items: center;
    justify-content: space-between;
  }

  #sv-footer .sv-footer__top-content .sv-footer__top-content-right {
    max-width: 809px;
    flex-direction: row;
  }

  #sv-footer .sv-footer__top-content-right .sv-footer__text {
    max-width: 383px;
    text-align: right;
  }

  #sv-footer .sv-footer__top-content-right .sv-footer__social_icons {
    margin-left: 8px;
  }

  #sv-footer .sv-footer__menu {
    grid-template-columns: repeat(4, 1fr);
  }

  #sv-footer .sv-footer__menu-list .sub-menu a {
    padding: 8px 0;
  }

  /* Submenus simples (sem colunas internas) */
  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li:first-of-type>a {
    padding-top: 0;
  }

  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li:last-of-type>a {
    padding-bottom: 0;
  }

  /* Submenu COM colunas */
  /* Zera o topo do 1º item da 1ª coluna */
  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li.menu-item-has-children:first-of-type>.sub-menu>li:first-of-type>a {
    padding-top: 0;
  }

  /* Zera a base do último item da ÚLTIMA coluna */
  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li.menu-item-has-children:last-of-type>.sub-menu>li:last-of-type>a {
    padding-bottom: 0;
  }

  #sv-footer .sv-footer__menu .sv-footer__menu-list>.menu-item>a {
    justify-content: flex-start;
    text-align: left;
  }

  #sv-footer .sv-footer__menu .sv-footer__menu-list>.menu-item {
    display: flex;
    flex-direction: column;
  }

  #sv-footer .sv-footer__bottom-content {
    padding: 40px 0 88px 0;
  }

  #sv-footer .sv-footer__buttons .sv-footer__button {
    min-width: 153px;
  }
}

/* =========================
   Mobile (≤ 768px) — Accordion
   ========================= */
@media (max-width: 767px) {

  /* Submenus simples */
  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li:first-of-type>a {
    margin-top: 16px;
  }

  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li:last-of-type>a {
    margin-bottom: 16px;
  }

  /* Submenu COM colunas */
  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li.menu-item-has-children:first-of-type>.sub-menu>li:first-of-type>a {
    margin-top: 16px;
  }

  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu>li.menu-item-has-children:last-of-type>.sub-menu>li:last-of-type>a {
    margin-bottom: 16px;
  }

  #sv-footer .sv-footer__menu-list>li>a {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-align: left;
  }

  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>a::after {
    content: "";
    background-image: url(../images/chevron-down.svg);
    background-size: 24px;
    line-height: 1;
    margin-left: 8px;
    transition: transform .25s ease;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
  }

  #sv-footer .sv-footer__menu-list>li.accordion-active>a::after {
    transform: rotate(180deg);
  }

  #sv-footer .sv-footer__menu-list>li.menu-item-has-children>.sub-menu {
    overflow: hidden;
    height: 0;
    transition: height .28s ease;
    will-change: height;
    display: grid;
  }
}

/* =========================
   Botão de ação rápida
   ========================= */
#sv-action-icons {
  --fab-size: 64px;
  --cluster-radius: 160px;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 4000;
}

#sv-action-icons .fab-main {
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  border: 1px solid var(--color-neutral-100);
  cursor: pointer;
  display: grid;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: var(--color-white);
  box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.05);
  transition: var(--transition-default);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  z-index: 6000;
  position: relative;
}

#sv-action-icons.active .fab-main {
  border-color: var(--color-neutral-200);
  background: var(--color-neutral-50);
}

#sv-action-icons.active .fab-main path {
  fill: #008BD2;
}

#sv-action-icons .fab-actions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#sv-action-icons .fab-actions[hidden] {
  display: none;
}

#sv-action-icons .fab-actions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


#sv-action-icons .fab-actions a {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--fab-size);
  height: var(--fab-size);
  border-width: 2px;
  border-style: solid;
  border-radius: 50%;
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-family-primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6em;
  text-decoration: none;
  box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.05);
  transform: translate(0, 0) scale(.85);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-default);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  --tx-final: 0px;
  --ty-final: 0px;
  --tx-over: 0px;
  --ty-over: 0px;
}

#sv-action-icons .fab-actions a::before {
  content: '';
  width: 16px;
  height: 16px;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

/* Cores e ícones por item (ordem: Exames, Agendar, Doar, WhatsApp) */
#sv-action-icons .fab-actions li:nth-child(1) a {
  background: var(--color-primary);
  border-color: var(--color-blue-200);
  --tx-final: -64px;
  --ty-final: -112px;
  --tx-over: -64px;
  --ty-over: -122px;
}
#sv-action-icons .fab-actions li:nth-child(1) a::before {
  background-image: url(../images/medical-cross.svg);
}

#sv-action-icons .fab-actions li:nth-child(2) a {
  background: var(--color-blue-light-550);
  border-color: var(--color-blue-light-200);
  --tx-final: 10px;
  --ty-final: -112px;
  --tx-over: 10px;
  --ty-over: -122px;
}
#sv-action-icons .fab-actions li:nth-child(2) a::before {
  background-image: url(../images/calendar-heart-02.svg);
}

#sv-action-icons .fab-actions li:nth-child(3) a {
  background: var(--color-Purple-500);
  border-color: var(--color-Purple-200);
  --tx-final: -111px;
  --ty-final: 10px;
  --tx-over: -121px;
  --ty-over: 10px;
}
#sv-action-icons .fab-actions li:nth-child(3) a::before {
  background-image: url(../images/heart.svg);
}

#sv-action-icons .fab-actions li:nth-child(4) a {
  background: var(--color-green-500);
  border-color: var(--color-green-200);
  --tx-final: -114px;
  --ty-final: -61px;
  --tx-over: -124px;
  --ty-over: -61px;
}
#sv-action-icons .fab-actions li:nth-child(4) a::before { display: none; }
#sv-action-icons .fab-actions li:nth-child(4) a img {
  width: calc(var(--fab-size) * .50);
  height: calc(var(--fab-size) * .50);
  display: block;
}

#sv-action-icons.active .fab-actions a {
  opacity: 1;
  pointer-events: auto;
  transform: translate(var(--tx-final), var(--ty-final)) scale(1);
}

#sv-action-icons .fab-actions a:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, .32);
  transform: translate(var(--tx-final), var(--ty-final)) scale(1.04);
}

#sv-action-icons .fab-actions::before {
  content: "";
  position: absolute;
  width: calc(var(--cluster-radius) * 2);
  height: calc(var(--cluster-radius) * 2);
  border-radius: 50%;
  right: -130px;
  bottom: -100px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: all 100ms ease-in-out;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.00) 50.23%,
                                      rgba(255, 255, 255, 0.80) 100%);
  backdrop-filter: blur(3px);
}
#sv-action-icons.active .fab-actions::before {
  opacity: 1;
}

/* Animações */
@keyframes fab-open {
  0%   { transform: translate(0, 0) scale(.85); opacity: 0; }
  60%  { transform: translate(var(--tx-over), var(--ty-over)) scale(1.03); opacity: 1; }
  100% { transform: translate(var(--tx-final), var(--ty-final)) scale(1); }
}
@keyframes fab-close {
  0%   { transform: translate(var(--tx-final), var(--ty-final)) scale(1); opacity: 1; }
  100% { transform: translate(0, 0) scale(.85); opacity: 0; }
}

#sv-action-icons.active:not(.closing) .fab-actions a {
  animation: fab-open 300ms ease-in-out;
}
#sv-action-icons.active.closing .fab-actions a {
  animation: fab-close 300ms ease-in-out;
}

#sv-donate-icon {
  display: none;
}

@media (min-width: 1025px) {
  #sv-action-icons {
    display: none;
  }

  #sv-donate-icon {
    position: fixed;
    bottom: 40px;
    right: 0;
    z-index: 99;
    display: block;
  }

  #sv-donate-icon a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    transition: var(--transition-default);
    fill: var(--e-global-color-text);
    box-shadow: 0 1px 2px 0 var(--color-shadow);
    border-radius: 18px 0 0 18px;
    width: auto;
    border: 1px solid var(--color-secondary);
    padding: 12px 16px;
    gap: 8px;
    height: 62px;
  }

  #sv-donate-icon a:hover {
    border-color: var(--color-Purple-400);
    background-color: var(--color-Purple-400);
  }

  #sv-donate-icon a::after {
    content: '';
    background-image: url(../images/heart.svg);
    width: 18px;
    height: 18px;
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
  }
}

/* Acessibilidade de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  #sv-action-icons,
  #sv-action-icons * {
    transition: none !important;
    animation: none !important;
  }
}
