@charset "UTF-8";
/* ==========================================================================
   FARTEC — Cookie consent
   Banner, pannello preferenze e segnaposto per gli embed di terze parti.
   Stessi token del design system (style.css).
   ========================================================================== */

/* ---------- Banner ---------- */
.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.cc-banner.show { opacity: 1; transform: none; }
/* Lascia spazio alla bolla della chat, ancorata in basso a destra. */
.cc-banner.cc-has-chat { bottom: 104px; }

.cc-banner-in {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cc-banner-txt { flex: 1 1 420px; min-width: 0; }
.cc-banner-txt h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.cc-banner-txt p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.cc-banner-txt a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.cc-banner-act {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ---------- Bottoni ---------- */
.cc-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.cc-btn:active { transform: scale(0.97); }
/* Accetta e Rifiuta hanno lo stesso peso visivo: lo chiedono le linee guida. */
.cc-btn-primary { background: var(--brand); color: #fff; }
.cc-btn-primary:hover { background: var(--brand-deep); }
.cc-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cc-btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }

.cc-link {
  font: inherit;
  font-size: 14px;
  background: none;
  border: 0;
  padding: 8px 4px;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc-close:focus-visible,
.cc-row input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Pannello preferenze ---------- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.cc-modal.show { opacity: 1; }
.cc-modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }

.cc-modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.26s var(--ease);
}
.cc-modal.show .cc-modal-card { transform: none; }
.cc-modal-card h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.cc-modal-lead { font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.55; }

.cc-rows { display: grid; gap: 4px; }
.cc-row { padding: 18px 0; border-top: 1px solid var(--line); }
.cc-row-head { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.cc-row-head input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.cc-row-head input[disabled] { cursor: default; }
.cc-row p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-top: 8px; padding-left: 30px; }
.cc-tag {
  font-size: 12px;
  font-style: normal;
  color: var(--ink-soft);
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 980px;
  margin-left: auto;
}

.cc-modal-act { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }

.cc-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.cc-close:hover { background: var(--bg-alt); }

/* ---------- Segnaposto embed bloccati ---------- */
.embed-consent { min-height: 320px; }
.embed-consent iframe {
  width: 100%;
  height: 1400px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  display: block;
}
.embed-consent-ph {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 44px 36px;
  text-align: center;
}
.embed-consent-ph h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.embed-consent-ph p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; }
.embed-consent-ph .cc-btn { margin-bottom: 22px; }
.embed-consent-ph .alt {
  font-size: 14px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.embed-consent-ph .alt a { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; padding: 20px; }
  .cc-banner.cc-has-chat { bottom: 92px; }
  .cc-banner-in { gap: 18px; }
  .cc-banner-act { width: 100%; }
  .cc-banner-act .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-modal-card { padding: 30px 24px; }
  .cc-modal-act .cc-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-modal,
  .cc-modal-card { transition: none; }
}
