/*
Theme Name: Apa Prod — Interfața 3
Theme URI: https://apaprod.ro
Author: SC Apa Prod SA
Author URI: https://apaprod.ro
Description: Tema oficială SC Apa Prod SA — Servicii de apă și canalizare, județul Hunedoara
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: apaprod
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a2540;
  --navy-mid:   #0d3a62;
  --blue:       #1565c0;
  --blue-light: #2979cc;
  --blue-pale:  #eaf4fc;
  --cyan:       #0288d1;
  --white:      #ffffff;
  --gray-bg:    #f1f7fc;
  --gray-border:#d9e6f2;
  --gray-text:  #4c6782;
  --text:       #16304a;
  --amber:      #f59e0b;
  --amber-bg:   #fff9e6;
  --amber-text: #92400e;
  --green:      #2e7d32;
  --green-bg:   #e8f5e9;
  --red:        #c62828;
  --red-bg:     #fce8e8;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 4px rgba(10,37,64,.08);
  --shadow-md:  0 4px 16px rgba(10,37,64,.12);

  --font-sans: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;   /* textul */
  --font-serif: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;   /* titlurile */

  /* Interfața 3 */
  --blue-dark:  #0e4f9c;
  --sky:        #29a9e0;   /* picătura din logo */
  --mist:       #eaf4fc;   /* fundalul secțiunilor */
  --mist-2:     #d8eaf8;
  --ok:         #1d8048;
  --bad:        #d23a2f;
  --r:          22px;
  --gut:        32px;
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

/* ============================================================
   INTERFAȚA 3 — elemente comune
   Direcția: luminos, albastru deschis, forme rotunjite, antet pe
   două rânduri, scurtături mari sub film, tariful la vedere.
   Regula paginii: fiecare funcție apare o singură dată.
   ============================================================ */
.home { background: var(--white); }

.ap-wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.ap-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ap-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ap-kicker::before { content: ""; width: 9px; height: 12px; background: var(--sky); clip-path: path('M4.5 0C4.5 0 9 5 9 8a4.5 4.5 0 0 1-9 0C0 5 4.5 0 4.5 0z'); }

.ap-arrow { display: inline-block; transition: transform .2s; }
a:hover .ap-arrow, button:hover .ap-arrow { transform: translateX(4px); }

