.site-footer {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 40px 40px 30px;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1440px;
}

.footer-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  width: 100%;
  padding: 20px;
}

.footer-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 90px;
  font-weight: 400;
  line-height: 0.9em;
  color: var(--color-text);
}

.footer-hero-title span {
  color: var(--color-accent);
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}

.footer-form-row {
  display: flex;
  gap: 12px;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}

.footer-form textarea {
  min-height: 100px;
  resize: vertical;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: var(--color-text);
}

.footer-form button {
  padding: 15px;
  border: none;
  border-radius: 20px;
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.footer-form button:hover {
  box-shadow: 0 0 20px 2px var(--color-accent);
}

.footer-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer-form-status {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  min-height: 1em;
}

.footer-form-status.is-success {
  color: var(--color-accent);
}

.footer-form-status.is-error {
  color: #ff6b6b;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0.7 0 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
}

.footer-contact-item svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex: 1 0 0;
  justify-content: flex-start;
  gap: 80px;
  padding: 20px 30px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col h5 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

.footer-links-col a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  opacity: 0.8;
}

.footer-links-col a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
}

.footer-social h5 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(124, 135, 120, 0.39);
  border-radius: 16px;
  background: radial-gradient(50% 50% at 50% 50%, rgb(84, 84, 84) 0%, rgb(0, 0, 0) 100%);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.8);
  transition: fill 0.25s ease;
}

.footer-social-icon:hover {
  border-color: var(--color-accent);
  background: radial-gradient(50% 50% at 50% 50%, rgba(183, 63, 252, 0.5) 0%, var(--color-bg) 100%);
  box-shadow: 0 0 16px 1px rgba(183, 63, 252, 0.5);
  transform: translateY(-2px);
}

.footer-social-icon:hover svg {
  fill: var(--color-text);
}

.footer-newsletter {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 460px;
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 15px;
  border: none;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
}

.footer-newsletter input::placeholder {
  color: var(--color-text);
}

.footer-newsletter button {
  flex-shrink: 0;
  padding: 15px 20px;
  border: none;
  border-radius: 20px;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.footer-newsletter button:hover {
  box-shadow: 0 0 20px 2px var(--color-accent);
}

@media (max-width: 480px) {
  .footer-newsletter {
    flex-direction: column;
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 1200px;
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, var(--color-accent), #8f24d4);
  color: var(--color-text-on-accent);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 18px 48px rgba(183, 63, 252, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.whatsapp-float svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 62px rgba(183, 63, 252, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  filter: brightness(1.05);
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  width: min(680px, calc(100vw - 48px));
  padding: 22px;
  background-color: rgba(31, 29, 29, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 24px rgba(183, 63, 252, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.cookie-banner-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.cookie-banner-eyebrow {
  align-self: flex-start;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 39px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cookie-banner p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.82;
}

.cookie-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-banner-links a {
  font-family: var(--font-heading);
  font-size: 11px;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cookie-banner-links a:hover {
  color: var(--color-accent-light);
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cookie-banner-button {
  min-width: 112px;
  padding: 12px 18px;
  border-radius: var(--radius-link);
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cookie-banner-button-primary {
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

.cookie-banner-button-primary:hover {
  box-shadow: 0 0 20px 2px var(--color-accent);
}

.cookie-banner-button-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.cookie-banner-button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.13);
}

@media (max-width: 900px) {
  .site-footer {
    padding: 30px 20px 40px;
  }

  .footer-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-hero-title {
    font-size: 56px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
    padding: 10px 10px 20px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}

@media (max-width: 600px) {
  /* Testi centrati su mobile */
  .site-footer { text-align: center; }
  .footer-hero { align-items: center; }
  .footer-links { align-items: center; }
  .footer-contact-item { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* Le tre colonne di link diventano righe che vanno a capo da sole:
     impilate una voce per riga rendevano il footer lunghissimo. */
  .footer-links {
    gap: 22px;
    padding: 4px 0 16px;
  }

  .footer-links-col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
  }

  .footer-links-col h5 {
    flex-basis: 100%;
    margin: 0;
  }

  .footer-links-col a {
    font-size: 14px;
  }

  /* Colonna "Servizi" (la seconda) nascosta su mobile: troppo affollata */
  .footer-links-col:nth-child(2) {
    display: none;
  }

  .whatsapp-float {
    left: 16px;
    bottom: 16px;
    width: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    text-align: left;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
  }

  .cookie-banner-button {
    width: 100%;
  }
}
