/**
 * Satellite UI Kit 1.2.0 — BDO (verde bosco + oro satinato).
 * Scope: SOLO body.suik-active. Non sostituisce pagine, template o sezioni Elementor.
 * Non interviene sui moduli custom di quotazione dell'oro o iframe.
 */

/* Canvas globale: disattivo di default perché i temi possono gestire i propri sfondi. */
body.suik-active.suik-page_canvas { background: var(--bdo-canvas); }

/* Titoli e testi Elementor: preserva i colori delle singole sezioni (anche scure). */
body.suik-active.suik-typography .elementor-widget-heading .elementor-heading-title {
  font-family: var(--bdo-font-display) !important;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.12;
  text-wrap: pretty;
}
body.suik-active.suik-typography .elementor-widget-text-editor,
body.suik-active.suik-typography .elementor-widget-text-editor p,
body.suik-active.suik-typography .elementor-widget-text-editor li {
  font-family: var(--bdo-font-body) !important;
  line-height: 1.72;
}
body.suik-active.suik-typography .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* CTA standard: non modifica i bottoni dei moduli su misura. */
body.suik-active.suik-buttons .elementor-widget-button .elementor-button,
body.suik-active.suik-buttons .wp-block-button__link {
  font-family: var(--bdo-font-body);
  font-weight: 650;
  letter-spacing: .01em;
  background: var(--bdo-forest);
  color: var(--bdo-white);
  border: 1px solid var(--bdo-forest);
  border-radius: var(--suik-radius);
  min-height: 44px;
  padding: 13px 23px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
body.suik-active.suik-buttons .elementor-widget-button .elementor-button:hover,
body.suik-active.suik-buttons .wp-block-button__link:hover {
  background: var(--bdo-ink-soft);
  border-color: var(--bdo-ink-soft);
  color: var(--bdo-white);
  box-shadow: 0 8px 24px rgba(29,37,33,.12);
  transform: translateY(-1px);
}
body.suik-active .elementor-widget-button .elementor-button:focus-visible,
body.suik-active .wp-block-button__link:focus-visible {
  outline: 3px solid var(--bdo-gold);
  outline-offset: 3px;
}

/* Link nel testo. */
body.suik-active.suik-links .elementor-widget-text-editor a:not(.elementor-button) {
  color: var(--bdo-gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}
body.suik-active.suik-links .elementor-widget-text-editor a:not(.elementor-button):hover {
  color: var(--bdo-forest);
}

/* Solo form Elementor Pro e CF7, non campi custom di calcolatori o quotazioni. */
body.suik-active.suik-forms .elementor-form input.elementor-field-textual,
body.suik-active.suik-forms .elementor-form textarea.elementor-field-textual,
body.suik-active.suik-forms .elementor-form select.elementor-field-textual,
body.suik-active.suik-forms .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
body.suik-active.suik-forms .wpcf7 textarea,
body.suik-active.suik-forms .wpcf7 select {
  font-family: var(--bdo-font-body);
  background: var(--bdo-white);
  border: 1px solid var(--bdo-border);
  border-radius: var(--suik-radius);
  color: var(--bdo-ink);
  min-height: 44px;
  box-shadow: none;
}
body.suik-active.suik-forms .elementor-form .elementor-field:focus-visible,
body.suik-active.suik-forms .wpcf7 input:focus-visible,
body.suik-active.suik-forms .wpcf7 textarea:focus-visible,
body.suik-active.suik-forms .wpcf7 select:focus-visible {
  outline: 2px solid var(--bdo-gold);
  outline-offset: 1px;
}

/* Card Elementor: modulo disattivato di default. */
body.suik-active.suik-cards .elementor-widget-icon-box > .elementor-widget-container,
body.suik-active.suik-cards .elementor-widget-image-box > .elementor-widget-container {
  height: 100%;
  padding: 25px;
  background: var(--bdo-white);
  border: 1px solid var(--bdo-border);
  border-radius: calc(var(--suik-radius) + 4px);
  box-shadow: 0 12px 32px rgba(29,37,33,.055);
}

/* Nessun cambiamento a loghi, iframe e immagini del calcolatore. */
body.suik-active.suik-media .elementor-widget-image img { border-radius: var(--suik-radius); }

/* Menu Elementor: non riscrive posizionamento, sticky o hamburger. */
body.suik-active.suik-navigation .elementor-nav-menu .elementor-item {
  font-family: var(--bdo-font-body);
  font-weight: 600;
  transition: color 160ms ease;
}
body.suik-active.suik-navigation .elementor-nav-menu .elementor-item:hover,
body.suik-active.suik-navigation .elementor-nav-menu .elementor-item.elementor-item-active {
  color: var(--bdo-gold-deep);
}

/* Classi opzionali: applicarle UNA SOLA VOLTA a container selezionati in Elementor. */
body.suik-active .suik-container {
  max-width: var(--suik-max-width);
  width: calc(100% - 36px);
  margin-inline: auto;
}
body.suik-active .bdo-section {
  background: var(--bdo-cream);
  border-radius: calc(var(--suik-radius) + 10px);
  padding: clamp(28px, 4vw, 62px);
}
body.suik-active .bdo-section--dark {
  background: var(--bdo-forest);
  color: var(--bdo-white);
}
body.suik-active .bdo-section--dark :is(h1,h2,h3,h4,p,li) {
  color: var(--bdo-white);
}
body.suik-active .bdo-panel,
body.suik-active .suik-panel {
  background: var(--bdo-white);
  border: 1px solid var(--bdo-border);
  border-radius: calc(var(--suik-radius) + 6px);
  box-shadow: 0 14px 44px rgba(29,37,33,.065);
  padding: clamp(18px, 2.6vw, 34px);
}
body.suik-active .bdo-eyebrow {
  font-family: var(--bdo-font-body);
  color: var(--bdo-gold-deep);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: .76rem;
}
body.suik-active .bdo-prose { max-width: 72ch; }
body.suik-active .bdo-button-outline.elementor-widget-button .elementor-button,
body.suik-active .elementor-widget-button.bdo-button-outline .elementor-button {
  background: transparent;
  color: var(--bdo-forest);
  border-color: var(--bdo-gold);
  box-shadow: none;
}
body.suik-active .bdo-button-outline.elementor-widget-button .elementor-button:hover,
body.suik-active .elementor-widget-button.bdo-button-outline .elementor-button:hover {
  background: var(--bdo-gold-light);
  color: var(--bdo-ink);
}

/* Shortcode facoltativo. Nessuna card viene inserita automaticamente. */
body.suik-active .bdo-contact-card {
  font-family: var(--bdo-font-body);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--bdo-cream);
  color: var(--bdo-ink);
  border: 1px solid var(--bdo-border);
  border-radius: calc(var(--suik-radius) + 6px);
  padding: clamp(20px, 3vw, 36px);
}
body.suik-active .bdo-contact-card h3 {
  font-family: var(--bdo-font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0;
}
body.suik-active .bdo-contact-card p { margin: 0; }
body.suik-active .bdo-contact-card a { color: var(--bdo-gold-deep); text-decoration: underline; text-underline-offset: 3px; }
body.suik-active .bdo-contact-card .bdo-contact-card__wa {
  display: inline-block;
  padding: 12px 19px;
  background: var(--bdo-forest);
  color: #fff;
  text-decoration: none;
  border-radius: var(--suik-radius);
}

@media (max-width: 767px) {
  body.suik-active.suik-cards .elementor-widget-icon-box > .elementor-widget-container,
  body.suik-active.suik-cards .elementor-widget-image-box > .elementor-widget-container { padding: 19px; }
  body.suik-active .bdo-section { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.suik-active.suik-buttons .elementor-widget-button .elementor-button,
  body.suik-active.suik-buttons .wp-block-button__link { transition: none; transform: none; }
}