.ap-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; line-height: 1.25; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ap-btn:hover { text-decoration: none; }
.ap-btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(21,101,192,.6); }
.ap-btn-blue:hover { background: var(--blue-dark); color: #fff; }
.ap-btn-line { border: 2px solid var(--gray-border); color: var(--navy); background: #fff; }
.ap-btn-line:hover { border-color: var(--blue); color: var(--blue); }

.ap-sec { padding-top: 112px; }
.ap-sec-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin-top: 10px; text-wrap: balance; }
.ap-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ap-sec-head p { margin-top: 8px; color: var(--gray-text); font-size: 17.5px; line-height: 1.6; max-width: 34em; }

/* ============================================================
   BANDA DE STARE — întreruperi active și anunțuri, una singură
   ============================================================ */
.ap-strip { background: var(--navy); color: #dbeaf6; font-size: 14.5px; line-height: 1.45; }
.ap-strip .ap-wrap { padding-top: 9px; padding-bottom: 9px; }
/* Fără JS sau la „mișcare redusă", mesajele stau unul sub altul. Clasa
   `is-on` o pune main.js când pornește alternarea. */
.ap-ticker { display: grid; gap: 6px; min-width: 0; }
.ap-ticker.is-on { gap: 0; }
.ap-ticker-item { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.ap-ticker.is-on .ap-ticker-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.ap-ticker.is-on .ap-ticker-item.is-active { opacity: 1; visibility: visible; }
.ap-strip a { color: #fff; }
.ap-strip strong { white-space: nowrap; }
.ap-strip a.ap-ticker-item:hover { text-decoration: none; }
.ap-strip-note a { text-decoration: underline; font-weight: 700; }
.ap-strip-note .ap-icon { color: #7fd0f5; }
.ap-strip-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff6b5e; flex: none; animation: ap-pulse 1.8s ease-in-out infinite; }
.ap-strip-unde { color: #dbeaf6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@keyframes ap-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

/* ============================================================
   ANTETUL — pe două rânduri
   ============================================================ */
.ap-header { background: var(--white); position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s; }
.ap-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(10,37,64,.35); }
.admin-bar .ap-header { top: 32px; }
.ap-header .ap-wrap { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 40px; padding-top: 14px; padding-bottom: 10px; }

.ap-logo { grid-row: 1 / 3; align-self: center; }
/* Mai înalt decât cele două rânduri din dreapta (40 + 8 + 40): rândurile se centrează lângă el. */
.ap-logo img { height: 108px; width: auto; max-width: none; }
.ap-header .ap-wrap { align-content: center; }

.ap-header-top { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.ap-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; background: var(--mist); color: var(--navy); text-decoration: none; white-space: nowrap; transition: background .2s; }
.ap-pill:hover { background: var(--mist-2); text-decoration: none; }
.ap-pill svg { color: var(--blue); flex: none; }
/* Contul de client: cel mai căutat lucru din antet, deci cel mai vizibil. */
.ap-pill-pay { height: 52px; gap: 10px; padding: 0 22px 0 16px; background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(21,101,192,.75); }
.ap-pill-pay svg { color: #fff; }
.ap-pill-pay:hover { background: var(--blue-dark); color: #fff; }
.ap-pay-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.ap-pay-txt b { font-size: 15.5px; font-weight: 800; }
.ap-pay-txt small { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.82); }
.ap-pay-short { display: none; }
.ap-nav-search { display: none; }

.ap-header-mini { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.ap-search-toggle, .ap-menu-toggle, .ap-lang-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--navy); font: inherit; font-weight: 800; font-size: 13px; text-decoration: none; transition: background .2s, color .2s; }
.ap-search-toggle:hover, .ap-menu-toggle:hover, .ap-lang-btn:hover,
.ap-search-toggle[aria-expanded="true"], .ap-menu-toggle[aria-expanded="true"] { background: var(--mist); color: var(--blue); text-decoration: none; }
.ap-menu-toggle { display: none; }
.ap-lang-switcher { display: flex; }
/* Se arată doar limba în care se poate trece, nu și cea curentă. */
.ap-lang-btn.active { display: none; }

.ap-nav { margin-top: 8px; }
.ap-menu { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.ap-menu > li { position: relative; }
.ap-menu > li > a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 15.5px; color: var(--navy); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.ap-menu > li.has-children > a::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s, margin .2s; }
.ap-menu > li:hover > a,
.ap-menu > li:focus-within > a,
.ap-menu > li.current-menu-item > a,
.ap-menu > li.current-menu-ancestor > a { background: var(--mist); color: var(--blue); }

.ap-menu .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; width: max-content; min-width: 260px; max-width: 340px; max-height: 70vh; overflow-y: auto; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(10,37,64,.05), 0 24px 50px -16px rgba(10,37,64,.3); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
/* Ultimele două se deschid spre stânga, ca să nu iasă din ecran. */
.ap-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.ap-menu > li.has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.ap-menu .sub-menu a { display: block; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--text); text-decoration: none; }
.ap-menu .sub-menu a:hover,
.ap-menu .sub-menu .current-menu-item > a { background: var(--mist); color: var(--blue); }
/* Al treilea nivel stă în aceeași fereastră, sub părintele lui. */
.ap-menu .sub-menu .sub-menu { position: static; width: auto; min-width: 0; max-width: none; max-height: none; overflow: visible; padding: 0 0 4px 14px; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.ap-menu .sub-menu .sub-menu a { padding: 6px 14px; font-size: 14px; color: var(--gray-text); }

@media (min-width: 1141px) {
  .ap-menu > li:hover > .sub-menu,
  .ap-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .ap-menu > li.has-children:hover > a::after,
  .ap-menu > li.has-children:focus-within > a::after { transform: rotate(225deg); margin-top: 4px; }
}

/* ============================================================
   FILMUL — în cadru rotunjit
   ============================================================ */
.ap-hero { padding: 0 16px; }
.ap-hero-frame { position: relative; border-radius: 32px; overflow: hidden; min-height: clamp(520px, 72vh, 660px); display: flex; align-items: center; background: var(--navy); isolation: isolate; }
.ap-hero-vid { position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; z-index: -2; }
.ap-hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,34,62,.82) 0%, rgba(8,34,62,.5) 42%, rgba(8,34,62,.05) 75%), linear-gradient(0deg, rgba(8,34,62,.5), rgba(8,34,62,0) 40%); }
.ap-hero-in { width: 100%; padding-top: 64px; padding-bottom: 150px; color: #fff; }
.ap-hero .ap-kicker { color: #bfe3f7; }
.ap-hero .ap-kicker::before { background: #bfe3f7; }
.ap-hero h1 { color: #fff; font-size: clamp(42px, 5.4vw, 74px); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 18px 0 20px; max-width: 12em; text-wrap: balance; }
.ap-hero h1 span { color: #7fd0f5; }
.ap-hero p { font-size: 19px; line-height: 1.6; max-width: 30em; color: #dbeaf6; }

/* Scurtăturile, peste marginea de jos a filmului */
.ap-tiles { position: relative; z-index: 2; margin-top: -104px; }
.ap-tiles-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ap-tile { background: #fff; border: 0; border-radius: var(--r); padding: 22px 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 158px; font: inherit; text-align: left; color: inherit; cursor: pointer; text-decoration: none; box-shadow: 0 0 0 1px rgba(10,37,64,.04), 0 18px 40px -18px rgba(10,37,64,.35); transition: transform .2s, box-shadow .2s; }
.ap-tile:hover { transform: translateY(-4px); text-decoration: none; box-shadow: 0 0 0 1px rgba(21,101,192,.2), 0 24px 44px -18px rgba(10,37,64,.4); }
.ap-tile-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--blue); transition: background .2s, color .2s; }
.ap-tile:hover .ap-tile-ico { background: var(--blue); color: #fff; }
.ap-tile b { font-family: var(--font-serif); font-weight: 700; font-size: 17.5px; line-height: 1.2; color: var(--navy); }
.ap-tile small { display: block; margin-top: 4px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--gray-text); }

/* ============================================================
   AI APĂ LA TINE?
   ============================================================ */
.ap-water { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--mist); border-radius: 32px; overflow: hidden; }
.ap-water-l { padding: 44px 44px 40px; }
.ap-find { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 22px; background: #fff; border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(10,37,64,.35); transition: box-shadow .2s; }
.ap-find:focus-within { box-shadow: 0 0 0 3px rgba(41,169,224,.45), 0 10px 30px -18px rgba(10,37,64,.35); }
.ap-find svg { color: var(--blue); flex: none; }
.ap-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 18px; font-weight: 700; color: var(--navy); }
.ap-find input::placeholder { color: #8aa3bb; font-weight: 600; }
.ap-find button { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: background .2s; }
.ap-find button:hover { background: var(--blue-dark); }

.ap-result { margin-top: 22px; background: #fff; border-radius: var(--r); padding: 24px 26px; min-height: 250px; }
.ap-result a { color: var(--blue); font-weight: 700; }
.ap-res-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ap-res-top h3 { font-size: 26px; font-weight: 700; }
.ap-state { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border-radius: 999px; font-weight: 800; font-size: 13.5px; }
.ap-state .ap-ico { width: 17px; height: 17px; }
.ap-state.ok { color: var(--ok); background: #e5f4ea; }
.ap-state.bad { color: var(--bad); background: #fdeae8; }
.ap-result dl { margin-top: 14px; }
.ap-result dl > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--gray-border); align-items: center; font-size: 15.5px; line-height: 1.45; }
.ap-result dt { color: var(--gray-text); font-weight: 600; }
.ap-result dd { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-weight: 700; color: var(--navy); }
.ap-result dd b { font-variant-numeric: tabular-nums; }
.ap-range { flex: 1; min-width: 110px; max-width: 170px; }
.ap-range-bar { display: block; height: 6px; border-radius: 3px; background: #cfe9d9; position: relative; }
.ap-range-bar i { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ok); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ap-range small { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--gray-text); margin-top: 4px; font-weight: 600; }
.ap-res-none { color: var(--gray-text); margin-top: 14px; font-size: 15.5px; line-height: 1.55; }
.ap-res-top + .ap-res-none { margin-top: 14px; }
.ap-result > .ap-res-none:first-child { margin-top: 0; }
.ap-res-list { margin-top: 14px; }
.ap-res-list li { padding: 12px 0; border-top: 1px solid var(--gray-border); font-size: 15.5px; line-height: 1.45; }
.ap-res-list li > a { display: block; }
.ap-res-list small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--gray-text); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ap-chip { border: 0; border-radius: 999px; padding: 3px 12px; background: #fdeae8; color: var(--bad); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ap-chip:hover { background: var(--bad); color: #fff; }
.ap-water-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.ap-water-r { position: relative; padding: 36px 36px 28px; display: flex; flex-direction: column; background: linear-gradient(160deg, #dcedfa, #c9e3f6); }
.ap-water-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.ap-water-r svg { display: block; width: 100%; height: 470px; margin: 8px 0; }
.ap-county { fill: #fff; stroke: #9cc4e6; stroke-width: .6; filter: drop-shadow(0 2px 3px rgba(21,101,192,.15)); }
.ap-pin { cursor: pointer; }
.ap-pin .d { fill: var(--blue); stroke: #fff; stroke-width: .7; }
.ap-pin.bad .d { fill: var(--bad); }
.ap-pin .ring { fill: none; stroke: var(--navy); stroke-width: .6; opacity: 0; transition: opacity .15s; }
.ap-pin:hover .ring, .ap-pin.on .ring, .ap-pin:focus-visible .ring { opacity: 1; }
.ap-pin:focus-visible { outline: none; }
.ap-pin text { font: 700 4.3px var(--font-sans); fill: var(--gray-text); paint-order: stroke; stroke: #fff; stroke-width: 1.3px; stroke-linejoin: round; pointer-events: none; }
.ap-pin.on text, .ap-pin:hover text, .ap-pin.bad text { fill: var(--navy); }
.ap-pin .halo { fill: rgba(210,58,47,.25); animation: ap-halo 2.6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ap-halo { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.ap-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; font-weight: 700; color: var(--gray-text); }
.ap-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; border: 2px solid #fff; }
.ap-legend-bad { background: var(--bad); }
.ap-legend-ok { background: var(--blue); }

/* ============================================================
   TARIFUL
   ============================================================ */
.ap-tariff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.ap-tariff p { color: var(--gray-text); font-size: 17.5px; line-height: 1.6; margin: 14px 0 26px; max-width: 28em; }
.ap-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-price { border-radius: var(--r); padding: 28px 28px 24px; background: var(--mist); }
.ap-price-what { font-weight: 800; font-size: 14px; color: var(--gray-text); display: flex; align-items: center; gap: 8px; }
.ap-price-what svg { color: var(--blue); flex: none; }
.ap-price-val { display: block; margin-top: 10px; font: 800 clamp(44px, 4.6vw, 60px)/1 var(--font-serif); letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.ap-price-val small { font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--gray-text); margin-left: 4px; }
.ap-price-total { grid-column: 1 / -1; background: var(--navy); color: #cfe0f0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 28px; }
.ap-price-total span { font-weight: 700; }
.ap-price-total b { color: #fff; font: 800 34px/1 var(--font-serif); letter-spacing: -.02em; }
.ap-tariff .ap-fine { margin: 14px 0 0; font-size: 13.5px; max-width: none; }

/* ============================================================
   NOUTĂȚI (prima pagină)
   ============================================================ */
.ap-news { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px 56px; align-items: stretch; }
.ap-tag { padding: 3px 12px; border-radius: 999px; background: var(--mist); color: var(--blue); font-size: 12.5px; font-weight: 800; }

/* Articolul principal: panou închis, cu titlu mare. */
.ap-lead { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 32px; background: var(--navy); color: #c5d8ea; text-decoration: none; isolation: isolate; transition: box-shadow .25s; }
.ap-lead:hover { text-decoration: none; box-shadow: 0 30px 50px -30px rgba(10,37,64,.7); }
/* Fără fotografie: două cercuri discrete, ca undele din jurul unei picături. */
.ap-lead:not(.has-img)::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -150px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(127,208,245,.2); box-shadow: 0 0 0 46px rgba(127,208,245,.035), 0 0 0 47px rgba(127,208,245,.12); }
.ap-lead-img { display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.ap-lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ap-lead:hover .ap-lead-img img { transform: scale(1.03); }
.ap-lead-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 44px 44px 40px; }
.ap-lead.has-img .ap-lead-body { padding-top: 30px; }
.ap-lead-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; font-weight: 700; color: #9db8d2; }
.ap-lead .ap-tag { background: rgba(127,208,245,.16); color: #9fdcf8; }
.ap-lead h3 { margin: 22px 0 16px; color: #fff; font-size: clamp(26px, 2.5vw, 36px); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.ap-lead-text { display: block; max-width: 34em; font-size: 16.5px; line-height: 1.6; }
.ap-lead-more { margin-top: auto; padding-top: 30px; font-weight: 800; font-size: 15px; color: #7fd0f5; }

/* Celelalte: listă cu data în stânga și linii fine între rânduri. */
.ap-news-list { display: flex; flex-direction: column; border-top: 1px solid var(--gray-border); }
.ap-item { flex: 1; display: grid; grid-template-columns: 78px minmax(0, 1fr) 40px; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--gray-border); color: inherit; text-decoration: none; }
.ap-item:hover { text-decoration: none; }
.ap-item-date { display: block; text-align: center; padding-right: 22px; border-right: 1px solid var(--gray-border); }
.ap-item-date b { display: block; font: 800 34px/1 var(--font-serif); letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.ap-item-date span { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-text); white-space: nowrap; }
.ap-item-tag { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ap-item h3 { font-size: 19.5px; font-weight: 700; line-height: 1.28; transition: color .2s; text-wrap: balance; }
.ap-item:hover h3 { color: var(--blue); }
.ap-item-text { display: block; margin-top: 6px; max-width: 60em; font-size: 15.5px; line-height: 1.55; color: var(--gray-text); }
.ap-item-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--blue); transition: background .2s, color .2s, transform .2s; }
.ap-item:hover .ap-item-go { background: var(--blue); color: #fff; transform: translateX(4px); }

/* Pagina /noutati/: aceeași aranjare, urmată de lista lată cu rezumate. */
.ap-page-white { background: var(--white); padding-bottom: 112px; }
.ap-page-white + .ap-footer { margin-top: 0; }
.ap-page-head { padding: 56px 0 4px; }
.ap-page-head p { margin-top: 10px; color: var(--gray-text); font-size: 17.5px; line-height: 1.6; max-width: 36em; }
.ap-news-list--wide { margin-top: 56px; }
.ap-page-head .ap-search-form { margin-top: 26px; }
.ap-item-date--ico { display: grid; place-items: center; align-self: stretch; color: var(--blue); }
.ap-news + .ap-news-list--wide { border-top: 0; }
.ap-news-list--wide .ap-item { flex: none; padding: 26px 0; }
.ap-pages, .ap-pages .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.ap-pages { margin-top: 48px; }
/* Titlul ascuns pe care WordPress îl pune paginării, pentru cititoarele de ecran. */
.ap-pages .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ap-pages .page-numbers { min-width: 44px; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--gray-border); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; }
.ap-pages .page-numbers:hover:not(.current):not(.dots) { border-color: var(--blue); color: var(--blue); background: #fff; }
.ap-pages .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.ap-pages .page-numbers.dots { border-color: transparent; }

/* ============================================================
   APLICAȚIA
   ============================================================ */
/* PDD: o bandă scurtă, deschisă la culoare, între noutăți și aplicație */
.ap-pdd { margin-top: 72px; }
.ap-pdd-box { display: flex; align-items: center; gap: 24px; padding: 26px 30px; border-radius: 28px; background: var(--mist); color: var(--navy); text-decoration: none; transition: background .2s, box-shadow .2s; }
.ap-pdd-box:hover { text-decoration: none; background: #dcecfa; box-shadow: 0 18px 40px -28px rgba(10,37,64,.45); }
.ap-pdd-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: var(--blue); }
.ap-pdd-text { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ap-pdd-text b { font-family: var(--font-serif); font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.ap-pdd-btn { flex: none; }
.ap-pdd-box:hover .ap-pdd-btn { background: var(--blue-dark); }
@media (max-width: 760px) {
  .ap-pdd { margin-top: 56px; }
  .ap-pdd-box { flex-wrap: wrap; gap: 16px; padding: 22px; }
  .ap-pdd-ico { width: 52px; height: 52px; border-radius: 16px; }
  .ap-pdd-text { flex-basis: calc(100% - 68px); }
  .ap-pdd-btn { width: 100%; justify-content: center; }
}
.ap-app { margin-top: 72px; }
/* Fără `overflow: hidden`: telefonul iese puțin din bandă, sus și jos.
   Cercul decorativ e desenat în fundal, ca să rămână tăiat de colțuri. */
.ap-app-box { position: relative; border-radius: 32px; background: radial-gradient(circle 260px at calc(100% - 140px) 110px, rgba(255,255,255,.09) 99.5%, transparent 100%), linear-gradient(120deg, var(--blue) 0%, #1b7fd0 55%, var(--sky) 100%); color: #e3f1fb; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; padding: 0 56px; }
.ap-app-text { padding: 60px 0; position: relative; }
.ap-app .ap-kicker { color: #cdeafb; }
.ap-app .ap-kicker::before { background: #cdeafb; }
.ap-app h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 10px 0 14px; text-wrap: balance; }
.ap-app ul { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ap-app li { background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14.5px; line-height: 1.4; color: #fff; }
.ap-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.ap-stores img { height: 46px; width: auto; }
/* Telefonul: întreg, plutind ușor, cu două etichete care arată ce face aplicația. */
.ap-phone-wrap { position: relative; justify-self: center; width: 248px; margin: -34px 0; }
.ap-phone { position: relative; aspect-ratio: 248 / 478; border: 9px solid var(--navy); border-radius: 40px; overflow: hidden; background: #fff; box-shadow: 0 34px 60px -22px rgba(4,22,44,.6), 0 0 0 1px rgba(255,255,255,.18); animation: ap-float 5.5s ease-in-out infinite alternate; }
.ap-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* O dungă de lumină care trece din când în când peste ecran. */
.ap-phone::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.4) 50%, transparent 58%); transform: translateX(-130%); animation: ap-shine 7s ease-in-out infinite; }
.ap-phone-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 11px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 800; font-size: 13.5px; line-height: 1; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(4,22,44,.55); animation: ap-float 4.5s ease-in-out infinite alternate; }
.ap-phone-chip svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #e5f4ea; color: var(--ok); flex: none; }
.ap-phone-chip-1 { left: -78px; top: 21%; animation-delay: -1.5s; }
.ap-phone-chip-2 { right: -66px; bottom: 23%; animation-delay: -3.2s; animation-duration: 5s; }
.ap-phone-chip-2 svg { background: var(--mist); color: var(--blue); }
@keyframes ap-float { from { transform: translateY(7px); } to { transform: translateY(-9px); } }
@keyframes ap-shine { 0%, 62% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }

/* ============================================================
   SUBSOLUL
   ============================================================ */
.ap-footer { margin-top: 112px; background: var(--navy); color: #a9c1d8; font-size: 15px; border-radius: 32px 32px 0 0; }
.ap-footer .ap-wrap { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px 56px; padding-top: 56px; padding-bottom: 28px; align-items: start; }
.ap-footer a { color: inherit; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: none; }
.ap-footer-brand > img { height: 54px; width: auto; margin-bottom: 14px; }
.ap-footer address { font-style: normal; line-height: 1.8; }
.ap-footer address b { color: #fff; }
.ap-footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.ap-footer-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ap-footer-fb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff !important; transition: background .2s; }
.ap-footer-fb:hover { background: var(--blue); }
/* Aliniat la stânga: în colțul din dreapta jos stă butonul de chat. */
.ap-footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 13.5px; display: flex; gap: 6px 28px; flex-wrap: wrap; }

/* Pe prima pagină abonarea la alerte e în „Ai apă la robinet azi?"; clopoțelul
   plutitor ar fi a doua cale spre același formular. */
.home #ap-notify-bell { display: none; }

/* ============================================================
   CĂUTARE
   ============================================================ */

/* Modal */
.ap-search-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.ap-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,37,64,.55);
  backdrop-filter: blur(3px);
}
.ap-search-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 24px;
  animation: ap-search-in .2s ease;
}
@keyframes ap-search-in {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ap-search-modal-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(10,37,64,.3);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.ap-search-modal-form:focus-within {
  border-color: var(--blue);
}

.ap-search-modal-icon {
  padding: 0 4px 0 20px;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ap-search-modal-form:focus-within .ap-search-modal-icon { color: var(--blue); }

.ap-search-modal-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  padding: 18px 16px;
  min-width: 0;
}
.ap-search-modal-input::placeholder { color: var(--gray-text); }

.ap-search-modal-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 18px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.ap-search-modal-submit:hover { background: #0d47a1; }

.ap-search-modal-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-top: 14px;
  transition: background .15s;
}
.ap-search-modal-close:hover { background: rgba(255,255,255,.25); }
.ap-search-modal-close span {
  font-size: 11px;
  opacity: .75;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  padding: 1px 6px;
}

/* Câmpul de căutare din pagina de rezultate (searchform.php) */
.ap-search-form { display: flex; align-items: center; gap: 10px; max-width: 560px; height: 60px; padding: 0 8px 0 22px; background: var(--mist); border-radius: 999px; transition: box-shadow .2s, background .2s; }
.ap-search-form:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(41,169,224,.45); }
.ap-search-form svg { color: var(--blue); flex: none; }
.ap-search-form input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; font-weight: 700; color: var(--navy); }
.ap-search-form input[type="search"]::placeholder { color: #8aa3bb; font-weight: 600; }
.ap-search-form button[type="submit"] { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background .2s; }
.ap-search-form button[type="submit"]:hover { background: var(--blue-dark); }

@media (max-width: 600px) {
  .ap-search-modal { padding-top: 80px; }
  .ap-search-modal-input { font-size: 16px; padding: 16px 12px; }
  .ap-search-modal-submit { padding: 16px 20px; }
}

/* Câmpul-capcană din formularele publice. Scos din ecran, nu `display:none`
   — unii boți ignoră câmpurile ascunse astfel. Dacă CSS-ul nu se încarcă,
   eticheta spune omului să-l lase gol. */
.ap-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   LAYOUT / CONTAINER
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }

/* Butoane (paginile interioare, formulare) */

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none !important;
}
.btn-primary:hover { background: #0d47a1; transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #90caf9 !important;
  border: 1px solid #2979cc;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none !important;
}
.btn-outline:hover { background: rgba(41,121,204,.15); }

/* ============================================================
   CARDS
   ============================================================ */
.ap-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ap-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ap-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.ap-card h3 { font-size: 15px; font-family: var(--font-sans); margin-bottom: 8px; }
.ap-card p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }
.ap-card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.ap-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ap-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ap-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ============================================================
   NEWS / POSTS
   ============================================================ */
.ap-news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ap-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ap-news-card-date {
  background: var(--blue);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.ap-news-card-body { padding: 18px 20px; }
.ap-news-card h3 { font-size: 15px; font-family: var(--font-sans); font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.ap-news-card p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }
.ap-news-card a { color: var(--text); text-decoration: none; }
.ap-news-card a:hover h3 { color: var(--blue); }
.ap-news-card-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* Sistări list item */
.ap-sistare-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ap-sistare-date {
  min-width: 52px;
  text-align: center;
  background: var(--red-bg);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
}
.ap-sistare-date .day { font-size: 20px; font-weight: 700; color: var(--red); line-height: 1; }
.ap-sistare-date .mon { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: .06em; }
.ap-sistare-item h4 { font-size: 14px; font-family: var(--font-sans); font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.ap-sistare-item p { font-size: 12.5px; color: var(--gray-text); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.ap-section-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 6px;
}
.ap-section-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.ap-section-desc { color: var(--gray-text); font-size: 15px; margin-bottom: 32px; max-width: 560px; }
.ap-section-header { margin-bottom: 32px; }
.ap-section-header.flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.ap-section-header .see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* ============================================================
   INFO STRIP
   ============================================================ */
.ap-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ap-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ap-info-card h4 { font-size: 14px; font-family: var(--font-sans); font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.ap-info-card p { font-size: 13px; color: var(--gray-text); line-height: 1.5; }
.ap-info-card a { color: var(--blue); font-size: 12.5px; font-weight: 600; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.ap-page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 48px 0;
}
.ap-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}
.ap-sidebar-menu { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-border); overflow: hidden; }
.ap-sidebar-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 13.5px;
  color: #3a5068;
  border-bottom: 1px solid var(--gray-border);
  transition: background .12s, color .12s;
}
.ap-sidebar-menu li:last-child a { border-bottom: none; }
.ap-sidebar-menu li a:hover,
.ap-sidebar-menu li.active a {
  background: var(--blue-pale);
  color: var(--blue);
  text-decoration: none;
}
.ap-page-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 36px 40px;
}
.ap-page-content h1 { font-size: 28px; margin-bottom: 20px; }
.ap-page-content h2 { font-size: 22px; margin: 32px 0 14px; }
.ap-page-content h3 { font-size: 18px; margin: 24px 0 10px; }
.ap-page-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.ap-page-content ul { margin: 0 0 16px 20px; list-style: disc; }
.ap-page-content ul li { font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.ap-page-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.ap-page-content th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.ap-page-content td { padding: 10px 14px; border-bottom: 1px solid var(--gray-border); }
.ap-page-content tr:nth-child(even) td { background: var(--gray-bg); }
.ap-page-content a { color: var(--blue); font-weight: 500; }
.ap-page-content .wp-block-file a { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-pale); color: var(--blue); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; }

/* Breadcrumbs */
.ap-breadcrumb {
  font-size: 13px;
  color: var(--gray-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 0;
  background: var(--white);
}
.ap-breadcrumb a { color: var(--blue); }
.ap-breadcrumb span { margin: 0 6px; }

/* ============================================================
   MODAL SESIZARE
   ============================================================ */
.ap-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ap-modal-overlay.open { display: flex; }
.ap-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(10,37,64,.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  animation: ap-modal-in .2s ease;
}
@keyframes ap-modal-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ap-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.ap-modal-header h2 { font-size: 20px; margin: 0; }
.ap-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-text);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.ap-modal-close:hover { background: var(--gray-bg); color: var(--navy); }
.ap-modal-body { padding: 24px; }

/* ============================================================
   GALLERY + LIGHTBOX
   ============================================================ */
.ap-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.ap-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.ap-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ap-gallery-item:hover img { transform: scale(1.05); }

.ap-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.ap-lightbox.active { display: flex; }
.ap-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  user-select: none;
}
.ap-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s;
}
.ap-lightbox-close:hover { opacity: 1; }
.ap-lightbox-prev,
.ap-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ap-lightbox-prev { left: 16px; }
.ap-lightbox-next { right: 16px; }
.ap-lightbox-prev:hover,
.ap-lightbox-next:hover { background: rgba(255,255,255,.25); }
.ap-lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-size: 13px;
  pointer-events: none;
}

/* ============================================================
   SINGLE POST / SISTARE
   ============================================================ */
.ap-post-header {
  background: var(--navy);
  padding: 40px 0;
  color: #fff;
}
.ap-post-header .tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #90caf9;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ap-post-header h1 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.ap-post-header .meta { font-size: 13px; color: #8fb4d4; }

/* ============================================================
   ARCHIVE / SISTARI PAGE
   ============================================================ */
.ap-archive-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 28px 0;
}
.ap-archive-header h1 { font-size: 28px; }
.ap-archive-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ap-filter-btn {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  color: #3a5068;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.ap-filter-btn.active,
.ap-filter-btn:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
  color: var(--blue);
}

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.widget { margin-bottom: 24px; }
.widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 14px;
  font-family: var(--font-sans);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--gray-text); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-blue { background: var(--blue-pale); color: var(--blue); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber-text); }

nav ul, nav li { list-style: none !important; }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */

/* Banner */
.ap-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: #8fb4d4;
  padding: 16px 0;
  z-index: 9990;
  border-top: 3px solid var(--blue);
  box-shadow: 0 -4px 24px rgba(10,37,64,.25);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.ap-cookie-banner.visible { transform: translateY(0); }
.ap-cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ap-cookie-text { flex: 1; min-width: 200px; }
.ap-cookie-text strong { color: #fff; font-size: 14px; display: block; margin-bottom: 3px; }
.ap-cookie-text p  { font-size: 12.5px; line-height: 1.55; margin: 0; }
.ap-cookie-text a  { color: #8fb4d4; text-decoration: underline; }
.ap-cookie-text a:hover { color: #fff; }
.ap-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* Buttons */
.ap-cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: background .15s, opacity .15s;
  white-space: nowrap;
  line-height: 1;
}
.ap-cookie-accept  { background: var(--blue); color: #fff; }
.ap-cookie-accept:hover  { background: #0d47a1; }
.ap-cookie-reject  { background: transparent; color: #8fb4d4; border: 1px solid rgba(255,255,255,.2); }
.ap-cookie-reject:hover  { background: rgba(255,255,255,.06); color: #fff; }
.ap-cookie-settings { background: transparent; color: #8fb4d4; border: 1px solid rgba(255,255,255,.2); }
.ap-cookie-settings:hover { background: rgba(255,255,255,.06); color: #fff; }
.ap-cookie-save    { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.ap-cookie-save:hover    { background: var(--blue-pale); }

/* Overlay */
.ap-cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,.55);
  z-index: 9991;
  backdrop-filter: blur(2px);
}
.ap-cookie-overlay.open { display: block; }

/* Panel */
.ap-cookie-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(.97);
  width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10,37,64,.25);
  z-index: 9992;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.ap-cookie-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.ap-cookie-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-border);
  flex-shrink: 0;
}
.ap-cookie-panel-header h3 { font-size: 17px; color: var(--navy); font-weight: 700; }
.ap-cookie-panel-close {
  background: none; border: none; cursor: pointer;
  color: var(--gray-text); font-size: 18px; line-height: 1;
  padding: 4px 6px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.ap-cookie-panel-close:hover { background: var(--gray-bg); color: var(--text); }
.ap-cookie-panel-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.ap-cookie-panel-intro {
  font-size: 13.5px;
  color: var(--gray-text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.ap-cookie-panel-intro a { color: var(--blue); }

/* Categories */
.ap-cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
}
.ap-cookie-category:last-child { border-bottom: none; }
.ap-cookie-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ap-cookie-cat-info { display: flex; flex-direction: column; gap: 3px; }
.ap-cookie-cat-info strong { font-size: 14px; color: var(--text); }
.ap-cookie-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}
.ap-cookie-cat-sub { font-size: 12px; color: var(--gray-text); }
.ap-cookie-category p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }
.ap-cookie-locked {
  font-size: 16px;
  color: var(--green);
  flex-shrink: 0;
}

/* Toggle switch */
.ap-toggle { position: relative; display: inline-flex; cursor: pointer; flex-shrink: 0; }
.ap-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ap-toggle-track {
  width: 44px; height: 24px;
  background: var(--gray-border);
  border-radius: 12px;
  transition: background .2s;
  position: relative;
}
.ap-toggle input:checked + .ap-toggle-track { background: var(--blue); }
.ap-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: left .2s;
}
.ap-toggle input:checked + .ap-toggle-track .ap-toggle-thumb { left: 23px; }
.ap-toggle input:focus-visible + .ap-toggle-track { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Panel footer */
.ap-cookie-panel-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--gray-border);
  flex-shrink: 0;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 600px) {
  .ap-cookie-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ap-cookie-actions { width: 100%; }
  .ap-cookie-actions .ap-cookie-btn { flex: 1; text-align: center; }
  .ap-cookie-panel-footer { flex-direction: column; }
  .ap-cookie-panel-footer .ap-cookie-btn { width: 100%; text-align: center; padding: 12px; }
}

/* ============================================================
   WPBAKERY FALLBACK
   ============================================================ */
.ap-vc-text { margin-bottom: 16px; }
.ap-vc-text h1, .ap-vc-text h2, .ap-vc-text h3,
.ap-vc-text h4, .ap-vc-text h5, .ap-vc-text h6 { margin: 20px 0 10px; }
.ap-vc-text p  { margin-bottom: 12px; font-size: 15px; line-height: 1.8; }
.ap-vc-text a  { color: var(--blue); }
.ap-vc-text ul, .ap-vc-text ol { margin: 0 0 12px 20px; }
.ap-vc-text li { margin-bottom: 6px; font-size: 15px; line-height: 1.7; }
.ap-vc-text img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* Pictogramă în rând cu textul */

.ap-icon {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}

/* ============================================================
   WORDPRESS STANDARD — align, paginare, galerie
   ============================================================ */
.alignleft  { float: left;  margin: 0 20px 12px 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 12px 20px; max-width: 50%; }
.aligncenter, .aligncenter img { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide  { width: calc(100% + 64px); margin-left: -32px; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray-text); text-align: center; margin-top: 6px; }

.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gallery-item { flex: 1 1 auto; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* Paginare WordPress */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin: 0 3px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.page-numbers.current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.page-numbers:hover:not(.current) {
  background: var(--blue-pale);
  border-color: var(--blue);
  color: var(--blue);
}
.page-numbers.dots { border: none; background: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ============================================================
   NOTIFICĂRI — fereastra de abonare la alerte pe email
   ============================================================ */
.ap-nf-overlay { z-index: 10000; padding: 24px; backdrop-filter: blur(3px); }
.ap-nf {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff; border-radius: 28px; box-shadow: 0 40px 90px -20px rgba(10,37,64,.45);
  animation: ap-modal-in .22s ease; outline: 0; overscroll-behavior: contain;
}
.ap-nf-head {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  padding: 30px 72px 26px 32px; color: #fff; border-radius: 28px 28px 0 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(41,169,224,.55), transparent 55%), linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  overflow: hidden;
}
.ap-nf-head::after {
  content: ''; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,.06); pointer-events: none;
}
.ap-nf-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.14); color: #fff; }
.ap-nf-head h2 { margin: 2px 0 6px; font-family: var(--font-serif); font-size: 28px; line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.ap-nf-head p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.82); }
.ap-nf-close {
  position: absolute; top: 18px; right: 18px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background .2s;
}
.ap-nf-close:hover { background: rgba(255,255,255,.26); }
.ap-nf-close:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.ap-nf-form { padding: 10px 32px 30px; counter-reset: ap-nf; }
.ap-nf-form[hidden] { display: none; }
.ap-nf-step { margin: 0; padding: 26px 0 0; border: 0; min-width: 0; counter-increment: ap-nf; }
.ap-nf-step[hidden] { display: none; }
/* float: altfel browserul așază legend-ul pe marginea fieldset-ului și ignoră spațierea. */
.ap-nf-step legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 14px;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--navy);
}
.ap-nf-step legend::before {
  content: counter(ap-nf); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mist); color: var(--blue); font-family: var(--font-sans); font-size: 14px; font-weight: 800;
}
.ap-nf-step legend + * { clear: both; }
.ap-nf-hint { margin: -4px 0 12px; font-size: 14px; line-height: 1.5; color: var(--gray-text); }

/* Ce primește: două carduri bifabile */
.ap-nf-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-nf-topic { position: relative; display: block; cursor: pointer; }
.ap-nf-topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-nf-topic-box {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center;
  height: 100%; padding: 16px 40px 16px 16px; border: 2px solid var(--gray-border); border-radius: 18px; background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ap-nf-topic-ico { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mist); color: var(--blue); transition: background .2s, color .2s; }
.ap-nf-topic-box b { font-size: 15.5px; color: var(--navy); line-height: 1.25; }
.ap-nf-topic-box small { font-size: 13px; color: var(--gray-text); line-height: 1.35; }
.ap-nf-tick {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gray-border); color: transparent; transition: background .2s, border-color .2s, color .2s;
}
.ap-nf-topic:hover .ap-nf-topic-box { border-color: #b7cfe6; }
.ap-nf-topic input:checked + .ap-nf-topic-box { border-color: var(--blue); background: #f5faff; }
.ap-nf-topic input:checked + .ap-nf-topic-box .ap-nf-topic-ico { background: var(--blue); color: #fff; }
.ap-nf-topic input:checked + .ap-nf-topic-box .ap-nf-tick { background: var(--blue); border-color: var(--blue); color: #fff; }
.ap-nf-topic input:focus-visible + .ap-nf-topic-box { box-shadow: 0 0 0 3px rgba(41,169,224,.45); }

/* Câmpuri: căutare și email, în formă de pastilă */
.ap-nf-combo, .ap-nf-field { position: relative; }
.ap-nf-combo[hidden] { display: none; }
.ap-nf-combo-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.ap-nf-combo input, .ap-nf-field input {
  width: 100%; height: 56px; padding: 0 20px 0 52px; border: 2px solid transparent; border-radius: 999px; background: var(--mist);
  font: inherit; font-size: 16px; font-weight: 700; color: var(--navy); outline: 0; transition: background .2s, border-color .2s, box-shadow .2s;
}
.ap-nf-combo input::placeholder, .ap-nf-field input::placeholder { color: #8aa3bb; font-weight: 600; }
.ap-nf-combo input:focus, .ap-nf-field input:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(41,169,224,.2); }
.ap-nf-combo--sm { margin-top: 10px; }
.ap-nf-combo--sm input { height: 48px; padding-left: 46px; font-size: 15px; background: #fff; border-color: var(--gray-border); }
.ap-nf-combo--sm .ap-nf-combo-ico { left: 17px; }

.ap-nf-list {
  display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow-y: auto;
  padding: 6px; background: #fff; border: 1px solid var(--gray-border); border-radius: 18px; box-shadow: 0 22px 44px -14px rgba(10,37,64,.32);
}
.ap-nf-list.open { display: block; }
.ap-nf-opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; cursor: pointer; color: var(--navy); }
.ap-nf-opt span { display: flex; flex-direction: column; min-width: 0; }
.ap-nf-opt b { font-size: 15px; font-weight: 700; }
.ap-nf-opt small { font-size: 12.5px; color: var(--gray-text); }
.ap-nf-opt:hover, .ap-nf-opt.is-active { background: var(--mist); }
.ap-nf-opt-hint { padding: 9px 14px; font-size: 13px; color: var(--gray-text); }
/* „Toate…" e la capătul listei, despărțit și mai discret decât rezultatele. */
.ap-nf-opt--all { margin-top: 4px; border-top: 1px dashed var(--gray-border); border-radius: 0 0 12px 12px; color: var(--gray-text); }
.ap-nf-opt--all b { font-weight: 600; font-size: 14px; color: var(--gray-text); }
.ap-nf-opt--all svg { flex: none; color: #8aa3bb; }
.ap-nf-opt--all:hover b, .ap-nf-opt--all.is-active b { color: var(--navy); }

/* Localitățile alese */
.ap-nf-places { display: flex; flex-direction: column; gap: 12px; }
.ap-nf-places:not(:empty) { margin-top: 14px; }
.ap-nf-place { padding: 14px 16px 16px; border: 2px solid var(--gray-border); border-radius: 20px; background: #fff; transition: border-color .2s, background .2s; }
.ap-nf-place.is-todo { border-color: #f4c86a; background: #fffcf3; }
.ap-nf-place.is-error { border-color: var(--bad); background: #fff6f5; }
.ap-nf-place-head { display: flex; align-items: center; gap: 12px; }
.ap-nf-place-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue); color: #fff; }
.ap-nf-place--all .ap-nf-place-ico { background: var(--navy); }
.ap-nf-place-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ap-nf-place-name b { font-size: 16px; color: var(--navy); line-height: 1.25; }
.ap-nf-place-name small { font-size: 13px; color: var(--gray-text); line-height: 1.4; }
.ap-nf-place-name small:empty { display: none; }
.ap-nf-place-rm { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--mist); color: var(--gray-text); cursor: pointer; transition: background .2s, color .2s; }
.ap-nf-place-rm:hover { background: #fde4e1; color: var(--bad); }
.ap-nf-place-body:empty { display: none; }
.ap-nf-place-body { margin-top: 10px; }
.ap-nf-place-note { margin: 0; font-size: 14px; color: var(--gray-text); }
.ap-nf-place-todo { margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: #a15c00; }
.ap-nf-place-todo:empty { display: none; }
.ap-nf-place.is-error .ap-nf-place-todo { color: var(--bad); }

.ap-nf-chips, .ap-nf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-nf-chips:empty { display: none; }
.ap-nf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; }
.ap-nf-chip--all { background: var(--navy); }
.ap-nf-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.ap-nf-chip button:hover { background: rgba(255,255,255,.32); }
.ap-nf-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 2px solid var(--gray-border); border-radius: 999px;
  background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.ap-nf-pill-tick { display: none; }
.ap-nf-pill:hover { border-color: var(--blue); }
.ap-nf-pill[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.ap-nf-pill[aria-pressed="true"] .ap-nf-pill-tick { display: inline-flex; }
.ap-nf-pill--all { border-style: dashed; color: var(--gray-text); font-weight: 600; }
.ap-nf-pill--all[aria-pressed="true"] { border-style: solid; background: var(--navy); border-color: var(--navy); }

/* Acord, erori, trimitere */
.ap-nf-gdpr { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.5; color: var(--text); cursor: pointer; }
.ap-nf-gdpr input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-nf-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border: 2px solid #b7cfe6; border-radius: 8px; background: #fff; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.ap-nf-gdpr input:checked + .ap-nf-box { background: var(--blue); border-color: var(--blue); color: #fff; }
.ap-nf-gdpr input:focus-visible + .ap-nf-box { box-shadow: 0 0 0 3px rgba(41,169,224,.45); }
.ap-nf-gdpr a { color: var(--blue); font-weight: 700; }
.ap-nf-err { margin: 10px 0 0; padding-left: 2px; font-size: 13.5px; font-weight: 700; color: var(--bad); }
.ap-nf-err[hidden] { display: none; }
.ap-nf-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 24px; }
.ap-nf-submit { min-height: 56px; padding: 8px 34px; font-size: 16.5px; }
.ap-nf-submit:disabled { opacity: .6; cursor: progress; }
.ap-nf-status { flex: 1; min-width: 180px; margin: 0; font-size: 14px; color: var(--gray-text); }
.ap-nf-status:empty { display: none; }
.ap-nf-status.is-bad { color: var(--bad); font-weight: 700; }

.ap-nf-done { padding: 38px 32px 34px; text-align: center; }
.ap-nf-done-ico { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 16px; border-radius: 50%; background: var(--mist); color: var(--blue); }
.ap-nf-done h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 23px; color: var(--navy); }
.ap-nf-done p { max-width: 440px; margin: 0 auto 22px; font-size: 15px; line-height: 1.6; color: var(--gray-text); }

.ap-notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Aceleași piese, folosite și de sesizare și de audiență ── */
.ap-nf--wide { max-width: 760px; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ap-nf-row { margin-top: 18px; min-width: 0; }
.ap-nf-step legend + .ap-nf-row, .ap-nf-step legend + .ap-nf-grid .ap-nf-row { margin-top: 0; }
.ap-nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.ap-nf-grid .ap-nf-row { margin-top: 0; }
.ap-nf-row--full { grid-column: 1 / -1; }
.ap-nf-label { display: block; margin: 0 0 7px 4px; font-size: 14px; font-weight: 800; color: var(--navy); }
.ap-nf-label small { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--gray-text); }
.ap-nf-field textarea {
  display: block; width: 100%; min-height: 128px; padding: 16px 20px; resize: vertical; border: 2px solid transparent; border-radius: 22px;
  background: var(--mist); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--navy); outline: 0;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.ap-nf-field textarea::placeholder { color: #8aa3bb; font-weight: 600; }
.ap-nf-field textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(41,169,224,.2); }
.ap-nf-field.is-bad input, .ap-nf-field.is-bad textarea { border-color: var(--bad); background: #fff6f5; }

/* Tipul problemei: carduri alese cu un clic */
.ap-nf-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ap-nf-kind { position: relative; cursor: pointer; }
.ap-nf-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-nf-kind > span {
  display: flex; align-items: center; gap: 10px; height: 100%; min-height: 62px; padding: 10px 14px; border: 2px solid var(--gray-border);
  border-radius: 16px; background: #fff; color: var(--blue); transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.ap-nf-kind svg { flex: none; }
.ap-nf-kind b { font-size: 14.5px; line-height: 1.25; color: var(--navy); }
.ap-nf-kind:hover > span { border-color: #b7cfe6; }
.ap-nf-kind input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.ap-nf-kind input:checked + span b { color: #fff; }
.ap-nf-kind input:focus-visible + span { box-shadow: 0 0 0 3px rgba(41,169,224,.45); }
.ap-nf-kinds.is-bad .ap-nf-kind > span { border-color: #f1b3ad; }

/* Atașament */
.ap-nf-file { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px dashed #b7cfe6; border-radius: 20px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.ap-nf-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ap-nf-file:hover, .ap-nf-file:focus-within { border-color: var(--blue); background: #f5faff; }
.ap-nf-file-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mist); color: var(--blue); }
.ap-nf-file-txt { display: flex; flex-direction: column; min-width: 0; }
.ap-nf-file-txt b { font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-nf-file-txt small { font-size: 13px; color: var(--gray-text); }
.ap-nf-file.has-file { border-style: solid; border-color: var(--blue); }
.ap-nf-file.has-file .ap-nf-file-ico { background: var(--blue); color: #fff; }
.ap-nf-file.is-bad { border-color: var(--bad); }

/* Mesaje în capul formularului */
.ap-nf-alert, .ap-nf-urgent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 18px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; }
.ap-nf-alert svg, .ap-nf-urgent svg { flex: none; margin-top: 1px; }
.ap-nf-alert { background: #fff1ef; color: #9b2a21; font-weight: 700; }
.ap-nf-urgent { background: var(--mist); color: var(--navy); }
.ap-nf-urgent svg { color: var(--blue); }
.ap-nf-urgent a { font-weight: 800; color: var(--blue); white-space: nowrap; }
.ap-nf-alert + .ap-nf-urgent { margin-top: 10px; }
.ap-nf-done-ico--ok { background: #e3f4ea; color: var(--ok); }

/* Pagina de audiență: formularul și o coloană cu pașii și contactul */
.ap-aud { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 40px; }
.ap-aud-card { border: 1px solid var(--gray-border); border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -40px rgba(10,37,64,.35); }
.ap-aud-card .ap-nf-form { padding: 6px 36px 34px; }
.ap-aud-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 160px; }
.ap-aud-box { padding: 26px 26px 24px; border-radius: 24px; background: var(--mist); }
.ap-aud-box h2 { margin: 0 0 16px; font-family: var(--font-serif); font-size: 20px; color: var(--navy); }
.ap-aud-steps { margin: 0; padding: 0; list-style: none; counter-reset: ap-aud; }
.ap-aud-steps li { position: relative; display: flex; flex-direction: column; padding: 0 0 16px 44px; counter-increment: ap-aud; }
.ap-aud-steps li:last-child { padding-bottom: 0; }
.ap-aud-steps li::before { content: counter(ap-aud); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; }
.ap-aud-steps li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: #c9def0; }
.ap-aud-steps b { font-size: 15.5px; color: var(--navy); }
.ap-aud-steps span { font-size: 14px; color: var(--gray-text); line-height: 1.5; }
.ap-aud-box--contact { background: var(--navy); }
.ap-aud-box--contact h2 { color: #fff; }
.ap-aud-contact { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-top: 8px; border-radius: 16px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: background .2s; }
.ap-aud-contact:hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.ap-aud-contact svg { flex: none; color: var(--sky); }
.ap-aud-contact span { display: flex; flex-direction: column; min-width: 0; }
.ap-aud-contact small { font-size: 12.5px; color: rgba(255,255,255,.7); }
.ap-aud-contact b { font-size: 16.5px; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .ap-aud { grid-template-columns: minmax(0, 1fr); }
  .ap-aud-side { position: static; }
}

@media (max-width: 600px) {
  /* Pe telefon fereastra urcă de jos, pe toată lățimea. */
  .ap-nf-overlay { padding: 0; align-items: flex-end; }
  .ap-nf { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 26px 26px 0 0; }
  .ap-nf-head { padding: 24px 64px 22px 20px; border-radius: 26px 26px 0 0; gap: 14px; }
  .ap-nf-ico { width: 44px; height: 44px; border-radius: 14px; }
  .ap-nf-head h2 { font-size: 23px; }
  .ap-nf-head p { font-size: 14px; }
  .ap-nf-close { top: 14px; right: 14px; }
  .ap-nf-form { padding: 4px 20px 26px; }
  .ap-nf-topics { grid-template-columns: 1fr; gap: 10px; }
  .ap-nf-submit { width: 100%; justify-content: center; }
  .ap-nf-done { padding: 30px 20px 28px; }
  .ap-nf-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-nf-kinds { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ap-nf-kind > span { padding: 10px 12px; gap: 8px; }
  .ap-nf-kind b { font-size: 13.5px; }
  .ap-aud { margin-top: 28px; }
  .ap-aud-card { border-radius: 22px; }
  .ap-aud-card .ap-nf-form { padding: 0 20px 26px; }
}

/* ============================================================
   PAGINILE INTERIOARE — aliniere la interfața 3
   ============================================================ */
.btn-primary, .btn-outline { border-radius: 999px; }
/* Aceeași lățime și aceleași margini ca antetul. */
.container { max-width: 1240px; padding: 0 var(--gut); }
/* Antetul lipit e mai înalt decât cel vechi. */
.ap-sidebar { top: 160px; }

/* ============================================================
   ECRANE ÎNGUSTE
   ============================================================ */
@media (max-width: 1140px) {
  .ap-header .ap-wrap { grid-template-rows: auto; padding-bottom: 14px; }
  .ap-logo { grid-row: auto; }
  .ap-logo img { height: 62px; }
  .ap-pill-nr { display: none; }
  .ap-menu-toggle { display: grid; }

  /* Meniul devine o foaie sub antet; `top` îl pune main.js la deschidere. */
  .ap-nav { display: none; margin: 0; }
  .ap-nav.open { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: 80px; z-index: 999; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-top: 1px solid var(--gray-border); padding: 8px var(--gut) 40px; }
  body.ap-nav-open { overflow: hidden; }
  .ap-menu { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .ap-menu > li > a { height: auto; min-height: 56px; padding: 8px 4px; justify-content: space-between; border-radius: 0; border-bottom: 1px solid var(--gray-border); font-size: 17px; white-space: normal; }
  .ap-menu > li:hover > a, .ap-menu > li:focus-within > a { background: none; }
  .ap-menu > li.has-children::after { content: none; }
  .ap-menu > li.is-open > a::after { transform: rotate(225deg); margin-top: 4px; }
  .ap-menu .sub-menu { display: none; position: static; width: auto; min-width: 0; max-width: none; max-height: none; overflow: visible; padding: 6px 0 10px 12px; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .ap-menu > li.is-open > .sub-menu, .ap-menu .sub-menu .sub-menu { display: block; }
  .ap-menu .sub-menu a { padding: 11px 12px; font-size: 16px; }

  .ap-tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-water, .ap-tariff { grid-template-columns: minmax(0, 1fr); }
  .ap-water-r svg { height: 400px; }
  .ap-news { grid-template-columns: minmax(0, 1fr); }
  .ap-app-box { grid-template-columns: minmax(0, 1fr) 300px; padding: 0 40px; }
  .ap-phone-chip-2 { right: -34px; }
  .ap-footer .ap-wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .ap-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Pe ecran îngust banda rămâne doar cu textul: cine o vede e deja pe telefon. */
  .ap-app-box { grid-template-columns: minmax(0, 1fr); }
  .ap-phone-wrap { display: none; }
}

@media (max-width: 782px) {
  .admin-bar .ap-header { top: 46px; }
}

@media (max-width: 768px) {
  .ap-grid-4, .ap-grid-3, .ap-grid-2 { grid-template-columns: 1fr; }
  .ap-page-layout { grid-template-columns: 1fr; }
  .ap-sidebar { position: static; }
  .section { padding: 36px 0; }
  .ap-page-content { padding: 24px 20px; }
}

@media (max-width: 380px) {
  .ap-pill-pay svg { display: none; }
  .ap-pill-pay { padding: 0 14px; }
}
@media (max-width: 340px) {
  /* Telefoane foarte înguste (sub 340 px): nu încap toate; numărul de telefon
     rămâne în fereastra de sesizare și pe pagina de audiență. */
  .ap-header-top > .ap-pill:not(.ap-pill-pay) { display: none; }
}

@media (max-width: 640px) {
  :root { --gut: 18px; --r: 18px; }
  .ap-strip { font-size: 13.5px; }
  .ap-ticker-item { justify-content: flex-start; }
  .ap-header .ap-wrap { column-gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .ap-logo img { height: 50px; }
  .ap-header-top { gap: 6px; }
  .ap-pill { width: 40px; padding: 0; justify-content: center; }
  .ap-pill-txt { display: none; }
  .ap-lang-switcher { display: none; }
  /* Pe telefon contul rămâne cu text, nu doar iconiță. Ca să încapă, căutarea
     trece din antet în meniu (.ap-nav-search). */
  .ap-logo img { height: 46px; }
  .ap-header-top { gap: 4px; }
  .ap-header-mini { margin-left: 0; }
  .ap-search-toggle { display: none; }
  .ap-nav-search { display: block; margin: 8px 0 4px; }
  .ap-nav-search .ap-search-form { max-width: none; height: 54px; }
  .ap-nav-search .ap-search-form button[type="submit"] { height: 42px; padding: 0 18px; }
  .ap-pill-pay { width: auto; height: 42px; gap: 7px; padding: 0 14px 0 11px; }
  .ap-pill-pay svg { width: 18px; height: 18px; }
  .ap-pay-txt small, .ap-pay-long { display: none; }
  .ap-pay-short { display: inline; }
  .ap-pay-txt b { font-size: 14.5px; }

  .ap-hero { padding: 0 10px; }
  .ap-hero-frame { border-radius: 24px; min-height: 0; }
  .ap-hero-frame::after { background: linear-gradient(180deg, rgba(8,34,62,.55) 0%, rgba(8,34,62,.78) 100%); }
  .ap-hero-in { padding-top: 48px; padding-bottom: 120px; }
  .ap-hero h1 { font-size: 40px; }
  .ap-hero p { font-size: 17px; }
  .ap-tiles { margin-top: -88px; }
  .ap-tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ap-tile { min-height: 0; padding: 16px 14px; gap: 10px; }
  .ap-tile-ico { width: 44px; height: 44px; }
  .ap-tile b { font-size: 16px; }

  .ap-sec { padding-top: 72px; }
  .ap-water { border-radius: 24px; margin-left: -8px; margin-right: -8px; }
  .ap-water-l { padding: 26px 18px 22px; }
  .ap-find { height: 54px; padding-left: 16px; }
  .ap-find button { padding: 0 16px; height: 42px; }
  .ap-result { padding: 20px 18px; }
  .ap-result dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ap-water-r { padding: 24px 18px 20px; }
  .ap-water-r svg { height: 330px; }
  .ap-prices { grid-template-columns: 1fr; }
  .ap-lead { border-radius: 24px; }
  .ap-lead-body { padding: 28px 22px 26px; }
  .ap-lead h3 { font-size: 25px; }
  .ap-item { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .ap-item-date { padding-right: 12px; }
  .ap-item-date span { font-size: 10.5px; letter-spacing: .03em; }
  .ap-item-date b { font-size: 28px; }
  .ap-item h3 { font-size: 17.5px; }
  .ap-item-go { display: none; }
  .ap-page-white { padding-bottom: 72px; }
  .ap-page-head { padding-top: 36px; }
  .ap-news-list--wide { margin-top: 36px; }
  .ap-app { margin-top: 72px; }
  .ap-app-box { padding: 0 22px; border-radius: 24px; }
  .ap-app-text { padding: 40px 0; }
  .ap-footer { margin-top: 72px; border-radius: 24px 24px 0 0; }
  .ap-footer .ap-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Sub 600px bara de administrare WordPress nu mai e fixă. */
  .admin-bar .ap-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
