/*
 * AlergoPraxis – stiluri principale
 * Replică designul original (Tailwind) peste widget-urile native Elementor.
 * Culorile se schimbă din Personalizare > Culori AlergoPraxis (variabilele --ap-*).
 */

:root {
  --ap-primary: #026fd7;
  --ap-primary-fg: #fefcf4;
  --ap-bg: #fcfaf1;
  --ap-fg: #0c1d23;
  --ap-card: #ffffff;
  --ap-secondary: #e5f3ff;
  --ap-secondary-fg: #002a67;
  --ap-muted: #576574;
  --ap-accent: #d2eaff;
  --ap-border: #d1dff2;
  --ap-star: #f59e0b;
  --ap-radius: 0.75rem;
  --ap-font-display: "Outfit", sans-serif;
  --ap-font-body: "DM Sans", sans-serif;
  --ap-maxw: 80rem;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.ap-theme {
  margin: 0;
  background: var(--ap-bg);
  color: var(--ap-fg);
  font-family: var(--ap-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  --kit-widget-spacing: 0px;
}

.ap-theme h1, .ap-theme h2, .ap-theme h3,
.ap-theme h4, .ap-theme h5, .ap-theme h6 {
  font-family: var(--ap-font-display);
  color: var(--ap-fg);
  margin: 0;
}

.ap-theme img { max-width: 100%; height: auto; }
.ap-theme a { text-decoration: none; }
.ap-theme .ap-main { display: block; min-height: 40vh; }
.ap-theme .ap-main > .ap-content,
.ap-theme .ap-main > article { max-width: none; }

.ap-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ap-primary); color: var(--ap-primary-fg); padding: .5rem 1rem;
}
.ap-skip:focus { left: 0; }

/* Pagini normale WordPress (fără Elementor) */
.ap-plain { max-width: 48rem; margin: 0 auto; padding: 4rem 1rem; }
.ap-plain h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.ap-plain a { color: var(--ap-primary); }
.ap-notfound { text-align: center; padding: 6rem 1rem; }
.ap-notfound h1 { font-size: 4.5rem; font-weight: 700; }

/* ---------- Secțiuni și layout (containere Elementor) ---------- */
.ap-theme .e-con.ap-sec {
  width: 100%;
  padding: 5rem 1rem;
  gap: 0;
  margin: 0;
  align-items: stretch;
  overflow: hidden;
}
.ap-theme .e-con.ap-sec--sm { padding-top: 4rem; padding-bottom: 4rem; }
.ap-theme .e-con.ap-sec--bg { background: var(--ap-bg); }
.ap-theme .e-con.ap-sec--secondary { background: var(--ap-secondary); }
.ap-theme .e-con.ap-sec--primary { background: var(--ap-primary); color: var(--ap-primary-fg); }

.ap-theme .e-con.ap-inner {
  width: 100%;
  max-width: var(--ap-maxw);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  gap: 0;
}

