/* CampioneOmaggio AI: styles are scoped to its own cards and sample footer. */
.coai-list {
  --coai-accent: var(--e-global-color-accent, #e91e63);
  --coai-border: #e3e8ed;
  --coai-ink: var(--e-global-color-text, #1b1b1b);
  color: var(--coai-ink);
  font-family: var(--e-global-typography-text-font-family, Arial), sans-serif;
  line-height: 1.5;
  margin: 0 0 24px;
  width: 100%;
}
.coai-list * { box-sizing: border-box; }
.coai-list a:focus-visible, .coai-official a:focus-visible {
  outline: 3px solid #b16a00;
  outline-offset: 4px;
}
.coai-list .coai-button, .coai-official .coai-button {
  display: inline-block;
  background: var(--e-global-color-accent, #e91e63);
  color: #fff;
  text-decoration: none !important;
  font-family: var(--e-global-typography-accent-font-family, Arial), sans-serif;
  font-size: var(--e-global-typography-accent-font-size, 14px);
  font-weight: var(--e-global-typography-accent-font-weight, 600);
  line-height: var(--e-global-typography-accent-line-height, 1.5);
  text-align: center;
  padding: 12px 24px;
  border-radius: 3px;
  border: 0;
  max-width: 100%;
}
.coai-list .coai-button:hover, .coai-official .coai-button:hover {
  background: #c2185b;
  color: #fff;
}
.coai-title, .coai-card h3 a { color: inherit; text-decoration: none; }
.coai-title:hover, .coai-card h3 a:hover { text-decoration: underline; }
.coai-title { font-weight: 700; }
.coai-category { display: block; color: #666; font-size: 12px; margin: 0 0 6px; }
.coai-tabella { overflow-x: auto; border: 1px solid var(--coai-border); border-radius: 3px; }
.coai-tabella table { width: 100%; border-collapse: collapse; border: 0; margin: 0; background: #fff; }
.coai-tabella th { background: #fff5f8; font-size: .8rem; text-align: left; color: #444; }
.coai-tabella td, .coai-tabella th { border: 0; border-bottom: 1px solid var(--coai-border); padding: 1rem; vertical-align: middle; }
.coai-tabella tbody tr:last-child td { border-bottom: 0; }
.coai-tabella td:first-child { width: 32%; }
.coai-tabella td:last-child { width: 1%; white-space: nowrap; }
.coai-schede { display: grid; gap: 16px; align-items: stretch; }
.coai-columns-1 { grid-template-columns: 1fr; }
.coai-schede.coai-columns-2 { grid-template-columns: repeat(2, minmax(0, 48.8%)); column-gap: 2.4%; }
.coai-schede.coai-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coai-schede.coai-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Match the homepage's existing two-card rows, including its older shortcode. */
.home .coai-schede.coai-columns-3, .home .coai-schede.coai-columns-4 {
  grid-template-columns: repeat(2, minmax(0, 48.8%));
  column-gap: 2.4%;
}
.coai-card {
  min-width: 0;
  min-height: 30vh;
  border: 1px solid var(--coai-border);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.coai-card .coai-card-media {
  display: block;
  height: 260px;
  flex: 0 0 260px;
  overflow: hidden;
  background: #fff;
}
/* Specificity beats Elementor's generic img { height: auto } rule. */
.coai-list .coai-card .coai-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border-radius: 0;
}
.coai-card .coai-card-body { padding: 12px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.coai-card h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.coai-card p { font-size: 16px; line-height: 1.45; margin: 0 0 16px; }
.coai-card .coai-button { margin-top: auto; }
.coai-official { border: 1px solid #e3e8ed; background: #fff7fa; border-radius: 3px; padding: 1.5rem; margin: 2rem 0; }
.coai-small { font-size: .82rem; color: #666; margin: 1rem 0 0; }
.coai-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.coai-empty { font-size: .95rem; padding: 1rem; background: #fff7fa; border-radius: 3px; }
@media (max-width: 900px) {
  .coai-schede.coai-columns-3, .coai-schede.coai-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .coai-schede.coai-columns-2, .coai-schede.coai-columns-3, .coai-schede.coai-columns-4,
  .home .coai-schede.coai-columns-3, .home .coai-schede.coai-columns-4 { grid-template-columns: 1fr; column-gap: 0; }
  .coai-tabella td, .coai-tabella th { padding: .8rem .6rem; }
  .coai-tabella td:first-child { min-width: 120px; }
  .coai-tabella td:nth-child(2) { min-width: 170px; }
  .coai-tabella .coai-button { padding: .6rem .7rem; }
  .coai-official { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .coai-list * { scroll-behavior: auto !important; }
}

/* The existing shortcode lives in this dedicated boxed Elementor container.
   Give only that container the full row width used by the reference cards. */
.home .elementor-element.elementor-element-10f5a0d {
  --container-max-width: 100%;
}
