/* Footer condiviso per le pagine Privacy e Cookie */

footer {
  border-top: 1px solid rgba(21, 23, 31, 0.08);
  background: linear-gradient(180deg, #faf9fd 0%, #f6f4fb 100%);
  color: #15171f;
}

.footer__main {
  width: min(1380px, calc(100% - 96px));
  margin: 0 auto;
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) 0.65fr 0.9fr minmax(240px, 1fr);
  gap: 56px;
  align-items: start;
}

.footer__brand-block {
  max-width: 390px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #15171f;
  text-decoration: none;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #15171f;
  text-decoration: none;
}

.footer__monogram {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding-right: 12px;
  border-right: 1px solid rgba(90, 82, 224, 0.22);
  font-family: "Limelight", sans-serif;
  font-size: 32px;
  line-height: 1;
  color: #5a52e0;
  letter-spacing: 0.03em;
}

.footer__identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__name {
  color: #15171f;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.footer__role {
  color: #6b6e84;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__description {
  margin: 20px 0 0;
  color: #000000;
  font-size: 16.5px;
  line-height: 1.5;
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(90, 82, 224, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease, transform 0.2s ease;
}

.footer__socials a:hover {
  color: #5a52e0;
  border-color: #5a52e0;
  background: #ffffff;
  transform: translateY(-2px);
}

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__heading {
  margin: 3px 0 8px;
  color: #000000;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__column a:not(.footer__contact-button),
.footer__column p:not(.footer__heading) {
  margin: 0;
  color: #000000;
  font-size: 17px;
  line-height: 1.55;
  text-decoration: none;
}

.footer__column a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__column a:hover {
  color: #5a52e0;
  transform: translateX(3px);
  font-weight: 600;
}

.footer__contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 78%;
  margin-top: 8px;
  padding: 12px 15px;
  border: 1px solid rgba(90, 82, 224, 0.24);
  border-radius: 25px;
  background: #ffffff;
  color: #000000;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.footer__contact-button span {
  color: #5a52e0;
  font-size: 18px;
  line-height: 1;
}

.footer__contact-button:hover {
  color: #5a52e0;
  border-color: #5a52e0;
  box-shadow: 0 10px 26px rgba(91, 61, 245, 0.1);
  transform: translateY(-2px);
}

.footer__bottom {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(21, 23, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.copyright__text {
  margin: 0;
  color: #777386;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.privacy__box {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cookie__text,
.privacy__text,
.footer__language {
  color: #6b6e84;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie__text:hover,
.privacy__text:hover,
.footer__language:hover {
  color: #5a52e0;
}

.footer a:focus-visible,
.footer button:focus-visible {
  outline: 3px solid rgba(91, 61, 245, 0.28);
  outline-offset: 4px;
}

@media (min-width: 1025px) and (max-width: 1200px) {
main,
  section,
  footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

.footer {
    display: block;
    padding: 0;
    text-align: left;
    overflow: hidden;
  }

.footer__main,
  .footer__bottom {
    width: min(calc(100% - 72px), 1110px);
    margin-inline: auto;
  }

.footer__main {
    display: grid;
    grid-template-columns:
      minmax(280px, 1.35fr)
      minmax(120px, 0.58fr)
      minmax(175px, 0.82fr)
      minmax(225px, 1fr);
    align-items: start;
    gap: 42px;
    padding: 60px 0 46px;
  }

.footer__brand-block {
    width: 100%;
    max-width: 390px;
  }

.footer__brand {
    justify-content: flex-start;
  }

.footer__description {
    max-width: 370px;
    font-size: 16px;
  }

.footer__column {
    min-width: 0;
  }

.footer__column a:not(.footer__contact-button),
  .footer__column p:not(.footer__heading) {
    font-size: 15px;
  }

.footer__column--contact {
    max-width: 260px;
  }

.footer__contact-button {
    width: 100%;
    max-width: 260px;
    padding-inline: 14px;
    font-size: 14.5px;
  }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 26px;
  }

.copyright__text {
    margin: 0;
  }

.privacy__box {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
main,
  section,
  footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

.footer {
    display: block;
    padding: 0;
    text-align: left;
    overflow: hidden;
  }

.footer__main,
  .footer__bottom {
    width: min(calc(100% - 64px), 920px);
    margin-inline: auto;
  }

.footer__main {
    display: grid;
    grid-template-columns:
      minmax(145px, 0.7fr)
      minmax(180px, 0.9fr)
      minmax(230px, 1.15fr);
    align-items: start;
    gap: 40px 34px;
    padding: 56px 0 42px;
  }

.footer__brand-block {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 590px;
  }

.footer__brand {
    justify-content: flex-start;
  }

.footer__description {
    max-width: 520px;
  }

.footer__column {
    min-width: 0;
  }

.footer__column--contact {
    width: 100%;
    max-width: 300px;
  }

.footer__contact-button {
    width: 100%;
    max-width: 300px;
  }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 0 26px;
  }

.copyright__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.45;
  }

.privacy__box {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px 20px;
  }

.privacy__text,
  .cookie__text,
  .footer__language {
    font-size: 14.5px;
  }

.footer__socials a:hover,
  .footer__column a:hover,
  .footer__contact-button:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
main,
  section,
  footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

.footer {
    display: block;
    padding: 0;
    text-align: left;
    overflow: hidden;
  }

.footer__main,
  .footer__bottom {
    width: min(calc(100% - 48px), 680px);
    margin-inline: auto;
  }

.footer__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 36px 28px;
    padding: 50px 0 38px;
  }

.footer__brand-block {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 540px;
  }

.footer__brand {
    justify-content: flex-start;
    gap: 15px;
  }

.footer__monogram {
    min-height: 52px;
    padding-right: 15px;
    font-size: 29px;
  }

.footer__identity {
    min-width: 0;
  }

.footer__name {
    font-size: 17.5px;
  }

.footer__role {
    font-size: 11.5px;
    line-height: 1.35;
    white-space: normal;
  }

.footer__description {
    max-width: 500px;
    font-size: 16px;
    line-height: 1.68;
  }

.footer__column {
    min-width: 0;
  }

.footer__column--services {
    display: flex;
  }

.footer__column--contact {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 500px;
  }

.footer__contact-button {
    width: 100%;
    max-width: 380px;
  }

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0 25px;
  }

.copyright__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

.privacy__box {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 13px 21px;
  }

.privacy__text,
  .cookie__text,
  .footer__language {
    font-size: 14px;
  }

.footer__socials a:hover,
  .footer__column a:hover,
  .footer__contact-button:hover {
    transform: none;
  }
}

@media (max-width: 567px) {
.footer {
    display: block;
    padding: 0;
    text-align: left;
    overflow: hidden;
  }

.footer__main,
  .footer__bottom {
    width: min(calc(100% - 40px), 500px);
    margin-inline: auto;
  }

.footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    padding: 42px 0 32px;
  }

.footer__brand-block,
  .footer__column,
  .footer__column--services,
  .footer__column--contact {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }

.footer__brand {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

.footer__monogram {
    min-height: 48px;
    padding-right: 14px;
    font-size: 26px;
  }

.footer__identity {
    min-width: 0;
    gap: 4px;
  }

.footer__name {
    font-size: 17px;
    line-height: 1.2;
  }

.footer__role {
    max-width: 220px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }

.footer__description {
    max-width: 100%;
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.65;
  }

.footer__socials {
    gap: 9px;
    margin-top: 18px;
  }

.footer__socials a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14.5px;
  }

.footer__column {
    gap: 10px;
  }

.footer__heading {
    margin-bottom: 5px;
    font-size: 13px;
  }

.footer__column a:not(.footer__contact-button),
  .footer__column p:not(.footer__heading) {
    font-size: 15px;
    line-height: 1.5;
  }

.footer__column--services {
    display: flex;
  }

.footer__contact-button {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    font-size: 14.5px;
  }

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0 24px;
  }