.ap-theme .e-con.ap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: 0;
  width: 100%;
}
.ap-theme .e-con.ap-grid > .elementor-element { min-width: 0; }
@media (min-width: 640px) {
  .ap-theme .e-con.ap-grid--3,
  .ap-theme .e-con.ap-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-theme .e-con.ap-grid--stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .ap-theme .e-con.ap-grid--2md,
  .ap-theme .e-con.ap-grid--3md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-theme .e-con.ap-grid--3md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-theme .e-con.ap-grid--footer { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .ap-theme .e-con.ap-grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
}
@media (min-width: 1024px) {
  .ap-theme .e-con.ap-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
  .ap-theme .e-con.ap-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-theme .e-con.ap-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ap-theme .e-con.ap-sec--hero { padding-top: 6rem; padding-bottom: 6rem; }
}

.ap-theme .e-con.ap-stack { display: flex; flex-direction: column; gap: 0; padding: 0; }
.ap-theme .e-con.ap-row {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
  gap: 1rem; padding: 0; width: 100%;
}
.ap-theme .e-con.ap-center { text-align: center; align-items: center; }
.ap-theme .e-con.ap-center .elementor-widget { max-width: 100%; }

/* Spații verticale între elemente (echivalent space-y / mt-*) */
.ap-theme .ap-mt-1 { margin-top: .25rem !important; }
.ap-theme .ap-mt-2 { margin-top: .5rem !important; }
.ap-theme .ap-mt-3 { margin-top: .75rem !important; }
.ap-theme .ap-mt-4 { margin-top: 1rem !important; }
.ap-theme .ap-mt-5 { margin-top: 1.25rem !important; }
.ap-theme .ap-mt-6 { margin-top: 1.5rem !important; }
.ap-theme .ap-mt-8 { margin-top: 2rem !important; }
.ap-theme .ap-mb-3 { margin-bottom: .75rem !important; }
.ap-theme .ap-mb-4 { margin-bottom: 1rem !important; }
.ap-theme .ap-mb-5 { margin-bottom: 1.25rem !important; }
.ap-theme .ap-mb-12 { margin-bottom: 3rem !important; }

/* ---------- Tipografie ---------- */
.ap-theme .ap-eyebrow .elementor-heading-title {
  font-family: var(--ap-font-body);
  font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .025em;
  color: var(--ap-primary);
}

.ap-theme .ap-title .elementor-heading-title {
  font-family: var(--ap-font-display);
  font-size: 1.875rem; line-height: 2.25rem; font-weight: 700;
  color: var(--ap-fg);
}
@media (min-width: 640px) {
  .ap-theme .ap-title .elementor-heading-title { font-size: 2.25rem; line-height: 2.5rem; }
}

.ap-theme .ap-title--hero .elementor-heading-title {
  font-size: 2.25rem; line-height: 1.25; font-weight: 800; text-wrap: balance;
}
@media (min-width: 640px) { .ap-theme .ap-title--hero .elementor-heading-title { font-size: 3rem; } }
@media (min-width: 1024px) { .ap-theme .ap-title--hero .elementor-heading-title { font-size: 3.75rem; } }

.ap-theme .ap-title--page .elementor-heading-title {
  font-size: 2.25rem; line-height: 2.5rem; font-weight: 700;
}
@media (min-width: 640px) { .ap-theme .ap-title--page .elementor-heading-title { font-size: 3rem; line-height: 1; } }

.ap-theme .ap-title--sm .elementor-heading-title { font-size: 1.5rem; line-height: 2rem; }
.ap-theme .ap-title--light .elementor-heading-title { color: var(--ap-primary-fg); }
.ap-theme .ap-title--center .elementor-heading-title { text-align: center; }

.ap-theme .ap-h3 .elementor-heading-title {
  font-family: var(--ap-font-display);
  font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--ap-fg);
}
.ap-theme .ap-h3--sm .elementor-heading-title { font-size: 1rem; line-height: 1.5rem; }

.ap-theme .ap-text {
  color: var(--ap-muted);
  font-family: var(--ap-font-body);
  font-size: 1rem; line-height: 1.5rem;
}
.ap-theme .ap-text p { margin: 0; color: inherit; font: inherit; }
.ap-theme .ap-text p + p { margin-top: .75rem; }
.ap-theme .ap-text--lg { font-size: 1.125rem; line-height: 1.75rem; }
.ap-theme .ap-text--sm { font-size: .875rem; line-height: 1.625; }
.ap-theme .ap-text--xs { font-size: .75rem; line-height: 1rem; }
.ap-theme .ap-text--light { color: var(--ap-primary-fg); opacity: .9; }
.ap-theme .ap-text--narrow .elementor-widget-container { max-width: 42rem; }
.ap-theme .ap-center .ap-text--narrow .elementor-widget-container { margin-left: auto; margin-right: auto; }
.ap-theme .ap-text--fg { color: var(--ap-fg); }
.ap-theme .ap-text a { color: var(--ap-primary); }

