@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap');

/* CTA sopra il footer */
.footer-cta {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  background: #e8e5e0;
  padding: 100px 0;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer-cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 120px;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 40px;
  align-items: center;
}

.footer-cta-text h2 {
  font-size: 46px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
}

.footer-cta-text p {
  font-size: 20px;
  line-height: 1.8;
  color: #374151;
  max-width: 820px;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 14px;
  background: #003087;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 48, 135, 0.25);
}

/* Footer vero e proprio */
.site-footer {
  background: #0A36AF;
  color: #f3f4f6;
  padding: 70px 0 32px;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.01em;
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
}

.site-footer .footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.footer-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.footer-brand-logo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 0;
}

.footer-branding .footer-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  white-space: nowrap;
}

.footer-branding .footer-sub {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  line-height: 2;
  max-width: 520px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-branding .footer-sub {
    white-space: normal;
  }
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 16px 32px;
  justify-items: start;
  align-items: start;
  margin-left: auto;
  justify-self: end;
  text-align: left;
  grid-auto-flow: column;
  margin-top: 32px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links .cookie-preferences-link {
  font-weight: 700;
}

.footer-links a:nth-child(3) {
  grid-column: 1;
}

.site-footer .footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 48px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer img.footer-logo {
  height: 24px;
  width: auto;
  display: block;
}

.site-footer .footer-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-footer .footer-brand {
  font-weight: 600;
}

@media (max-width: 900px) {
  .footer-cta-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .footer-cta-text h2 {
    font-size: 32px;
  }

  .footer-cta-btn {
    width: fit-content;
  }

  .site-footer .footer-main {
    grid-template-columns: 1fr;
    padding: 0 24px 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-left: 0;
    justify-self: start;
    text-align: left;
  }

  .site-footer .footer-bottom {
    padding: 20px 24px 8px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-link-static {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-legal-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.footer-legal-modal.is-open {
  display: flex;
}

.footer-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 20, 0.72);
  backdrop-filter: blur(2px);
}

.footer-legal-modal__dialog {
  position: relative;
  width: min(980px, 92vw);
  height: min(80vh, 720px);
  background: #ffffff;
  color: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(6, 10, 20, 0.35);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.footer-legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f3f5f8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  font-weight: 600;
}

.footer-legal-modal__title {
  font-size: 16px;
}

.footer-legal-modal__close {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #0b1220;
}

.footer-legal-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-legal-modal__content {
  padding: 18px 20px 22px;
  overflow: auto;
  font-size: 15px;
  line-height: 1.7;
}

.footer-legal-modal__content h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

.footer-legal-modal__content h2 {
  font-size: 17px;
  margin: 18px 0 8px;
}

.footer-legal-modal__content h3 {
  font-size: 15px;
  margin: 14px 0 6px;
}

.footer-legal-modal__content p {
  margin: 0 0 10px;
}

.footer-legal-modal__content ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

body.footer-modal-open {
  overflow: hidden;
}