.copyright__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
  }

.privacy__box {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

.privacy__text,
  .cookie__text,
  .footer__language {
    font-size: 14px;
  }

.footer__socials a:hover,
  .footer__column a:hover,
  .footer__contact-button:hover {
    transform: none;
  }
}

@media (min-width: 431px) and (max-width: 567px) {
.footer__main,
  .footer__bottom {
    width: min(calc(100% - 44px), 500px);
  }

.footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
    padding: 46px 0 34px;
  }

.footer__brand-block,
  .footer__column--contact {
    grid-column: 1 / -1;
  }

.footer__column,
  .footer__column--services {
    min-width: 0;
  }

.footer__brand {
    gap: 15px;
  }

.footer__monogram {
    min-height: 50px;
    padding-right: 15px;
    font-size: 28px;
  }

.footer__name {
    font-size: 17.5px;
  }

.footer__role {
    max-width: 245px;
    font-size: 11.3px;
  }

.footer__description {
    max-width: 440px;
    font-size: 16px;
  }

.footer__contact-button {
    max-width: 360px;
    min-height: 45px;
    font-size: 14.8px;
  }
}

/* Correzione tipografia link footer legale */
.footer__column a:not(.footer__contact-button) {
  font-weight: 400;
}

.footer__column a:not(.footer__contact-button):hover {
  font-weight: 600;
}