/* ---------- Butoane ---------- */
.ap-theme .ap-btn .elementor-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ap-font-body);
  font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  padding: .875rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: var(--ap-primary);
  color: var(--ap-primary-fg);
  fill: var(--ap-primary-fg);
  box-shadow: none;
  transition: opacity .2s, background .2s, color .2s;
}
.ap-theme .ap-btn .elementor-button:hover,
.ap-theme .ap-btn .elementor-button:focus { opacity: .9; color: var(--ap-primary-fg); }
.ap-theme .ap-btn--shadow .elementor-button { box-shadow: 0 10px 15px -3px rgba(2,111,215,.2), 0 4px 6px -4px rgba(2,111,215,.2); }
.ap-theme .ap-btn--outline .elementor-button {
  background: var(--ap-bg); color: var(--ap-fg); border-color: var(--ap-border);
}
.ap-theme .ap-btn--outline .elementor-button:hover { background: var(--ap-accent); color: var(--ap-fg); opacity: 1; }
.ap-theme .ap-btn--white .elementor-button {
  background: var(--ap-bg); color: var(--ap-primary); padding: 1rem 2rem;
}
.ap-theme .ap-btn--white .elementor-button:hover { background: var(--ap-card); color: var(--ap-primary); opacity: 1; }
.ap-theme .ap-btn--lg .elementor-button { padding: 1rem 2rem; }
.ap-theme .ap-btn--sm .elementor-button { padding: .625rem 1.25rem; }

.ap-theme .ap-link .elementor-button {
  background: transparent; color: var(--ap-primary); padding: 0; border: 0; border-radius: 0;
  font-size: .875rem; font-weight: 600; box-shadow: none;
}
.ap-theme .ap-link .elementor-button:hover { background: transparent; color: var(--ap-primary); opacity: 1; }
.ap-theme .ap-card:hover .ap-link .elementor-button-text { text-decoration: underline; }

