/* Stili limitati agli elementi generati da Contenuti AI. La preferenza del tema
   è applicata tramite classe dark-mode sull'elemento html. */
.cai-ai-section,.cai-ai-section > .elementor-container > .elementor-column {transition:background-color .2s,color .2s}
html:not(.dark-mode) .cai-ai-section:nth-of-type(odd),html:not(.dark-mode) .cai-ai-section:nth-of-type(odd) > .elementor-container > .elementor-column > .elementor-widget-wrap {background-color:#f3f8fd!important}
html:not(.dark-mode) .cai-ai-section:nth-of-type(even),html:not(.dark-mode) .cai-ai-section:nth-of-type(even) > .elementor-container > .elementor-column > .elementor-widget-wrap {background-color:#fff!important}
html:not(.dark-mode) .cai-ai-section .elementor-heading-title {color:#0070ba!important}
html:not(.dark-mode) .cai-ai-section .elementor-widget-text-editor,html:not(.dark-mode) .cai-ai-section .elementor-widget-text-editor * {color:#20242a!important}
html.dark-mode .cai-ai-section,html.dark-mode .cai-ai-section > .elementor-container > .elementor-column,html.dark-mode .cai-ai-section .elementor-widget-wrap {background-color:#23262b!important;color:#f3f5f8!important}
html.dark-mode .cai-ai-section:nth-of-type(even),html.dark-mode .cai-ai-section:nth-of-type(even) .elementor-widget-wrap {background-color:#30343a!important}
html.dark-mode .cai-ai-section .elementor-widget-text-editor,html.dark-mode .cai-ai-section .elementor-widget-text-editor *,html.dark-mode .cai-ai-section .elementor-heading-title {color:#f3f5f8!important}
html.dark-mode .cai-ai-section .elementor-divider-separator {border-color:#78bcff!important}
.cai-ai-section .elementor-widget-image img {max-width:100%;height:auto;border-radius:12px}
.cai-ai-text-card .elementor-column {border-radius:16px;overflow:hidden}
@media(max-width:767px){.cai-ai-split > .elementor-container{display:flex!important;flex-direction:column!important}.cai-ai-split > .elementor-container > .elementor-column{width:100%!important;max-width:100%!important}.cai-ai-section{margin:16px 0!important;padding:12px!important}}

.cai-ai-cards > .elementor-container {display:flex!important;flex-wrap:wrap!important;align-items:stretch;gap:0}
.cai-ai-cards > .elementor-container > .elementor-column {width:33.333%;min-width:0;flex:1 1 30%;padding:12px}
.cai-ai-cards > .elementor-container > .elementor-column > .elementor-widget-wrap {border-radius:14px;padding:24px!important}
html.dark-mode .cai-ai-cards > .elementor-container > .elementor-column > .elementor-widget-wrap {background-color:#30343a!important}
@media(max-width:900px){.cai-ai-cards > .elementor-container > .elementor-column{width:50%!important;flex-basis:46%!important}}
@media(max-width:600px){.cai-ai-cards > .elementor-container > .elementor-column{width:100%!important;flex-basis:100%!important}}

/* Icone senza font esterni; card con fotografia nel fondo, responsive. */
.cai-card-symbol{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#0878bd;color:#fff;font-size:28px;font-weight:700;line-height:1;margin-bottom:10px}
.cai-ai-case-card .elementor-widget-image{margin-top:18px}
.cai-ai-case-card .elementor-widget-image img{aspect-ratio:4/3;object-fit:cover;width:100%}
.cai-ai-case-card .elementor-heading-title{font-weight:700}
.cai-ai-cards .cai-ai-case-card{height:100%}
html.dark-mode .cai-card-symbol{background:#79c0ff;color:#102337}


/* Card icons: centered, larger and visually clearer. */
.cai-card-symbol-wrap{text-align:center;margin:0 0 14px 0}
.cai-card-symbol{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#0b77bd;color:#fff;font-size:34px;line-height:1;box-shadow:0 10px 24px rgba(0,0,0,.12)}
html.dark-mode .cai-card-symbol{background:#79c0ff;color:#102337;box-shadow:none}

/* Usage cards: always 3 columns on desktop, consistent look, image below content. */
.cai-ai-case-grid > .elementor-container{display:flex!important;flex-wrap:wrap!important;align-items:stretch}
.cai-ai-case-grid > .elementor-container > .elementor-column{width:33.333%!important;flex:1 1 33.333%!important;min-width:0;padding:12px}
.cai-ai-case-grid > .elementor-container > .elementor-column > .elementor-widget-wrap{border-radius:18px;padding:26px!important;background:#eef3f7}
html.dark-mode .cai-ai-case-grid > .elementor-container > .elementor-column > .elementor-widget-wrap{background:#5a5a5a!important}
.cai-ai-case-grid .elementor-heading-title{text-align:center}
.cai-ai-case-grid .elementor-widget-text-editor ul{padding-left:18px}
.cai-ai-case-grid .elementor-widget-image{margin-top:16px}
.cai-ai-case-grid .elementor-widget-image img{aspect-ratio:4/3;object-fit:cover;width:100%;border-radius:14px}
@media(max-width:900px){.cai-ai-case-grid > .elementor-container > .elementor-column{width:50%!important;flex-basis:50%!important}}
@media(max-width:600px){.cai-ai-case-grid > .elementor-container > .elementor-column{width:100%!important;flex-basis:100%!important}}

/* Continuità visiva con il tema: niente separatori neri tra sezioni AI. */
html.dark-mode .cai-ai-section{border:0!important;box-shadow:none!important;margin-top:0!important;margin-bottom:0!important}
html.dark-mode .cai-ai-section + .cai-ai-section{border-top:0!important}
.cai-ai-split > .elementor-container{align-items:center}
.cai-ai-section .elementor-widget-image img{display:block;width:100%;height:auto;object-fit:cover}
.cai-ai-case-grid > .elementor-container > .elementor-column > .elementor-widget-wrap{display:flex!important;flex-direction:column;justify-content:space-between}


/* v1.1.4 layout tuning */
.cai-ai-split .elementor-widget-image img{width:100%;max-width:100%;aspect-ratio:4/3;max-height:420px;object-fit:cover;border-radius:14px}
.cai-ai-case-grid .elementor-widget-image{margin-top:18px}
.cai-ai-case-grid .elementor-widget-image img{width:100%;max-width:100%;aspect-ratio:4/3;max-height:240px;object-fit:cover;border-radius:14px}
.cai-ai-section:last-of-type{margin-bottom:46px!important}

/* Uniforma il formato fotografico nelle sezioni create con widget Elementor editabili. */
.cai-ai-section .elementor-widget-image img {display:block;max-width:540px!important;width:100%!important;height:auto!important;max-height:400px;object-fit:cover;margin:0 auto}
.cai-ai-vertical .elementor-widget-image img {max-width:580px!important;max-height:350px}
.cai-ai-case-grid .elementor-widget-image img {max-width:100%!important;max-height:235px!important;aspect-ratio:4/3;object-fit:cover}
.cai-ai-cta {margin-top:38px!important;margin-bottom:38px!important;text-align:center}
.cai-ai-cta .elementor-button {border-radius:100px;padding:16px 28px;font-weight:700}
/* Il form resta parte del template originale; separazione dalla CTA precedente. */
.cai-ai-cta + .elementor-section {margin-top:42px!important;padding-top:24px}
@media(max-width:767px){.cai-ai-section .elementor-widget-image img{max-width:100%!important;max-height:none!important}}

/* 1.1.5: pagine di servizio. Solo widget/sezioni Elementor nativi, nessun HTML monolitico. */
.cai-service-hero .elementor-heading-title{text-align:center;font-size:clamp(27px,3vw,44px);line-height:1.2;font-weight:750}
.cai-service-hero-row > .elementor-container{display:flex;align-items:center;gap:20px}
.cai-service-hero-row .elementor-widget-text-editor{font-size:clamp(17px,1.8vw,23px);line-height:1.48;border:2px solid #75bdff;border-radius:17px;padding:18px 23px}
.cai-service-hero-row .elementor-widget-image img{display:block;width:100%;max-width:580px;max-height:425px;height:auto;object-fit:contain;margin:0 auto;border-radius:12px}
.cai-service-benefit-title .elementor-heading-title{font-size:clamp(27px,3vw,42px);line-height:1.15;font-weight:750}
.cai-service-benefits > .elementor-container{display:flex;align-items:stretch;flex-wrap:wrap}
.cai-service-benefits > .elementor-container > .elementor-column{min-width:0;flex:1 1 33.333%;padding:10px}
.cai-service-benefits > .elementor-container > .elementor-column > .elementor-widget-wrap{display:flex!important;flex-direction:column;justify-content:center;align-items:center;min-height:180px;border:2px solid #0070ba;border-radius:10px;padding:22px!important}
.cai-service-benefits > .elementor-container > .elementor-column:nth-child(2n) > .elementor-widget-wrap{border-color:#93c9ff}
.cai-service-benefits .elementor-heading-title{font-size:clamp(17px,1.7vw,22px);font-weight:750;line-height:1.2;text-align:center;text-transform:uppercase}
.cai-service-benefits .elementor-widget-text-editor{text-align:center;font-size:clamp(15px,1.4vw,18px);line-height:1.38}
.cai-service-cta .elementor-button{border-radius:50px;font-size:clamp(17px,2.3vw,29px);font-weight:700;letter-spacing:.01em;padding:18px 30px}
.cai-service-cta .elementor-widget-wrap{justify-content:center}
html:not(.dark-mode) .cai-service-benefits > .elementor-container > .elementor-column > .elementor-widget-wrap{background:#f5f9fc!important;color:#1f2933!important}
html.dark-mode .cai-service-benefits > .elementor-container > .elementor-column > .elementor-widget-wrap{background:#404040!important;color:#fff!important}
html.dark-mode .cai-service-hero-row .elementor-widget-text-editor{color:#fff!important}
@media(max-width:900px){.cai-service-benefits > .elementor-container > .elementor-column{flex-basis:50%!important;width:50%!important}}
@media(max-width:767px){.cai-service-hero-row > .elementor-container{flex-direction:column!important}.cai-service-hero-row > .elementor-container > .elementor-column{width:100%!important}.cai-service-benefits > .elementor-container > .elementor-column{flex-basis:100%!important;width:100%!important}.cai-service-hero .elementor-widget-spacer{display:none}}

/* v1.1.6: fotografia verticale/caso d'uso con dimensioni controllate anche quando il caso è isolato. */
.cai-ai-case-card .elementor-widget-image,
.cai-ai-vertical .elementor-widget-image {text-align:center!important;width:100%!important}
.cai-ai-case-card .elementor-widget-image .elementor-widget-container,
.cai-ai-vertical .elementor-widget-image .elementor-widget-container {display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important}
.cai-ai-case-card .elementor-widget-image img,
.cai-ai-vertical .elementor-widget-image img,
.cai-ai-case-grid .elementor-widget-image img {display:block!important;width:100%!important;max-width:420px!important;height:auto!important;max-height:315px!important;aspect-ratio:4/3!important;object-fit:cover!important;margin:0 auto!important;border-radius:14px!important}
@media(max-width:767px){.cai-ai-case-card .elementor-widget-image img,.cai-ai-vertical .elementor-widget-image img,.cai-ai-case-grid .elementor-widget-image img{max-width:100%!important}}


/* 1.1.7: fixed 3-by-3 benefits; Elementor retains individually editable columns. */
.cai-service-benefits > .elementor-container{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:0!important;width:100%!important;max-width:1140px!important;margin-left:auto!important;margin-right:auto!important}
.cai-service-benefits > .elementor-container > .elementor-column{box-sizing:border-box!important;flex:0 0 33.333333%!important;width:33.333333%!important;max-width:33.333333%!important;min-width:0!important;padding:10px!important}
.cai-service-benefits > .elementor-container > .elementor-column > .elementor-widget-wrap{box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:220px!important;padding:24px 18px!important;display:flex!important;flex-flow:column nowrap!important;align-items:stretch!important;justify-content:center!important;gap:12px!important}
.cai-service-benefits .elementor-widget-heading,.cai-service-benefits .elementor-widget-text-editor{width:100%!important;max-width:100%!important;margin:0!important}
.cai-service-benefits .elementor-heading-title{overflow-wrap:anywhere!important;text-align:center!important}
.cai-service-benefits .elementor-widget-text-editor,.cai-service-benefits .elementor-widget-text-editor p{text-align:center!important;overflow-wrap:break-word!important;margin:0!important}
/* No alternating dark strips: match the underlying dark Starsystem page. */
html.dark-mode .cai-ai-section:not(.cai-ai-case-grid),html.dark-mode .cai-service-benefits,html.dark-mode .cai-service-benefit-title{background-color:#303030!important}
html.dark-mode .cai-ai-section:not(.cai-ai-case-grid) > .elementor-container > .elementor-column{background-color:transparent!important}
html.dark-mode .cai-ai-section:not(.cai-ai-case-grid) > .elementor-container > .elementor-column > .elementor-widget-wrap{background-color:transparent!important}
html.dark-mode .cai-service-benefits > .elementor-container > .elementor-column > .elementor-widget-wrap{background-color:#444!important}
html.dark-mode .cai-ai-case-card{background:#303030!important}
html.dark-mode .cai-ai-case-grid > .elementor-container > .elementor-column > .elementor-widget-wrap{background:#555!important}
/* Contact form spacing independent from previous generated section's selectors. */
.cai-ai-contact-section{margin-top:80px!important;margin-bottom:25px!important;padding-top:55px!important;padding-bottom:50px!important;clear:both!important}
.cai-ai-section + .cai-ai-contact-section{margin-top:85px!important}
@media(max-width:900px){.cai-service-benefits > .elementor-container{flex-wrap:wrap!important}.cai-service-benefits > .elementor-container > .elementor-column{flex:0 0 50%!important;max-width:50%!important;width:50%!important}}
@media(max-width:600px){.cai-service-benefits > .elementor-container > .elementor-column{flex:0 0 100%!important;max-width:100%!important;width:100%!important}.cai-service-benefits > .elementor-container > .elementor-column > .elementor-widget-wrap{min-height:unset!important}.cai-ai-contact-section{margin-top:55px!important;padding-top:40px!important}}


/* 1.1.9 — Dark canvas continuity, including the outer lateral gutters around Automotive. */
html.dark-mode .cai-ai-section,
html.dark-mode .cai-ai-section:nth-of-type(even),
html.dark-mode .cai-ai-section:nth-of-type(odd),
html.dark-mode .cai-ai-case-grid,
html.dark-mode .cai-ai-vertical,
html.dark-mode .cai-ai-case-card,
html.dark-mode .cai-ai-section > .elementor-container {
    background-color: #303030 !important;
    border: 0 !important;
    box-shadow: none !important;
}
html.dark-mode .cai-ai-section > .elementor-container > .elementor-column {
    background-color: transparent !important;
}
/* Inner case panel remains visually distinguished, but the outer section is seamless. */
html.dark-mode .cai-ai-case-grid > .elementor-container > .elementor-column > .elementor-widget-wrap,
html.dark-mode .cai-ai-case-card > .elementor-container > .elementor-column > .elementor-widget-wrap {
    background-color: #555 !important;
    border: 0 !important;
    box-shadow: none !important;
}
/* Match contact section even in drafts generated before contact class was added. */
.elementor:has(.cai-ai-section) > .elementor-section:has(#contact-form),
.elementor:has(.cai-ai-section) > .elementor-section.cai-ai-contact-section {
    box-sizing: border-box !important;
    margin-top: 0 !important;
    padding-top: 110px !important;
    padding-bottom: 55px !important;
    clear: both !important;
}
html.dark-mode .elementor:has(.cai-ai-section) > .elementor-section:has(#contact-form),
html.dark-mode .elementor:has(.cai-ai-section) > .elementor-section.cai-ai-contact-section {
    background-color: #303030 !important;
}
@media(max-width:767px) {
    .elementor:has(.cai-ai-section) > .elementor-section:has(#contact-form),
    .elementor:has(.cai-ai-section) > .elementor-section.cai-ai-contact-section {
        padding-top: 66px !important;
    }
}

/* 1.1.11 — Original source image graphics are never cropped or distorted. */
.cai-ai-section .elementor-widget-image img,
.cai-service-hero-row .elementor-widget-image img,
.cai-ai-case-card .elementor-widget-image img,
.cai-ai-vertical .elementor-widget-image img,
.cai-ai-case-grid .elementor-widget-image img,
.cai-ai-split .elementor-widget-image img {
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    margin-inline:auto!important;
}
/* Cases such as Automotive: center the decorative underline under the centered heading. */
.cai-ai-case-card .elementor-widget-divider .elementor-divider,
.cai-ai-case-grid .elementor-widget-divider .elementor-divider {text-align:center!important}
.cai-ai-case-card .elementor-widget-divider .elementor-divider-separator,
.cai-ai-case-grid .elementor-widget-divider .elementor-divider-separator {margin-left:auto!important;margin-right:auto!important}
/* Striped headline underline styled consistently in both color modes. */
.cai-service-hero .elementor-widget-divider .elementor-divider{display:flex!important;justify-content:center!important}
.cai-service-hero .elementor-widget-divider .elementor-divider-separator{margin:0 auto!important;border-color:#0070ba!important}


/* 1.1.12 — Original/source images use a responsive maximum box so they remain proportional,
   visually uniform, and never oversized. */
.cai-ai-section .elementor-widget-image,
.cai-service-hero-row .elementor-widget-image,
.cai-ai-case-card .elementor-widget-image,
.cai-ai-vertical .elementor-widget-image,
.cai-ai-case-grid .elementor-widget-image,
.cai-ai-split .elementor-widget-image {
    width:100%!important;
}
.cai-ai-section .elementor-widget-image .elementor-widget-container,
.cai-service-hero-row .elementor-widget-image .elementor-widget-container,
.cai-ai-case-card .elementor-widget-image .elementor-widget-container,
.cai-ai-vertical .elementor-widget-image .elementor-widget-container,
.cai-ai-case-grid .elementor-widget-image .elementor-widget-container,
.cai-ai-split .elementor-widget-image .elementor-widget-container {
    width:100%!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
/* Generic alternating blocks */
.cai-ai-section .elementor-widget-image .elementor-widget-container,
.cai-ai-split .elementor-widget-image .elementor-widget-container {
    min-height:320px!important;
}
.cai-ai-section .elementor-widget-image img,
.cai-ai-split .elementor-widget-image img {
    width:auto!important;
    max-width:min(100%, 520px)!important;
    max-height:320px!important;
    height:auto!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    margin:0 auto!important;
}
/* Main service hero */
.cai-service-hero-row .elementor-widget-image .elementor-widget-container {
    min-height:360px!important;
}
.cai-service-hero-row .elementor-widget-image img {
    width:auto!important;
    max-width:min(100%, 560px)!important;
    max-height:360px!important;
    height:auto!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    margin:0 auto!important;
}
/* Cards such as Automotive / Sanità / Retail and similar use-case cards */
.cai-ai-case-card .elementor-widget-image .elementor-widget-container,
.cai-ai-vertical .elementor-widget-image .elementor-widget-container,
.cai-ai-case-grid .elementor-widget-image .elementor-widget-container {
    min-height:250px!important;
}
.cai-ai-case-card .elementor-widget-image img,
.cai-ai-vertical .elementor-widget-image img,
.cai-ai-case-grid .elementor-widget-image img {
    width:auto!important;
    max-width:min(100%, 360px)!important;
    max-height:250px!important;
    height:auto!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    margin:0 auto!important;
}
@media(max-width:1024px){
    .cai-ai-section .elementor-widget-image .elementor-widget-container,
    .cai-ai-split .elementor-widget-image .elementor-widget-container {min-height:280px!important}
    .cai-ai-section .elementor-widget-image img,
    .cai-ai-split .elementor-widget-image img {max-width:min(100%, 460px)!important;max-height:280px!important}
    .cai-service-hero-row .elementor-widget-image .elementor-widget-container {min-height:320px!important}
    .cai-service-hero-row .elementor-widget-image img {max-width:min(100%, 500px)!important;max-height:320px!important}
    .cai-ai-case-card .elementor-widget-image .elementor-widget-container,
    .cai-ai-vertical .elementor-widget-image .elementor-widget-container,
    .cai-ai-case-grid .elementor-widget-image .elementor-widget-container {min-height:220px!important}
    .cai-ai-case-card .elementor-widget-image img,
    .cai-ai-vertical .elementor-widget-image img,
    .cai-ai-case-grid .elementor-widget-image img {max-width:min(100%, 320px)!important;max-height:220px!important}
}
@media(max-width:767px){
    .cai-ai-section .elementor-widget-image .elementor-widget-container,
    .cai-ai-split .elementor-widget-image .elementor-widget-container,
    .cai-service-hero-row .elementor-widget-image .elementor-widget-container,
    .cai-ai-case-card .elementor-widget-image .elementor-widget-container,
    .cai-ai-vertical .elementor-widget-image .elementor-widget-container,
    .cai-ai-case-grid .elementor-widget-image .elementor-widget-container {min-height:auto!important}
    .cai-ai-section .elementor-widget-image img,
    .cai-ai-split .elementor-widget-image img,
    .cai-service-hero-row .elementor-widget-image img {max-width:100%!important;max-height:260px!important}
    .cai-ai-case-card .elementor-widget-image img,
    .cai-ai-vertical .elementor-widget-image img,
    .cai-ai-case-grid .elementor-widget-image img {max-width:100%!important;max-height:220px!important}
}


/* 1.1.13 — Identical image slots per Elementor layout; full original image always visible.
 * A fixed display frame, not max-width/max-height on the intrinsic image, is required
 * to stop small source files or extreme aspect ratios producing inconsistent block height.
 */
.cai-ai-section .elementor-widget-image .elementor-widget-container,
.cai-service-hero-row .elementor-widget-image .elementor-widget-container {
  box-sizing:border-box!important;
  width:min(100%,520px)!important;
  height:330px!important;
  min-height:330px!important;
  max-height:330px!important;
  margin-inline:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.cai-ai-section .elementor-widget-image .elementor-widget-container > img,
.cai-ai-section .elementor-widget-image .elementor-widget-container > a,
.cai-service-hero-row .elementor-widget-image .elementor-widget-container > img,
.cai-service-hero-row .elementor-widget-image .elementor-widget-container > a {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  aspect-ratio:auto!important;
  margin:auto!important;
}
.cai-ai-section .elementor-widget-image .elementor-widget-container > a img,
.cai-service-hero-row .elementor-widget-image .elementor-widget-container > a img {
  width:100%!important;height:100%!important;max-width:100%!important;
  max-height:100%!important;object-fit:contain!important;object-position:center!important;
}
/* The case cards get a smaller, but equally fixed display area. */
.cai-ai-case-card .elementor-widget-image .elementor-widget-container,
.cai-ai-vertical .elementor-widget-image .elementor-widget-container,
.cai-ai-case-grid .elementor-widget-image .elementor-widget-container {
  width:min(100%,360px)!important;
  height:250px!important;
  min-height:250px!important;
  max-height:250px!important;
}
.cai-ai-case-card .elementor-widget-image .elementor-widget-container img,
.cai-ai-vertical .elementor-widget-image .elementor-widget-container img,
.cai-ai-case-grid .elementor-widget-image .elementor-widget-container img {
  width:100%!important;height:100%!important;max-width:100%!important;
  max-height:100%!important;object-fit:contain!important;object-position:center!important;
  aspect-ratio:auto!important;
}
@media(max-width:767px) {
  .cai-ai-section .elementor-widget-image .elementor-widget-container,
  .cai-service-hero-row .elementor-widget-image .elementor-widget-container {
    width:100%!important;height:260px!important;min-height:260px!important;max-height:260px!important;
  }
  .cai-ai-case-card .elementor-widget-image .elementor-widget-container,
  .cai-ai-vertical .elementor-widget-image .elementor-widget-container,
  .cai-ai-case-grid .elementor-widget-image .elementor-widget-container {
    width:100%!important;height:220px!important;min-height:220px!important;max-height:220px!important;
  }
}

/* v1.1.14: One visual standard for all images. Previous max-width rules could
   make full-width sector cards look small while other images looked huge.
   Use equal bounded frames, preserve the complete source image (no cropping). */
.cai-ai-section .elementor-widget-image,
.cai-service-hero-row .elementor-widget-image {width:100%!important;max-width:100%!important}
.cai-ai-section .elementor-widget-image > .elementor-widget-container,
.cai-service-hero-row .elementor-widget-image > .elementor-widget-container,
.cai-ai-case-card .elementor-widget-image > .elementor-widget-container,
.cai-ai-vertical .elementor-widget-image > .elementor-widget-container {
    width:min(100%,520px)!important;
    height:330px!important;min-height:330px!important;max-height:330px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin-inline:auto!important;overflow:hidden!important;
}
.cai-ai-section .elementor-widget-image > .elementor-widget-container img,
.cai-service-hero-row .elementor-widget-image > .elementor-widget-container img {
    box-sizing:border-box!important;
    width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;object-position:center!important;
    aspect-ratio:auto!important;margin:0 auto!important;
}
/* Only in true 2–3-column grids should photographs use a smaller frame. */
.cai-ai-case-grid .elementor-widget-image > .elementor-widget-container,
.cai-ai-cards .elementor-widget-image > .elementor-widget-container {
    width:min(100%,340px)!important;height:235px!important;
    min-height:235px!important;max-height:235px!important;
}
@media(max-width:767px){
 .cai-ai-section .elementor-widget-image > .elementor-widget-container,
 .cai-service-hero-row .elementor-widget-image > .elementor-widget-container,
 .cai-ai-case-card .elementor-widget-image > .elementor-widget-container,
 .cai-ai-vertical .elementor-widget-image > .elementor-widget-container {
    width:100%!important;height:265px!important;min-height:265px!important;max-height:265px!important;
 }
 .cai-ai-case-grid .elementor-widget-image > .elementor-widget-container,
 .cai-ai-cards .elementor-widget-image > .elementor-widget-container {
    height:235px!important;min-height:235px!important;max-height:235px!important;
 }
}

/* 1.1.15 — Single-item sector grid must match adjacent full-width panels.
   Automotive previously inherited the compact 340px 3-column image frame,
   while the following Settore pubblico block used a 520px frame. */
.cai-ai-case-grid > .elementor-container > .elementor-column:only-child{
  box-sizing:border-box!important;flex:0 0 100%!important;width:100%!important;max-width:100%!important;
}
.cai-ai-case-grid > .elementor-container > .elementor-column:only-child .elementor-widget-image > .elementor-widget-container{
  width:min(100%,520px)!important;height:330px!important;min-height:330px!important;max-height:330px!important;
}
@media(max-width:767px){
  .cai-ai-case-grid > .elementor-container > .elementor-column:only-child .elementor-widget-image > .elementor-widget-container{
    width:100%!important;height:265px!important;min-height:265px!important;max-height:265px!important;
  }
}


/* 1.1.18 — Larger native Elementor hero image, without cropping source screenshots. */
.cai-service-hero-row .elementor-widget-image > .elementor-widget-container {
  width:min(100%,600px)!important;height:495px!important;min-height:495px!important;max-height:495px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin-inline:auto!important;overflow:hidden!important;
}
.cai-service-hero-row .elementor-widget-image > .elementor-widget-container img {
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
}
/* Two case-study cards: 50/50 Elementor columns, same-size photos as full-width Automotive. */
.cai-ai-case-grid--2 > .elementor-container > .elementor-column {
  box-sizing:border-box!important;flex:0 0 50%!important;width:50%!important;max-width:50%!important;
}
.cai-ai-case-grid--1 > .elementor-container > .elementor-column {
  box-sizing:border-box!important;flex:0 0 100%!important;width:100%!important;max-width:100%!important;
}
.cai-ai-case-grid--2 .elementor-widget-image > .elementor-widget-container {
  box-sizing:border-box!important;width:min(100%,500px)!important;height:330px!important;
  min-height:330px!important;max-height:330px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin-inline:auto!important;overflow:hidden!important;
}
.cai-ai-case-grid--1 .elementor-widget-image > .elementor-widget-container {
  width:min(100%,520px)!important;height:330px!important;min-height:330px!important;max-height:330px!important;
}
.cai-ai-case-grid--2 .elementor-widget-image > .elementor-widget-container img,
.cai-ai-case-grid--1 .elementor-widget-image > .elementor-widget-container img {
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
}
@media(min-width:768px) and (max-width:1024px) {
  .cai-ai-case-grid--2 > .elementor-container > .elementor-column {flex:0 0 50%!important;width:50%!important;max-width:50%!important}
}
@media(max-width:767px) {
  .cai-service-hero-row .elementor-widget-image > .elementor-widget-container {
    width:100%!important;height:360px!important;min-height:360px!important;max-height:360px!important;
  }
  .cai-ai-case-grid--2 > .elementor-container > .elementor-column,
  .cai-ai-case-grid--1 > .elementor-container > .elementor-column {
    flex:0 0 100%!important;width:100%!important;max-width:100%!important;
  }
  .cai-ai-case-grid--2 .elementor-widget-image > .elementor-widget-container,
  .cai-ai-case-grid--1 .elementor-widget-image > .elementor-widget-container {
    width:100%!important;height:265px!important;min-height:265px!important;max-height:265px!important;
  }
}


/* v1.1.19 — TWO-sector layouts: detect actual Elementor column count, not only
   a generator class. This also repairs existing pages missing --2 (no regeneration).
   Source photos preserve their entire contents and remain comparable to the
   single-card 520 x 330 px Automotive presentation. */
.cai-ai-case-grid > .elementor-container > .elementor-column:first-child:nth-last-child(2),
.cai-ai-case-grid > .elementor-container > .elementor-column:nth-child(2):last-child,
.cai-ai-case-grid.cai-case-columns-2 > .elementor-container > .elementor-column {
    box-sizing:border-box!important;
    flex:0 0 50%!important;
    width:50%!important;
    max-width:50%!important;
    min-width:0!important;
}
.cai-ai-case-grid > .elementor-container > .elementor-column:first-child:nth-last-child(2) .elementor-widget-image,
.cai-ai-case-grid > .elementor-container > .elementor-column:nth-child(2):last-child .elementor-widget-image,
.cai-ai-case-grid.cai-case-columns-2 .elementor-widget-image {
    width:100%!important;
    max-width:100%!important;
}
.cai-ai-case-grid > .elementor-container > .elementor-column:first-child:nth-last-child(2) .elementor-widget-image > .elementor-widget-container,
.cai-ai-case-grid > .elementor-container > .elementor-column:nth-child(2):last-child .elementor-widget-image > .elementor-widget-container,
.cai-ai-case-grid.cai-case-columns-2 .elementor-widget-image > .elementor-widget-container {
    box-sizing:border-box!important;
    width:min(100%,520px)!important;
    max-width:100%!important;
    height:330px!important;
    min-height:330px!important;
    max-height:330px!important;
    margin:0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
}
.cai-ai-case-grid > .elementor-container > .elementor-column:first-child:nth-last-child(2) .elementor-widget-image > .elementor-widget-container img,
.cai-ai-case-grid > .elementor-container > .elementor-column:nth-child(2):last-child .elementor-widget-image > .elementor-widget-container img,
.cai-ai-case-grid.cai-case-columns-2 .elementor-widget-image > .elementor-widget-container img {
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    aspect-ratio:auto!important;
    margin:0 auto!important;
}
@media(max-width:767px){
    .cai-ai-case-grid > .elementor-container > .elementor-column:first-child:nth-last-child(2),
    .cai-ai-case-grid > .elementor-container > .elementor-column:nth-child(2):last-child,
    .cai-ai-case-grid.cai-case-columns-2 > .elementor-container > .elementor-column {
        flex:0 0 100%!important;width:100%!important;max-width:100%!important;
    }
    .cai-ai-case-grid > .elementor-container > .elementor-column:first-child:nth-last-child(2) .elementor-widget-image > .elementor-widget-container,
    .cai-ai-case-grid > .elementor-container > .elementor-column:nth-child(2):last-child .elementor-widget-image > .elementor-widget-container,
    .cai-ai-case-grid.cai-case-columns-2 .elementor-widget-image > .elementor-widget-container {
        width:100%!important;
        height:265px!important;
        min-height:265px!important;
        max-height:265px!important;
    }
}


/* v1.1.20 — Repair two-card sector rows on existing Elementor pages.
 * Avoid the interaction between Elementor's old `elementor-col-33` class,
 * the legacy flex-wrap rules, and 50%-width card overrides: CSS Grid owns
 * the two-column geometry, including the card padding, on desktop/tablet.
 * Structural :has() matches preexisting pages without the --2 class. */
@media (min-width:768px) {
  .cai-ai-case-grid--2 > .elementor-container,
  .cai-ai-case-grid.cai-case-columns-2 > .elementor-container,
  .cai-ai-case-grid > .elementor-container:has(> .elementor-column:first-child:nth-last-child(2)) {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    align-items:stretch!important;
    column-gap:0!important;
    row-gap:0!important;
    width:100%!important;
  }
  .cai-ai-case-grid--2 > .elementor-container > .elementor-column,
  .cai-ai-case-grid.cai-case-columns-2 > .elementor-container > .elementor-column,
  .cai-ai-case-grid > .elementor-container:has(> .elementor-column:first-child:nth-last-child(2)) > .elementor-column {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    padding:12px!important;
    align-self:stretch!important;
  }
}
@media (max-width:767px) {
  .cai-ai-case-grid--2 > .elementor-container,
  .cai-ai-case-grid.cai-case-columns-2 > .elementor-container,
  .cai-ai-case-grid > .elementor-container:has(> .elementor-column:first-child:nth-last-child(2)) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
  .cai-ai-case-grid--2 > .elementor-container > .elementor-column,
  .cai-ai-case-grid.cai-case-columns-2 > .elementor-container > .elementor-column,
  .cai-ai-case-grid > .elementor-container:has(> .elementor-column:first-child:nth-last-child(2)) > .elementor-column {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
  }
}


/* v1.1.25 — White-mode vertical rhythm now matches the compact dark-mode layout.
 * The existing dark-mode rule removes 20-26px margins added by Elementor;
 * previously light mode retained those margins, doubling the gaps between rows.
 * Fix both previously generated pages and newly created layouts, no regeneration. */
html:not(.dark-mode) .elementor .cai-ai-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* Match mobile too: override the legacy `margin:16px` rule at <=767px. */
@media (max-width:767px) {
    html:not(.dark-mode) .elementor .cai-ai-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* v1.1.27: Generated OPAQUE pictures are softly rounded. Real source photos,
 * graphics with alpha and icons retain their existing style. */
.cai-ai-section .elementor-widget-image.cai-ai-generated-opaque img,
.cai-service-hero-row .elementor-widget-image.cai-ai-generated-opaque img {
    border-style:none!important;
    border-radius:12px!important;
}
/* Single centered CTA, immediately following the first editorial block. */
.cai-editorial-cta {width:100%!important;text-align:center!important;}
.cai-editorial-cta .elementor-container,
.cai-editorial-cta .elementor-widget-wrap {justify-content:center!important;}
.cai-editorial-cta .elementor-widget-button,
.cai-editorial-cta .elementor-button-wrapper {width:100%!important;text-align:center!important;}
.cai-editorial-cta .elementor-button {border-radius:100px!important;}
/* The old CTA was spaced as a footer. This CTA is inline with the editorial rhythm. */
.cai-editorial-cta {
    margin-top:0!important;
    margin-bottom:0!important;
    padding:18px 16px 22px!important;
}
.cai-editorial-cta + .elementor-section {
    margin-top:0!important;
    padding-top:24px!important;
}


/* v1.1.28 - Slight breathing room between Elementor editorial sections.
 * Same vertical rhythm in both themes, including old published posts.
 * The CTA is handled separately so it stays tight to the first block. */
html.dark-mode .elementor .cai-ai-section:not(.cai-editorial-cta),
html:not(.dark-mode) .elementor .cai-ai-section:not(.cai-editorial-cta) {
    margin-top:0!important;
    margin-bottom:16px!important;
}
@media (max-width:767px) {
    html.dark-mode .elementor .cai-ai-section:not(.cai-editorial-cta),
    html:not(.dark-mode) .elementor .cai-ai-section:not(.cai-editorial-cta) {
        margin-top:0!important;
        margin-bottom:16px!important;
    }
}

/* v1.1.28 - The contact CTA is ALWAYS centered.
 * Override Elementor template's widget-level align-left rules on desktop,
 * tablet and mobile; also applies to the CTA moved from an old template. */
.elementor .cai-editorial-cta, .cai-editorial-cta {
    box-sizing:border-box!important;
    width:100%!important;
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.cai-editorial-cta > .elementor-container {
    display:flex!important;
    justify-content:center!important;
    width:100%!important;
    max-width:1140px!important;
    margin-inline:auto!important;
}
.cai-editorial-cta > .elementor-container > .elementor-column {
    width:100%!important;
    max-width:100%!important;
    flex:0 0 100%!important;
    margin-inline:auto!important;
}
.cai-editorial-cta .elementor-widget-wrap {
    width:100%!important;
    justify-content:center!important;
    align-items:center!important;
}
.cai-editorial-cta .elementor-widget-button,
.cai-editorial-cta .elementor-widget-premium-addon-button,
.cai-editorial-cta .elementor-widget-button > .elementor-widget-container,
.cai-editorial-cta .elementor-widget-premium-addon-button > .elementor-widget-container,
.cai-editorial-cta .elementor-button-wrapper {
    width:100%!important;
    max-width:none!important;
    text-align:center!important;
    margin-inline:auto!important;
}
.cai-editorial-cta a.elementor-button {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:100%!important;
    margin-inline:auto!important;
    border-radius:100px!important;
}


/* v1.1.29 - A single 32px rhythm for editorial blocks in both light and
 * dark mode.  Old Elementor templates add their own 20-26px outer margins:
 * reset those so gaps cannot accidentally double. Applies to old posts too. */
html.dark-mode .elementor .cai-ai-section:not(.cai-editorial-cta):not(.cai-ai-contact-section),
html:not(.dark-mode) .elementor .cai-ai-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
    margin-top:0!important;
    margin-bottom:32px!important;
}
/* CTA follows the first content row with a matching, controlled interval. */
html.dark-mode .elementor .cai-editorial-cta,
html:not(.dark-mode) .elementor .cai-editorial-cta {
    margin-top:0!important;
    margin-bottom:32px!important;
}
/* The older rule left extra margin on the section after a CTA. */
.elementor .cai-editorial-cta + .elementor-section {
    margin-top:0!important;
}
@media(max-width:767px) {
    html.dark-mode .elementor .cai-ai-section:not(.cai-editorial-cta):not(.cai-ai-contact-section),
    html:not(.dark-mode) .elementor .cai-ai-section:not(.cai-editorial-cta):not(.cai-ai-contact-section),
    html.dark-mode .elementor .cai-editorial-cta,
    html:not(.dark-mode) .elementor .cai-editorial-cta {
        margin-top:0!important;
        margin-bottom:32px!important;
    }
}
/* Normal, subtle rounding for AI-generated photos, with or without saved
 * Elementor widget radius (does not alter transparent/source images). */
.cai-ai-section .elementor-widget-image.cai-ai-generated-opaque img,
.cai-service-hero-row .elementor-widget-image.cai-ai-generated-opaque img {
    border-style:none!important;
    border-radius:12px!important;
}


/* v1.1.30 — Full-width editorial blocks (heading > image > text).
 * These are the only rows where the heading should be centered: split
 * two-column blocks keep their own heading alignment. Apply to old posts. */
.elementor .cai-ai-section.cai-ai-vertical .elementor-widget-heading,
.elementor .cai-ai-section.cai-ai-vertical .elementor-widget-heading > .elementor-widget-container,
.elementor .cai-ai-section.cai-ai-vertical .elementor-widget-heading .elementor-heading-title {
    text-align:center!important;
}
/* A single, clearly visible but moderate radius on Elementor editorial
 * photographs, regardless of the older 12px / 14px rules, cached Elementor
 * per-widget CSS or whether an image was sourced or generated. The photo
 * remains borderless. This does not affect text, icons or regular site media. */
.elementor .cai-ai-section .elementor-widget-image img,
.elementor .cai-ai-section .elementor-widget-image a img,
.elementor .cai-service-hero-row .elementor-widget-image img {
    border:0!important;
    border-radius:20px!important;
}


/* v1.1.31 — Round the visible bitmap, not an oversized fixed Elementor slot.
 * The old 520x330 frame forced image width AND height to 100% with
 * object-fit:contain. That adds invisible letterbox areas; rounding this
 * stretched img box causes uneven-looking corners on the actual photo.
 * Retain the fixed slot for page geometry but let the image's own aspect
 * ratio determine its displayed rectangle; round that rectangle equally. */
html body .elementor .cai-ai-section .elementor-widget-image.elementor-element > .elementor-widget-container,
html body .elementor .cai-service-hero-row .elementor-widget-image.elementor-element > .elementor-widget-container {
    overflow:visible!important;
}
html body .elementor .cai-ai-section .elementor-widget-image.elementor-element > .elementor-widget-container > a,
html body .elementor .cai-service-hero-row .elementor-widget-image.elementor-element > .elementor-widget-container > a {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
}
html body .elementor .cai-ai-section .elementor-widget-image.elementor-element > .elementor-widget-container > img,
html body .elementor .cai-ai-section .elementor-widget-image.elementor-element > .elementor-widget-container > a img,
html body .elementor .cai-service-hero-row .elementor-widget-image.elementor-element > .elementor-widget-container > img,
html body .elementor .cai-service-hero-row .elementor-widget-image.elementor-element > .elementor-widget-container > a img {
    box-sizing:border-box!important;
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:100%!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    border:0!important;
    border-radius:24px!important;
}

/* v1.1.31 — Alternate ONLY the two dark canvas shades, with no third-colour
 * horizontal gutter. In v1.1.29 the 32px margin exposed a different parent
 * background. Replace that margin with inner padding (>= 40px between rows)
 * so the neighbouring panels meet seamlessly. Light mode is untouched. */
html.dark-mode .elementor > .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section),
html.dark-mode .elementor-section-wrap > .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
    box-sizing:border-box!important;
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:24px!important;
    padding-bottom:24px!important;
    background-color:#292929!important;
    border:0!important;
    box-shadow:none!important;
}
/* Count editorial siblings only: inserting the CTA must not break alternation. */
html.dark-mode .elementor > .cai-ai-section:nth-child(even of .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section)),
html.dark-mode .elementor-section-wrap > .cai-ai-section:nth-child(even of .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section)) {
    background-color:#353535!important;
}
/* Elementor saves independent white/grey backgrounds on inner columns.
 * Let ordinary rows inherit the panel colour, not form a third dark stripe;
 * keep the darker inset styling on multi-card use-case grids. */
html.dark-mode .elementor > .cai-ai-section:not(.cai-ai-case-grid):not(.cai-ai-cards) > .elementor-container,
html.dark-mode .elementor > .cai-ai-section:not(.cai-ai-case-grid):not(.cai-ai-cards) > .elementor-container > .elementor-column,
html.dark-mode .elementor > .cai-ai-section:not(.cai-ai-case-grid):not(.cai-ai-cards) > .elementor-container > .elementor-column > .elementor-widget-wrap,
html.dark-mode .elementor-section-wrap > .cai-ai-section:not(.cai-ai-case-grid):not(.cai-ai-cards) > .elementor-container,
html.dark-mode .elementor-section-wrap > .cai-ai-section:not(.cai-ai-case-grid):not(.cai-ai-cards) > .elementor-container > .elementor-column,
html.dark-mode .elementor-section-wrap > .cai-ai-section:not(.cai-ai-case-grid):not(.cai-ai-cards) > .elementor-container > .elementor-column > .elementor-widget-wrap {
    background-color:transparent!important;
    box-shadow:none!important;
}
/* CTA is an extension of the preceding first row: no new coloured bar. */
html.dark-mode .elementor > .cai-editorial-cta,
html.dark-mode .elementor-section-wrap > .cai-editorial-cta {
    margin:0!important;
    padding-top:18px!important;
    padding-bottom:22px!important;
    background-color:#292929!important;
    border:0!important;
    box-shadow:none!important;
}
@media(max-width:767px) {
    html.dark-mode .elementor > .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section),
    html.dark-mode .elementor-section-wrap > .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
        margin-top:0!important;
        margin-bottom:0!important;
        padding-top:20px!important;
        padding-bottom:20px!important;
    }
}


/* v1.1.32 — Advanced articles use ORIGINAL, unabridged sections as 3-column
 * opening rows. No fixed-height cards, clamping, ellipses or duplicated detail
 * sections. The images are the attachments already prepared for those sections. */
html body .elementor .cai-ai-section.cai-advanced-original-grid > .elementor-container {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:16px!important;
    width:100%!important;
    max-width:1140px!important;
}
html body .elementor .cai-ai-section.cai-advanced-original-grid > .elementor-container > .elementor-column {
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    padding:8px!important;
}
html body .elementor .cai-ai-section.cai-advanced-original-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:stretch!important;
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    padding:20px!important;
    border-radius:12px!important;
    overflow:visible!important;
}
html body .elementor .cai-ai-section.cai-advanced-original-grid .elementor-widget-text-editor,
html body .elementor .cai-ai-section.cai-advanced-original-grid .elementor-widget-text-editor .elementor-widget-container,
html body .elementor .cai-ai-section.cai-advanced-original-grid .elementor-widget-text-editor p {
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    display:block!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
    text-overflow:clip!important;
}
html body .elementor .cai-ai-section.cai-advanced-original-grid .elementor-widget-heading .elementor-heading-title {
    text-align:center!important;
    overflow-wrap:break-word!important;
}
html body .elementor .cai-ai-section.cai-advanced-original-grid .elementor-widget-image > .elementor-widget-container {
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:12px auto 18px!important;
    display:block!important;
    overflow:visible!important;
}
html body .elementor .cai-ai-section.cai-advanced-original-grid .elementor-widget-image.elementor-element > .elementor-widget-container > img,
html body .elementor .cai-ai-section.cai-advanced-original-grid .elementor-widget-image.elementor-element > .elementor-widget-container > a img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:260px!important;
    object-fit:contain!important;
    aspect-ratio:auto!important;
    border:0!important;
    border-radius:24px!important;
}
html:not(.dark-mode) .cai-advanced-original-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
    background-color:#f3f8fd!important;
}
html.dark-mode .cai-advanced-original-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
    background-color:#404040!important;
}
@media(max-width:960px) {
    html body .elementor .cai-ai-section.cai-advanced-original-grid > .elementor-container {
        grid-template-columns:minmax(0,1fr)!important;
    }
}


/* v1.1.33 — Separate introductory explainer cards, never teasers for main sections.
 * 3/6 text-only cards, balanced rows; five full image+text blocks follow unchanged.
 * No clamp, ellipsis, forced content height, or text truncation. */
html body .elementor .cai-advanced-explainer-grid > .elementor-container {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
  max-width:1140px!important;
  width:100%!important;
}
html body .elementor .cai-advanced-explainer-grid > .elementor-container > .elementor-column {
  width:100%!important;
  max-width:100%!important;
  flex:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding:8px!important;
}
html body .elementor .cai-advanced-explainer-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  padding:24px!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
}
html:not(.dark-mode) body .elementor .cai-advanced-explainer-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
  background-color:#f3f8fd!important;
}
html.dark-mode body .elementor .cai-advanced-explainer-grid > .elementor-container > .elementor-column > .elementor-widget-wrap {
  background-color:#383838!important;
}
html body .elementor .cai-advanced-explainer-grid .elementor-widget-text-editor,
html body .elementor .cai-advanced-explainer-grid .elementor-widget-text-editor .elementor-widget-container,
html body .elementor .cai-advanced-explainer-grid .elementor-widget-text-editor p {
  font-size:17px;
  line-height:1.55;
  text-align:left;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
  text-overflow:clip!important;
}
html body .elementor .cai-advanced-explainer-grid .elementor-widget-text-editor p:last-child {margin-bottom:0!important}
@media(max-width:960px){
  html body .elementor .cai-advanced-explainer-grid > .elementor-container {
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* v1.1.34 — Introductory explainer grid in the established X-Bees visual style.
 * DESIGN ONLY: the 3/6 original copy paragraphs are untouched, no titles,
 * images, clamping or changes to the independently configured main blocks.
 * Colours from the X-Bees reference: #eee / #424242 cards, alternating
 * #0070ba and #94c9ff 2px borders; equal height per row. */
html body .elementor .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
    box-sizing:border-box!important;
    width:100%!important;
    margin:0!important;
    padding:18px 16px 16px!important;
    background:#fff!important;
    border:0!important;
    box-shadow:none!important;
}
html.dark-mode body .elementor .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
    background:#303030!important;
}
/* With six explanations, the second row gets the reference's roomy gap. */
html body .elementor .cai-ai-section.cai-advanced-explainer-grid + .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
    padding-top:74px!important;
}
html body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:20px!important;
    align-items:stretch!important;
    max-width:1140px!important;
    width:100%!important;
    background:transparent!important;
}
html body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container > .elementor-column {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    align-self:stretch!important;
}
html body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container > .elementor-column.elementor-element > .elementor-widget-wrap.elementor-element-populated {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-height:230px!important;
    height:100%!important;
    padding:28px 24px!important;
    margin:0!important;
    border-style:solid!important;
    border-width:2px!important;
    border-color:#0070ba!important;
    border-radius:9px!important;
    box-shadow:none!important;
    background:#eee!important;
}
html.dark-mode body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container > .elementor-column.elementor-element > .elementor-widget-wrap.elementor-element-populated {
    background:#424242!important;
}
/* Blue/light-blue border sequence continues across both rows: B L B / L B L. */
html body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container > .elementor-column:nth-child(even).elementor-element > .elementor-widget-wrap.elementor-element-populated,
html body .elementor .cai-ai-section.cai-advanced-explainer-grid + .cai-ai-section.cai-advanced-explainer-grid > .elementor-container > .elementor-column:nth-child(odd).elementor-element > .elementor-widget-wrap.elementor-element-populated {
    border-color:#94c9ff!important;
}
html body .elementor .cai-ai-section.cai-advanced-explainer-grid + .cai-ai-section.cai-advanced-explainer-grid > .elementor-container > .elementor-column:nth-child(even).elementor-element > .elementor-widget-wrap.elementor-element-populated {
    border-color:#0070ba!important;
}
html body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor,
html body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor > .elementor-widget-container,
html body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor p {
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    text-align:center!important;
    font-size:20px!important;
    font-weight:400!important;
    line-height:1.4!important;
    letter-spacing:normal!important;
    overflow-wrap:break-word!important;
    white-space:normal!important;
    text-overflow:clip!important;
    display:block!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
}
html:not(.dark-mode) body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor,
html:not(.dark-mode) body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor * { color:#111!important; }
html.dark-mode body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor,
html.dark-mode body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor * { color:#fff!important; }
@media (min-width:768px) and (max-width:1050px) {
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media (max-width:767px) {
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container {
        grid-template-columns:minmax(0,1fr)!important;
        gap:18px!important;
    }
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
        padding:12px 12px 12px!important;
        margin:0!important;
    }
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid + .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
        padding-top:18px!important;
    }
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid > .elementor-container > .elementor-column.elementor-element > .elementor-widget-wrap.elementor-element-populated {
        min-height:0!important;
        padding:22px 18px!important;
    }
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor,
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor > .elementor-widget-container,
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid .elementor-widget-text-editor p {
        font-size:18px!important;
        line-height:1.48!important;
    }
}
/* The shared dark-theme engine alternates complete editorial sections using
 * :nth-child(... of ...). Keep both explainer rows on ONE canvas, as in X-Bees;
 * alternate only their card borders, not the background between the rows. */
html.dark-mode body .elementor > .cai-ai-section.cai-advanced-explainer-grid.elementor-section:nth-child(even of .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section)),
html.dark-mode body .elementor-section-wrap > .cai-ai-section.cai-advanced-explainer-grid.elementor-section:nth-child(even of .cai-ai-section.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section)) {
    background-color:#303030!important;
}


/* v1.1.35 — Intro grid vertical rhythm.
 * The six explanations stay in two rows of three; reduce the previously
 * oversized 74px space between those rows to 18px. Reserve extra whitespace
 * AFTER the last row before the first ordinary editorial block. Applies
 * equally to pages with 3 or 6 explanations; no text/layout rebuilding. */
html body .elementor .cai-ai-section.cai-advanced-explainer-grid + .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
    padding-top:18px!important;
}
/* 16px after the first row + 18px before the second = 34px total. */
html body .elementor .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(:has(+ .cai-ai-section.cai-advanced-explainer-grid)):not(.cai-editorial-cta):not(.cai-ai-contact-section) {
    padding-bottom:76px!important;
}
@media (max-width:767px) {
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid + .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(.cai-editorial-cta):not(.cai-ai-contact-section) {
        padding-top:16px!important;
    }
    html body .elementor .cai-ai-section.cai-advanced-explainer-grid.elementor-section:not(:has(+ .cai-ai-section.cai-advanced-explainer-grid)):not(.cai-editorial-cta):not(.cai-ai-contact-section) {
        padding-bottom:52px!important;
    }
}


/* v1.1.36 — Semantic text emphasis for generated Elementor editorial content.
 * The theme sometimes resets font weights in widgets; preserve readable
 * highlights in both colour schemes, without changing typography sizes. */
html body .elementor .cai-ai-section .elementor-widget-text-editor strong,
html body .elementor .cai-ai-section .elementor-widget-text-editor b {
    font-weight:700!important;
}
html body .elementor .cai-ai-section .elementor-widget-text-editor em,
html body .elementor .cai-ai-section .elementor-widget-text-editor i {
    font-style:italic!important;
}


/* v1.1.39 — Shared Elementor hero for ALL generated pages and articles. */
html body .elementor .cai-ai-section.cai-service-hero .elementor-widget-heading,
html body .elementor .cai-ai-section.cai-service-hero .elementor-widget-divider {
    width:100%!important;
    text-align:center!important;
}
html body .elementor .cai-ai-section.cai-service-hero .elementor-heading-title {
    font-size:clamp(27px,3vw,36px)!important;
    text-align:center!important;
    line-height:1.22!important;
    font-weight:750!important;
}
html body .elementor .cai-ai-section.cai-service-hero .elementor-divider {
    display:flex!important;
    justify-content:center!important;
}
html body .elementor .cai-ai-section.cai-service-hero .elementor-divider-separator {
    margin-left:auto!important;
    margin-right:auto!important;
}
html body .elementor .cai-ai-section.cai-service-hero .elementor-widget-spacer {
    display:block!important;
}