/* Evita la sottolineatura ereditata dalle pagine legali */
.footer a:hover {
  text-decoration: none;
}

/* Rifinitura dimensioni footer legale desktop */
@media (min-width: 769px) {
  .footer__description {
    font-size: 15px;
  }

  .footer__heading {
    font-size: 14.5px;
  }

  .footer__column a:not(.footer__contact-button),
  .footer__column p:not(.footer__heading) {
    font-size: 15px;
  }

  .copyright__text {
    font-size: 14.5px;
  }
}

/* Font originale del footer Homepage */
.footer {
  font-family: Times, serif;
}

/* Testi footer legale aumentati di 2px */


/* Pulsanti footer Privacy EN: -2px */
:is(.footer--privacy-en, .footer--cookie-en) .footer__socials a,
:is(.footer--privacy-en, .footer--cookie-en) .footer__contact-button {
  font-size: 13px;
}

@media (min-width: 1025px) and (max-width: 1200px) {
  :is(.footer--privacy-en, .footer--cookie-en) .footer__contact-button {
    font-size: 12.5px;
  }
}

@media (max-width: 567px) {
  :is(.footer--privacy-en, .footer--cookie-en) .footer__socials a,
  :is(.footer--privacy-en, .footer--cookie-en) .footer__contact-button {
    font-size: 12.5px;
  }
}

@media (min-width: 431px) and (max-width: 567px) {
  :is(.footer--privacy-en, .footer--cookie-en) .footer__contact-button {
    font-size: 12.8px;
  }
}


/* Pulsanti footer Privacy e Cookie IT: -2px */
:is(.footer--privacy-it, .footer--cookie-it) .footer__socials a,
:is(.footer--privacy-it, .footer--cookie-it) .footer__contact-button {
  font-size: 13px;
}

@media (min-width: 1025px) and (max-width: 1200px) {
  :is(.footer--privacy-it, .footer--cookie-it) .footer__contact-button {
    font-size: 12.5px;
  }
}

@media (max-width: 567px) {
  :is(.footer--privacy-it, .footer--cookie-it) .footer__socials a,
  :is(.footer--privacy-it, .footer--cookie-it) .footer__contact-button {
    font-size: 12.5px;
  }
}

@media (min-width: 431px) and (max-width: 567px) {
  :is(.footer--privacy-it, .footer--cookie-it) .footer__contact-button {
    font-size: 12.8px;
  }
}

/* Pulsante Torna in alto per le pagine legali */
.back__to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #5a52e0;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(91, 44, 255, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 999;
}

.back__to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back__to-top:hover {
  background: #4a20d8;
  transform: translateY(-3px);
}

.back__to-top:focus-visible {
  outline: 3px solid #15171f;
  outline-offset: 4px;
}