/* ---------- Carduri ---------- */
.ap-theme .e-con.ap-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.ap-theme .e-con.ap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.ap-theme .e-con.ap-card--static:hover { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ap-theme .e-con.ap-card--row { flex-direction: row; gap: 1.25rem; align-items: flex-start; }
.ap-theme .e-con.ap-card--row:hover { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ap-theme .e-con.ap-card--media { padding: 0; }
.ap-theme .e-con.ap-card--media:hover { transform: none; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.ap-theme .ap-card--media .ap-card__img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.ap-theme .ap-card--media .ap-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ap-theme .ap-card--media:hover .ap-card__img img { transform: scale(1.05); }
.ap-theme .e-con.ap-card__body { padding: 1.5rem; gap: 0; width: 100%; align-items: flex-start; }
.ap-theme .e-con.ap-card--testi { padding: 1.5rem; }
.ap-theme .e-con.ap-card--testi:hover { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ap-theme .e-con.ap-card--testi .ap-text { flex: 1 1 auto; }
.ap-theme .e-con.ap-card--testi .ap-author { margin-top: auto; }

/* Iconițe în casetă */
.ap-theme .ap-icon {
  width: 4rem !important; height: 4rem; flex: 0 0 4rem;
  border-radius: 1rem; background: var(--ap-secondary);
  display: flex; align-items: center; justify-content: center;
}
.ap-theme .ap-icon .elementor-widget-container { display: flex; align-items: center; justify-content: center; margin: 0; }
.ap-theme .ap-icon img { width: 2.25rem; height: 2.25rem; object-fit: contain; }

.ap-theme .ap-emoji { width: 3.5rem !important; height: 3.5rem; flex: 0 0 3.5rem; border-radius: 1rem; background: var(--ap-secondary); display: flex; align-items: center; justify-content: center; }
.ap-theme .ap-emoji .elementor-heading-title { font-size: 1.5rem; line-height: 1; }

.ap-theme .ap-round-ico { width: 3rem !important; height: 3rem; flex: 0 0 3rem; border-radius: .75rem; background: var(--ap-primary); display: flex; align-items: center; justify-content: center; color: var(--ap-primary-fg); }
.ap-theme .ap-round-ico .elementor-heading-title { font-size: 1.25rem; line-height: 1; color: var(--ap-primary-fg); }
.ap-theme .ap-round-ico .elementor-icon { color: var(--ap-primary-fg); font-size: 1.125rem; line-height: 1; display: flex; }
.ap-theme .ap-round-ico .elementor-icon svg { fill: var(--ap-primary-fg); width: 1.125rem; height: 1.125rem; }
.ap-theme .ap-round-ico .elementor-widget-container { display: flex; }

.ap-theme .ap-num { width: 2.5rem !important; height: 2.5rem; flex: 0 0 2.5rem; border-radius: 9999px; background: var(--ap-primary); display: flex; align-items: center; justify-content: center; }
.ap-theme .ap-num .elementor-heading-title { font-family: var(--ap-font-body); font-size: .875rem; font-weight: 700; color: var(--ap-primary-fg); line-height: 1; }

.ap-theme .e-con.ap-feat { display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; padding: 0; width: 100%; }
.ap-theme .e-con.ap-feat + .e-con.ap-feat { margin-top: 1.5rem; }
.ap-theme .e-con.ap-feat--lg + .e-con.ap-feat--lg { margin-top: 1.25rem; }
.ap-theme .e-con.ap-feat__body { flex: 1 1 auto; padding: 0; gap: 0; align-items: flex-start; }

/* ---------- Media (imagini mari + carduri plutitoare) ---------- */
.ap-theme .e-con.ap-media { position: relative; padding: 0; width: 100%; overflow: visible; }
.ap-theme .ap-media__img { border-radius: 2rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); background: var(--ap-card); }
.ap-theme .ap-media__img--border { border: 1px solid var(--ap-border); }
.ap-theme .ap-media__img img { width: 100%; height: auto; display: block; object-fit: cover; }

.ap-theme .e-con.ap-float {
  position: absolute; z-index: 2;
  background: var(--ap-card); border: 1px solid var(--ap-border);
  border-radius: 1rem; padding: 1rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  display: flex; flex-direction: row; align-items: center; gap: .75rem; width: auto;
}
.ap-theme .e-con.ap-float--bl { left: -1.5rem; bottom: -1.5rem; max-width: 220px; }
.ap-theme .e-con.ap-float--tr { right: -1rem; top: 1.5rem; }
.ap-theme .e-con.ap-float--wide { left: 1.5rem; right: 1.5rem; bottom: -1.5rem; padding: 1.25rem; justify-content: space-between; width: auto; }
.ap-theme .e-con.ap-float .ap-float__txt { padding: 0; gap: .125rem; align-items: flex-start; }
.ap-theme .ap-avatar { width: 3rem !important; height: 3rem; flex: 0 0 3rem; border-radius: 9999px; overflow: hidden; }
.ap-theme .ap-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }
.ap-theme .ap-avatar--sm { width: 2.75rem !important; height: 2.75rem; flex-basis: 2.75rem; }
@media (max-width: 639px) {
  .ap-theme .e-con.ap-float--bl, .ap-theme .ap-heart { display: none !important; }
  .ap-theme .e-con.ap-float--tr { right: .75rem; }
  .ap-theme .e-con.ap-float--wide { position: static; margin-top: 1rem; flex-direction: column; align-items: flex-start; }
}
.ap-theme .ap-heart {
  position: absolute; right: -1rem; top: -1rem; z-index: 2;
  width: 4rem !important; height: 4rem; border-radius: 1rem; background: var(--ap-primary);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2);
}
.ap-theme .ap-heart .elementor-heading-title { font-size: 1.5rem; line-height: 1; color: var(--ap-primary-fg); }

/* Hero – fundal cu pete decorative */
.ap-theme .e-con.ap-sec--hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(210,234,255,.75) 0, rgba(210,234,255,0) 24rem),
    radial-gradient(circle at 0% 100%, rgba(229,243,255,.7) 0, rgba(229,243,255,0) 18rem),
    var(--ap-bg);
}

