/* ========================================================================
   Consenso ai cookie: banner, pannello delle preferenze, contenuti esterni
   Colori e caratteri ripresi dal tema del sito (theme.css)
 ========================================================================== */

.bl-cc[hidden],
.bl-cc-modal[hidden] {
  display: none !important;
}

/* Banner
 ========================================================================== */
.bl-cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 0 10px 10px;
  pointer-events: none;
}
.bl-cc-banner {
  position: relative;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 940px;
  margin: 0 auto;
  padding: 22px 25px 20px;
  background: #ffffff;
  border-top: 3px solid #dc5537;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}
.bl-cc-title {
  margin: 0 30px 8px 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 300;
  color: #2f2f2f;
}
.bl-cc-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 20px;
  color: #555555;
}
.bl-cc-text a,
.bl-cc-dialog a,
.bl-cc-embed a {
  color: #dc5537;
  text-decoration: underline;
}
.bl-cc-text a:hover,
.bl-cc-dialog a:hover,
.bl-cc-embed a:hover {
  color: #9c3318;
}

/* Pulsanti
 ========================================================================== */
.bl-cc-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  gap: 10px;
}
.bl-cc-btn {
  -webkit-appearance: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: inline-block;
  min-width: 150px;
  min-height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 2px;
  font: inherit;
  font-size: 15px;
  line-height: 38px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.bl-cc-btn:focus,
.bl-cc-close:focus,
.bl-cc-switch input:focus + .bl-cc-switch-track {
  outline: 2px solid #2f2f2f;
  outline-offset: 2px;
}
.bl-cc-btn-primary {
  background-color: #dc5537;
  background-image: linear-gradient(to bottom, #e4623f, #d64c31);
  color: #ffffff;
}
.bl-cc-btn-primary:hover {
  background-color: #d96b53;
  background-image: none;
  color: #ffffff;
}
.bl-cc-btn-dark {
  background-color: #333333;
  color: #ffffff;
}
.bl-cc-btn-dark:hover {
  background-color: #4a4a4a;
  color: #ffffff;
}
.bl-cc-btn-light {
  background-color: #f7f7f7;
  border-color: rgba(0, 0, 0, 0.16);
  color: #555555;
}
.bl-cc-btn-light:hover {
  background-color: #ffffff;
  color: #2f2f2f;
}
.bl-cc-close {
  -webkit-appearance: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: 28px;
  line-height: 36px;
  color: #999999;
  cursor: pointer;
}
.bl-cc-close:hover {
  background: #f7f7f7;
  color: #2f2f2f;
}

/* Pannello delle preferenze
 ========================================================================== */
.bl-cc-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1110;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 10px;
  background: rgba(0, 0, 0, 0.6);
}
.bl-cc-dialog {
  position: relative;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 640px;
  margin: 30px auto;
  padding: 25px;
  background: #ffffff;
  border-top: 3px solid #dc5537;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.bl-cc-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5e5e5;
}
.bl-cc-item {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #e5e5e5;
}
.bl-cc-item-name {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: #2f2f2f;
}
.bl-cc-item-text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #555555;
}
.bl-cc-always {
  -webkit-flex: none;
  flex: none;
  padding-top: 2px;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #777777;
}

/* Interruttore: una casella di spunta vera, ridisegnata */
.bl-cc-switch {
  position: relative;
  -webkit-flex: none;
  flex: none;
  display: block;
  width: 46px;
  height: 26px;
  margin-top: 2px;
  cursor: pointer;
}
.bl-cc-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.bl-cc-switch-track {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #999999;
  transition: background-color 0.15s ease;
}
.bl-cc-switch-track:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: left 0.15s ease;
}
.bl-cc-switch input:checked + .bl-cc-switch-track {
  background: #dc5537;
}
.bl-cc-switch input:checked + .bl-cc-switch-track:after {
  left: 23px;
}

/* Contenuti esterni in attesa del consenso (mappa)
 ========================================================================== */
.bl-cc-embed {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 25px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  text-align: center;
}
.bl-cc-embed-box {
  max-width: 460px;
}
.bl-cc-embed-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  color: #2f2f2f;
}
.bl-cc-embed-text {
  margin: 0 0 16px;
}
.bl-cc-embed-link {
  display: block;
  margin-top: 14px;
}
.bl-cc-embed-frame {
  display: block;
  width: 100%;
  border: 0;
}

/* Stato della scelta nella pagina dei cookie */
.bl-cc-status {
  margin: 0 0 15px;
  padding: 15px;
  background: #f7f7f7;
  border-left: 3px solid #dc5537;
}

/* Tabelle e titoli delle informative */
.bl-legal h2 {
  margin-top: 30px;
}
.bl-legal h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 400;
}
.bl-legal .uk-table th {
  font-weight: 400;
  color: #2f2f2f;
}
.bl-legal .uk-table td,
.bl-legal .uk-table th {
  vertical-align: top;
}

@media (max-width: 767px) {
  .bl-cc {
    padding: 0;
  }
  .bl-cc-banner {
    max-height: 85vh;
    overflow-y: auto;
    padding: 18px 15px 15px;
  }
  .bl-cc-btn {
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
  }
  .bl-cc-dialog {
    margin: 0 auto;
    padding: 20px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-cc-switch-track,
  .bl-cc-switch-track:after {
    transition: none;
  }
}

@media print {
  .bl-cc,
  .bl-cc-modal {
    display: none !important;
  }
}
