/* Trasparenza AI Act (UE) — barra informativa sito Righetto */
.rig-ai-act-bar {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.65rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(21, 36, 53, 0.88);
  background: linear-gradient(180deg, #ece7df 0%, #e4ddd3 100%);
  border-top: 1px solid #d5cdc2;
  border-bottom: 1px solid #d5cdc2;
  text-align: center;
}
.rig-ai-act-bar a {
  color: #2c4a6e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rig-ai-act-bar a:hover {
  color: #152435;
}
.rig-ai-act-bar strong {
  font-weight: 700;
  color: #152435;
}
footer .rig-ai-act-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
}
footer .rig-ai-act-bar a {
  color: #ff8f5e;
}
footer .rig-ai-act-bar strong {
  color: rgba(255, 255, 255, 0.92);
}
.rig-media-ai-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #6b7a8d;
  margin: 0;
  padding: 0.55rem 1.25rem 0.75rem;
  background: #f7f5f1;
  border-bottom: 1px solid #e1dbd1;
}
.rig-media-ai-note a {
  color: #2c4a6e;
  font-weight: 600;
}
/* Didascalia sotto ogni foto — AI Act UE */
.rig-photo-caption {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.42rem 0.65rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
  font-style: italic;
  color: #556578;
  background: #f4f1ec;
  border-top: 1px solid #e6dfd6;
  border-bottom: 1px solid #e6dfd6;
  text-align: left;
}
.rig-photo-caption a {
  color: #2c4a6e;
  font-weight: 600;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rig-photo-caption--compact {
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
  line-height: 1.45;
}
.rig-carousel > .rig-photo-caption {
  position: relative;
  z-index: 2;
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.art-hero + .rig-photo-caption {
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 1.25rem;
  background: #ece7df;
  border-top: none;
}
.blog-fig .rig-photo-caption,
figure .rig-photo-caption {
  border-radius: 0 0 8px 8px;
  border-top: none;
}
.card .rig-photo-caption--compact {
  border-left: 1px solid #e6dfd6;
  border-right: 1px solid #e6dfd6;
}
/* Marchio FOTO AI — immagini generate con intelligenza artificiale (AI Act UE) */
.rig-ai-photo-wrap,
.art-hero__frame,
.blog-fig__frame,
figure.blog-fig,
.art-hero {
  position: relative;
}
.rig-ai-photo-watermark {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 4;
  padding: 2px 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(21, 36, 53, 0.72);
  border-radius: 3px;
  pointer-events: none;
  user-select: none;
}
.art-hero__frame .rig-ai-photo-watermark,
.blog-fig__frame .rig-ai-photo-watermark {
  left: 8px;
  bottom: 8px;
}
@media (max-width: 640px) {
  .rig-ai-photo-watermark {
    font-size: 0.46rem;
    padding: 2px 4px;
    left: 4px;
    bottom: 4px;
  }
}
.chat-ai-disclosure {
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.15rem;
  display: block;
}
.chat-ai-disclosure a {
  color: #ff8f5e;
  text-decoration: underline;
}
.chat-welcome-disclosure {
  font-size: 0.68rem;
  line-height: 1.5;
  color: #6b7a8d;
  margin: 0.5rem 0 0.85rem;
  padding: 0.55rem 0.65rem;
  background: #f0ece6;
  border-radius: 8px;
  border-left: 3px solid #2c4a6e;
  text-align: left;
}
.chat-welcome-disclosure a {
  color: #2c4a6e;
  font-weight: 600;
}
.chat-msg-disclosure {
  font-size: 0.7rem;
  line-height: 1.5;
  color: #6b7a8d;
  margin: 0.35rem 0 0.75rem 2.6rem;
  max-width: 92%;
}
.chat-msg-disclosure a {
  color: #2c4a6e;
}
.cf-ai-disclosure {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #6b7a8d;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #f0ece6;
  border-radius: 8px;
  border-left: 3px solid #2c4a6e;
}
.cf-ai-disclosure a {
  color: #2c4a6e;
  font-weight: 600;
}
@media (max-width: 640px) {
  .rig-ai-act-bar {
    font-size: 0.7rem;
    padding: 0.55rem 0.85rem;
    text-align: left;
  }
  .rig-photo-caption {
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
  }
  .rig-photo-caption--compact {
    font-size: 0.7rem;
  }
}

/* Badge FOTO AI in basso a sinistra (come dice la didascalia): se sotto l'immagine c'e' la didascalia, spazio extra in fondo cosi' il badge non copre "Informativa" */
:has(> .rig-ai-photo-watermark) > .rig-photo-caption {
  padding-bottom: 1.7rem;
}