/* ---------- Bulină (badge) ---------- */
.ap-theme .ap-badge .elementor-heading-title {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ap-secondary); color: var(--ap-secondary-fg);
  border-radius: 9999px; padding: .375rem 1rem;
  font-family: var(--ap-font-body); font-size: .875rem; line-height: 1.25rem; font-weight: 500;
}

/* ---------- Stele ---------- */
.ap-theme .ap-stars .elementor-star-rating { color: var(--ap-star); font-size: 1rem; }
.ap-theme .ap-stars .elementor-star-rating i { color: var(--ap-star); }
.ap-theme .ap-stars .elementor-star-rating__wrapper { display: flex; align-items: center; gap: .5rem; }
.ap-theme .ap-stars--after .elementor-star-rating__wrapper { flex-direction: row-reverse; justify-content: flex-end; }
.ap-theme .ap-stars .elementor-star-rating__title {
  color: var(--ap-muted); font-size: .875rem; margin: 0; padding: 0; font-family: var(--ap-font-body);
}
.ap-theme .ap-stars--sm .elementor-star-rating { font-size: .875rem; }

/* ---------- Statistici ---------- */
.ap-theme .ap-stat { text-align: center; }
.ap-theme .ap-stat .elementor-counter { display: flex; flex-direction: column-reverse; align-items: center; }
.ap-theme .ap-stat .elementor-counter-number-wrapper {
  display: flex; align-items: baseline; justify-content: center; gap: .25rem;
  font-family: var(--ap-font-body); font-size: 3rem; line-height: 1; font-weight: 800;
  color: var(--ap-primary-fg);
}
@media (min-width: 640px) { .ap-theme .ap-stat .elementor-counter-number-wrapper { font-size: 3.75rem; } }
.ap-theme .ap-stat .elementor-counter-number-suffix { font-size: 1.875rem; font-weight: 800; }
.ap-theme .ap-stat .elementor-counter-title {
  margin-top: .75rem; font-family: var(--ap-font-body); font-size: .875rem; line-height: 1.25rem;
  text-transform: uppercase; letter-spacing: .025em; opacity: .8; color: var(--ap-primary-fg);
}

/* ---------- Banner UE ---------- */
.ap-theme .e-con.ap-eu {
  max-width: 56rem; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; padding: 0;
}
@media (min-width: 640px) { .ap-theme .e-con.ap-eu { flex-direction: row; } }
.ap-theme .ap-eu__img img { max-width: 28rem; width: 100%; }

/* ---------- Bloc contact ---------- */
.ap-theme .e-con.ap-contact-row { display: flex; flex-direction: row; align-items: center; gap: 1rem; padding: 0; width: 100%; }
.ap-theme .e-con.ap-contact-row + .e-con.ap-contact-row { margin-top: 1.25rem; }
.ap-theme .ap-contact-row .ap-round-ico a { color: var(--ap-primary-fg); }
.ap-theme .ap-contact-row a { color: inherit; }
.ap-theme .ap-contact-label { color: var(--ap-muted); font-size: .875rem; line-height: 1.25rem; }
.ap-theme .ap-contact-label p, .ap-theme .ap-contact-value p { margin: 0; }
.ap-theme .ap-contact-value { color: var(--ap-fg); font-weight: 600; }
.ap-theme .ap-contact-value a { color: var(--ap-fg); }
.ap-theme .e-con.ap-formcard {
  background: var(--ap-card); border: 1px solid var(--ap-border); border-radius: 1rem;
  padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); gap: 0; align-items: stretch;
}

