.site-footer {
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.social-media {
  display: flex;
  gap: 12px;
}

.social-media a {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
}

.social-media a svg {
  width: 14px;
  height: 14px;
  display: block;
}

.site-info a:hover,
.cookie-prefs-link:hover {
  color: var(--primary);
}

/* Unico blocco rimasto nel footer: il bordo superiore è già su .site-footer. */
.site-info {
  border-top: 0;
}

.site-info-wrap {
  padding: var(--pad3);
}

.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-size: 15px;
}

.copyright a {
  color: var(--text);
  text-decoration: none;
}

.copyright-left,
.copyright-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Il pulsante deve leggersi come gli altri link della striscia. */
.cookie-prefs-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 600px) {
  .site-info-wrap {
    padding: 2rem var(--pad2);
  }

  .copyright {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --- Banner cookie (presente su tutte le pagine tramite il partial footer) --- */
.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  padding: 1.5rem;
}

.cookie-banner-title {
  margin: 0 0 0.5rem;
  color: var(--heading);
  font-weight: 500;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--primary);
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cookie-options[hidden] {
  display: none;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}

.cookie-option input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.cookie-option input:disabled {
  cursor: not-allowed;
}

.cookie-option strong {
  display: block;
  color: var(--heading);
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.cookie-actions .button {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.cookie-actions .button[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .cookie-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }
}
