/* components.css */

/* =========================================================
   PREFERENZE COOKIE
========================================================= */

.ff-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}

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

.ff-cookie-dialog {
  position: relative;
  width: min(920px, 100%);
  max-width: calc(100vw - 36px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  overflow: visible;
  border: 1px solid rgba(11, 20, 29, .10);
  border-radius: 12px;
  background: #fefeff;
  color: #0b141d;
  box-shadow: 0 14px 48px rgba(8, 20, 31, .22);
  font-family: "Inter", sans-serif;
  pointer-events: auto;
}

.ff-cookie-dialog * {
  box-sizing: border-box;
}

.ff-cookie-content {
  min-width: 0;
}

.ff-cookie-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #65717c;
  font-size: 25px;
  line-height: 1;
  opacity: .58;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.ff-cookie-close:hover,
.ff-cookie-close:focus-visible {
  background: #eef1f3;
  color: #0b141d;
  opacity: .82;
  outline: none;
}

.ff-cookie-title {
  margin: 0;
  padding-right: 28px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.ff-cookie-copy {
  margin: 7px 0 0;
  color: #4f5b66;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ff-cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 0;
  color: #76818b;
  font-size: 12px;
  line-height: 1.4;
}

.ff-cookie-links a {
  color: #1b5593;
  font-weight: 600;
  text-underline-offset: 3px;
}

.ff-cookie-actions {
  display: flex;
  gap: 10px;
  padding-right: 30px;
}

.ff-cookie-button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #cdd3d8;
  border-radius: 7px;
  background: #fefeff;
  color: #0b141d;
  font: 600 13px/1.2 "Inter", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ff-cookie-button:hover {
  border-color: #0b141d;
}

.ff-cookie-button--accept {
  border-color: #1b5593;
  background: #1b5593;
  color: #fefeff;
}

.ff-cookie-button--accept:hover {
  border-color: #17497f;
  background: #17497f;
}

.ff-cookie-button:focus-visible,
[data-cookie-settings]:focus-visible {
  outline: 3px solid rgba(78, 133, 198, .55);
  outline-offset: 3px;
}

.ff-cookie-settings {
  appearance: none;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ff-cookie-settings:hover {
  color: #4e85c6;
}

.ff-footer-nav .ff-footer-cookie-settings {
  position: relative;
  padding: 0 0 2px;
  color: #0b141d;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 800px) {
  .ff-footer-nav .ff-footer-cookie-settings {
    font-size: 14px;
  }
}

.ff-cookie-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #e9edef;
  text-align: center;
  font-family: "Inter", sans-serif;
}

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

.ff-cookie-placeholder__inner {
  max-width: 520px;
}

.ff-cookie-placeholder h3 {
  margin: 0;
  color: #0b141d;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.2;
}

.ff-cookie-placeholder p {
  margin: 13px 0 22px;
  color: #4f5b66;
  font-size: 15px;
  line-height: 1.6;
}

.ff-cookie-placeholder button {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  background: #f4cd2a;
  color: #0b141d;
  font: 500 14px/1 "Inter", sans-serif;
  cursor: pointer;
}

@media (max-width: 600px) {
  .ff-cookie-overlay {
    padding: 10px;
  }

  .ff-cookie-dialog {
    width: calc(100vw - 20px);
    max-width: none;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 19px 18px 18px;
    border-radius: 12px;
  }

  .ff-cookie-close {
    top: 6px;
    right: 6px;
  }

  .ff-cookie-title {
    padding-right: 28px;
    font-size: 19px;
  }

  .ff-cookie-copy {
    margin-top: 6px;
    font-size: 13px;
  }

  .ff-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
  }

  .ff-cookie-button {
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
  }

  .ff-cookie-placeholder {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-cookie-button,
  .ff-cookie-close {
    transition: none;
  }
}