/* Formular */
.ap-form { display: block; margin-top: 1.5rem; }
.ap-form__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
@media (min-width: 640px) { .ap-form__grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.ap-form__field { margin-bottom: 1rem; }
.ap-form__grid .ap-form__field { margin-bottom: 0; }
.ap-form label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 500; color: var(--ap-fg); }
.ap-form input[type="text"], .ap-form input[type="tel"], .ap-form input[type="email"], .ap-form textarea {
  width: 100%; border: 1px solid var(--ap-border); background: var(--ap-bg); color: var(--ap-fg);
  border-radius: .5rem; padding: .625rem 1rem; font: inherit; font-size: .875rem; outline: none; transition: box-shadow .15s, border-color .15s;
}
.ap-form input:focus, .ap-form textarea:focus { border-color: var(--ap-primary); box-shadow: 0 0 0 2px var(--ap-primary); }
.ap-form__hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.ap-form button[type="submit"] {
  width: 100%; border: 0; cursor: pointer; border-radius: 9999px;
  background: var(--ap-primary); color: var(--ap-primary-fg);
  padding: .875rem 1.5rem; font: 600 .875rem/1.25rem var(--ap-font-body); transition: opacity .2s;
}
.ap-form button[type="submit"]:hover { opacity: .9; }
.ap-notice { margin-top: 2rem; border-radius: .75rem; background: var(--ap-secondary); padding: 1.5rem; text-align: center; }
.ap-notice strong { display: block; color: var(--ap-fg); }
.ap-notice span { display: block; margin-top: .25rem; color: var(--ap-muted); font-size: .875rem; }
.ap-notice--error { background: #fde8e8; }

/* ---------- Antet (topbar + navigare) ---------- */
.ap-site-header { position: sticky; top: 0; z-index: 50; width: 100%; }
body.admin-bar .ap-site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ap-site-header { top: 46px; } }

.ap-theme .e-con.ap-topbar { background: var(--ap-primary); color: var(--ap-primary-fg); padding: .5rem 1rem; gap: 0; }
.ap-theme .e-con.ap-topbar .ap-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem;
}
@media (min-width: 640px) { .ap-theme .e-con.ap-topbar .ap-inner { flex-direction: row; } }
.ap-theme .ap-topbar .elementor-icon-list-items { display: flex; }
.ap-theme .ap-topbar .elementor-icon-list-item a, .ap-theme .ap-topbar .elementor-icon-list-text { color: var(--ap-primary-fg); font-size: .875rem; }
.ap-theme .ap-topbar .elementor-icon-list-icon i { color: var(--ap-primary-fg); font-size: .8rem; }
.ap-theme .ap-topbar .elementor-icon-list-icon svg { fill: var(--ap-primary-fg); width: .8rem; }
.ap-theme .ap-topbar a:hover { opacity: .8; }

