/* Famyro — footer pubblico condiviso v7.151 */
.famyro-shared-footer {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 58px 0 20px;
  display: block;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #031b12;
  color: #fff;
  text-align: left;
}

.famyro-shared-footer .famyro-footer-container {
  display: block;
  width: min(1440px, calc(100% - 56px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

.famyro-shared-footer .famyro-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(140px, .8fr));
  gap: clamp(34px, 4vw, 72px);
  align-items: start;
}

.famyro-shared-footer .famyro-footer-brand {
  display: block;
  min-width: 0;
}

.famyro-footer-brand a {
  display: inline-block;
  width: fit-content;
}

.famyro-footer-brand img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.famyro-footer-brand p {
  max-width: 310px;
  margin: 7px 0 0;
  color: rgba(236,247,242,.68);
  font-size: 14px;
  line-height: 1.6;
}

.famyro-footer-column {
  min-width: 0;
}

.famyro-footer-column strong {
  display: block;
  margin-bottom: 16px;
  color: #fff;
  font: 800 15px/1.2 var(--famyro-font-heading, Poppins, Arial, sans-serif);
}

.famyro-footer-column a {
  display: block;
  width: fit-content;
  margin: 10px 0;
  color: rgba(230,243,237,.74);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.famyro-shared-footer .famyro-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(222,237,230,.56);
  font-size: 12px;
  line-height: 1.45;
}

.famyro-shared-footer .famyro-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.famyro-footer-legal a,
.famyro-footer-legal .fc-consent-footer-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(230,243,237,.70);
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}

@media (hover: hover) {
  .famyro-footer-column a:hover,
  .famyro-footer-column a:focus-visible {
    color: #00e884;
    transform: translateX(3px);
  }

  .famyro-footer-legal a:hover,
  .famyro-footer-legal a:focus-visible,
  .famyro-footer-legal .fc-consent-footer-link:hover,
  .famyro-footer-legal .fc-consent-footer-link:focus-visible {
    color: #00e884;
  }
}

.famyro-footer-column a:focus-visible,
.famyro-footer-brand a:focus-visible,
.famyro-footer-legal a:focus-visible,
.famyro-footer-legal .fc-consent-footer-link:focus-visible {
  outline: 3px solid rgba(0,232,132,.55);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .famyro-shared-footer {
    padding-top: 48px;
  }

  .famyro-shared-footer .famyro-footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .famyro-shared-footer .famyro-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .famyro-shared-footer {
    padding: 42px 0 18px;
  }

  .famyro-shared-footer .famyro-footer-container {
    width: min(calc(100% - 32px), 600px);
  }

  .famyro-shared-footer .famyro-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .famyro-shared-footer .famyro-footer-brand {
    grid-column: 1 / -1;
  }

  .famyro-footer-brand img {
    width: 190px;
  }

  .famyro-shared-footer .famyro-footer-bottom {
    display: grid;
    gap: 13px;
    margin-top: 34px;
  }

  .famyro-shared-footer .famyro-footer-legal {
    justify-content: flex-start;
    gap: 16px;
  }
}

@media (max-width: 430px) {
  .famyro-shared-footer .famyro-footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .famyro-shared-footer .famyro-footer-brand {
    grid-column: auto;
  }
}


/* Back to top — stesso stile della landing Famyro, v7.156 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 72px;
  z-index: 60;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #082c20;
  border-radius: 16px;
  background: #00e884;
  color: #082c20;
  box-shadow: 5px 5px #082c20;
  opacity: 0;
  translate: 0 14px;
  pointer-events: none;
  transition: opacity .2s ease, translate .2s ease, box-shadow .2s ease;
  will-change: opacity, translate;
  cursor: pointer;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top.is-visible:hover {
    translate: -2px -4px;
    box-shadow: 7px 8px #082c20;
  }
}

@media (max-width: 700px) {
  .back-to-top {
    right: 16px;
    bottom: max(68px, calc(56px + env(safe-area-inset-bottom)));
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 4px 4px #082c20;
  }

  .back-to-top svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .famyro-footer-column a,
  .famyro-footer-legal a,
  .famyro-footer-legal .fc-consent-footer-link,
  .back-to-top {
    transition: none;
  }
}


/* v7.157 — accent dot before footer navigation items */
.famyro-shared-footer .famyro-footer-column a {
  position: relative;
  padding-left: 16px;
}

.famyro-shared-footer .famyro-footer-column a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e884;
  box-shadow: 0 0 0 4px rgba(0,232,132,.10);
  transform: translateY(-50%);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

@media (hover: hover) {
  .famyro-shared-footer .famyro-footer-column a:hover::before,
  .famyro-shared-footer .famyro-footer-column a:focus-visible::before {
    background: #35f3a5;
    box-shadow: 0 0 0 5px rgba(0,232,132,.16);
    transform: translateY(-50%) scale(1.08);
  }
}
