/* ——— WordPress / Elementor integration ——— */

/* On the live site Elementor's wrappers are invisible, so sections sit directly in #dag-home as in the design
   (sticky header, full-bleed sections). Inside the Elementor editor they stay boxes so each section can be clicked. */
body:not(.elementor-editor-active) #dag-home :is(.elementor, .elementor-inner, .elementor-section-wrap, .elementor-section, .elementor-container, .elementor-row, .elementor-column, .elementor-column-wrap, .elementor-widget-wrap, .e-con, .e-con-inner, .elementor-element, .elementor-widget-container) {
  display: contents;
}
#dag-home .elementor-section.elementor-section-full_width > .elementor-container,
#dag-home .e-con { max-width: none; padding: 0; gap: 0; }
#dag-home .elementor-widget:not(:last-child) { margin-bottom: 0; margin-block-end: 0; }
#dag-home .elementor-column-gap-no > .elementor-column > .elementor-element-populated,
#dag-home .elementor-column-gap-no > .elementor-column > .elementor-widget-wrap { padding: 0; }
body.elementor-editor-active #dag-home .reveal { opacity: 1 !important; transform: none !important; }
body.elementor-editor-active #dag-home .nav { position: relative; }

/* The theme has its own WhatsApp button; hide the Joinchat plugin's duplicate */
body.dag-theme .joinchat { display: none !important; }

/* Admin bar */
.admin-bar #dag-home .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #dag-home .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar #dag-home .nav { top: 0; } }

/* Fallback header when the header template is missing */
#dag-home .dag-fallback-nav .nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--max, 1240px); margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem); }
#dag-home .dag-fallback-nav .brand { color: #fff; font-family: var(--font-h); font-weight: 700; }

/* ——— Contact Form 7 inside the design ——— */
#dag-home .wpcf7 { margin: 0; }
#dag-home .wpcf7 form { margin: 0; }
#dag-home .wpcf7 .hidden-fields-container, #dag-home .wpcf7 fieldset.hidden-fields-container { display: none; border: 0; padding: 0; margin: 0; }
#dag-home .wpcf7-form-control-wrap { display: block; position: relative; width: 100%; }
#dag-home .field-check .wpcf7-form-control-wrap { flex: 1; }
#dag-home .field-check .wpcf7-list-item { display: block; margin: 0; }
#dag-home .field-check .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 0.8rem; font-weight: 500; line-height: 1.5; color: #a8a196; }
#dag-home .field-check .wpcf7-list-item-label::before, #dag-home .field-check .wpcf7-list-item-label::after { content: none; }
#dag-home .wpcf7-not-valid-tip { display: block; margin-top: 0.35rem; color: #ff8a7a; font-size: 0.78rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
#dag-home .field .wpcf7-not-valid { border-color: #ff8a7a !important; }
#dag-home .form input.btn { width: 100%; -webkit-appearance: none; appearance: none; font: inherit; font-family: var(--font-b); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.06em; }
#dag-home .form .wpcf7-spinner { display: none; }
#dag-home .wpcf7 form.submitting .btn { opacity: 0.65; pointer-events: none; }
#dag-home .wpcf7 form .wpcf7-response-output { margin: 0.9rem 0 0; padding: 0.75rem 1rem; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent-bright) !important; font-size: 0.9rem; font-weight: 600; }
#dag-home .wpcf7 form.init .wpcf7-response-output, #dag-home .wpcf7 form.resetting .wpcf7-response-output, #dag-home .wpcf7 form.submitting .wpcf7-response-output { display: none; }
#dag-home .wpcf7 form:is(.invalid, .unaccepted, .spam, .failed, .aborted, .payment-required) .wpcf7-response-output { border-color: #ff8a7a; color: #ff8a7a !important; }
#dag-home .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