.ap-theme .e-con.ap-navbar {
  background: rgba(252,250,241,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ap-border); padding: .75rem 1rem; gap: 0; overflow: visible;
}
.ap-theme .e-con.ap-navbar .ap-inner { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
.ap-theme .ap-logo img { height: 3rem; width: auto; max-width: none; }

.ap-nav { position: relative; }
.ap-nav__toggle {
  display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
  width: 2.5rem; height: 2.5rem; color: var(--ap-fg); padding: 0;
}
.ap-nav__toggle svg { width: 1.5rem; height: 1.5rem; }
.ap-nav__toggle .ap-ico-close { display: none; }
.ap-nav.is-open .ap-nav__toggle .ap-ico-close { display: block; }
.ap-nav.is-open .ap-nav__toggle .ap-ico-open { display: none; }
.ap-nav__list {
  display: none; list-style: none; margin: 0; padding: .75rem 1rem;
  position: absolute; right: -1rem; top: calc(100% + .75rem); width: 100vw;
  background: var(--ap-bg); border-top: 1px solid var(--ap-border); box-shadow: 0 10px 15px -3px rgba(0,0,0,.08);
}
.ap-nav.is-open .ap-nav__list { display: block; }
.ap-nav__list li { margin: 0; padding: 0; list-style: none; }
.ap-nav__list a {
  display: block; padding: .5rem .75rem; border-radius: .375rem; color: var(--ap-fg);
  font-size: .875rem; font-weight: 500; transition: color .15s, background .15s;
}
.ap-nav__list a:hover { background: var(--ap-accent); }
.ap-nav__list .current-menu-item > a, .ap-nav__list .current_page_item > a { color: var(--ap-primary); }
.ap-nav__list .ap-nav-cta > a {
  margin-top: .5rem; text-align: center; background: var(--ap-primary); color: var(--ap-primary-fg);
  border-radius: 9999px; padding: .625rem 1.25rem; font-weight: 600;
}
.ap-nav__list .ap-nav-cta > a:hover { background: var(--ap-primary); opacity: .9; color: var(--ap-primary-fg); }

@media (min-width: 1024px) {
  .ap-nav__toggle { display: none; }
  .ap-nav__list {
    display: flex; align-items: center; gap: 1.5rem; position: static; width: auto; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .ap-nav__list a { padding: 0; border-radius: 0; }
  .ap-nav__list a:hover { background: none; color: var(--ap-primary); }
  .ap-nav__list .ap-nav-cta > a { margin: 0; padding: .625rem 1.25rem; }
  .ap-nav__list .ap-nav-cta > a:hover { color: var(--ap-primary-fg); }
}

/* Antet / subsol PHP (rezervă, când layout-ul Elementor lipsește) */
.ap-fb-topbar { background: var(--ap-primary); color: var(--ap-primary-fg); font-size: .875rem; padding: .5rem 1rem; }
.ap-fb-topbar__in { max-width: var(--ap-maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.ap-fb-topbar a { color: inherit; }
.ap-fb-navbar { background: rgba(252,250,241,.95); border-bottom: 1px solid var(--ap-border); padding: .75rem 1rem; }
.ap-fb-navbar__in { max-width: var(--ap-maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ap-fb-navbar img { height: 3rem; width: auto; }
.ap-fb-footer { background: var(--ap-primary); color: var(--ap-primary-fg); padding: 3.5rem 1rem 1.5rem; }
.ap-fb-footer__in { max-width: var(--ap-maxw); margin: 0 auto; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .ap-fb-footer__in { grid-template-columns: repeat(4, 1fr); } }
.ap-fb-footer h4 { color: var(--ap-primary-fg); font-size: .875rem; text-transform: uppercase; letter-spacing: .025em; margin-bottom: 1rem; }
.ap-fb-footer p, .ap-fb-footer li, .ap-fb-footer a { color: var(--ap-primary-fg); font-size: .875rem; }
.ap-fb-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-fb-footer li { margin-bottom: .5rem; }
.ap-fb-footer__copy { max-width: var(--ap-maxw); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); text-align: center; font-size: .75rem; opacity: .8; }

/* ---------- Subsol (layout Elementor) ---------- */
.ap-theme .e-con.ap-footer { background: var(--ap-primary); color: var(--ap-primary-fg); padding: 3.5rem 1rem; gap: 0; overflow: hidden; }
.ap-theme .ap-footer .ap-grid--footer { align-items: start; }
.ap-theme .ap-footer .ap-logo-white img { height: 3.5rem; width: auto; background: rgba(255,255,255,.95); border-radius: .75rem; padding: .5rem; }
.ap-theme .ap-footer .elementor-heading-title {
  font-family: var(--ap-font-body); color: var(--ap-primary-fg); opacity: .9;
  font-size: .875rem; line-height: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em;
}
.ap-theme .ap-footer .ap-text { color: var(--ap-primary-fg); opacity: .9; font-size: .875rem; line-height: 1.625; }
.ap-theme .ap-footer .ap-text a { color: var(--ap-primary-fg); }
.ap-theme .ap-footer .ap-text a:hover { opacity: 1; text-decoration: underline; }
.ap-theme .ap-footer .ap-text ul { list-style: none; margin: 0; padding: 0; }
.ap-theme .ap-footer .ap-text li { margin: 0 0 .5rem; }
.ap-theme .ap-footer .ap-social .elementor-social-icons-wrapper { display: flex; gap: .75rem; }
.ap-theme .ap-footer .ap-social .elementor-icon { background: transparent !important; color: var(--ap-primary-fg); font-size: 1.25rem; }
.ap-theme .ap-footer .ap-social .elementor-icon svg { fill: var(--ap-primary-fg); }
.ap-theme .ap-footer .ap-social .elementor-icon i { color: var(--ap-primary-fg); }
.ap-theme .ap-footer .ap-social .elementor-social-icon { background: transparent !important; width: auto; height: auto; }
.ap-theme .e-con.ap-footer__copy {
  margin-top: 3rem; padding: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,.2); align-items: center; text-align: center;
}
.ap-theme .ap-footer__copy .ap-text { font-size: .75rem; opacity: .8; text-align: center; }

/* Layout-uri Elementor: previzualizare în editor */
body.ap-layout-preview { background: #fff; }

/* ---------- Clase auxiliare ---------- */
.ap-theme .ap-mt-0 { margin-top: 0 !important; }
.ap-theme .ap-mt-12 { margin-top: 3rem !important; }
.ap-theme .ap-mb-2 { margin-bottom: .5rem !important; }
.ap-theme .e-con.ap-gap-8 { gap: 2rem; }
.ap-theme .e-con.ap-inner--narrow { max-width: 56rem; }
.ap-theme .ap-text--maxw .elementor-widget-container { max-width: 36rem; }
.ap-theme .ap-btn--md .elementor-button { padding: .75rem 1.5rem; }
.ap-theme .e-con.ap-grid--top { align-items: start; }
.ap-theme .ap-float__name .elementor-heading-title,
.ap-theme .ap-float__name a {
  font-family: var(--ap-font-body); font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--ap-fg);
}
.ap-theme .ap-float__name a:hover { color: var(--ap-primary); }
.ap-theme .ap-float .ap-text { max-width: 12rem; }
.ap-theme .ap-float--wide .ap-text { max-width: none; }
.ap-theme .ap-author .ap-float__name .elementor-heading-title { font-size: 1rem; }
.ap-theme .e-con.ap-right { align-items: stretch; }
@media (min-width: 768px) {
  .ap-theme .e-con.ap-right { text-align: right; align-items: flex-end; }
  .ap-theme .e-con.ap-right .ap-row { justify-content: flex-end; }
}
.ap-theme .e-con.ap-grid--stats { padding: 0; }
.ap-theme .ap-badge--phone .elementor-heading-title::before {
  content: ""; width: 1rem; height: 1rem; background: currentColor; flex: 0 0 auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ap-theme .ap-topbar__item .elementor-icon-list-items { flex-wrap: wrap; }
.ap-theme .ap-topbar__item { width: auto; }
.ap-theme .ap-nav-wrap { width: auto; }

/* ---------- Robustețe: widgeturi în rânduri (independent de setările Elementor) ---------- */
.ap-theme .e-con.ap-row > .elementor-widget,
.ap-theme .e-con.ap-feat > .elementor-widget,
.ap-theme .e-con.ap-float > .elementor-widget,
.ap-theme .e-con.ap-contact-row > .elementor-widget,
.ap-theme .e-con.ap-eu > .elementor-widget,
.ap-theme .e-con.ap-card--row > .elementor-widget,
.ap-theme .e-con.ap-navbar .ap-inner > .elementor-widget,
.ap-theme .e-con.ap-topbar .ap-inner > .elementor-widget {
  width: auto; flex: 0 0 auto; max-width: 100%; margin-bottom: 0;
}
.ap-theme .e-con.ap-feat__body,
.ap-theme .e-con.ap-float__txt { width: auto; flex: 1 1 0; min-width: 0; }
.ap-theme .e-con.ap-float__txt { flex: 0 1 auto; }
.ap-theme .e-con.ap-float--wide .ap-float__txt { flex: 1 1 auto; }
.ap-theme .ap-nav__list a { white-space: nowrap; }
.ap-theme .ap-nav-wrap { flex: 0 0 auto; }
.ap-theme .e-con.ap-center .elementor-button-wrapper { text-align: center; }
.ap-theme .ap-footer .ap-text p + p { margin-top: 0; }
.ap-theme .ap-footer .ap-text p { margin: 0; }
