@charset "UTF-8";
/* =====================================================================
   Școala Gimnazială „Mihai Drăgan” Bacău
   Foaie de stil principală — scrisă de mână, fără framework.
   ===================================================================== */

/* ---------- 1. Variabile de temă ---------------------------------- */
:root {
  --navy:        #1B3C74;
  --navy-dark:   #142E5A;
  --navy-light:  #2A5199;
  --navy-050:    #EEF3FB;
  --coral:       #F26247;
  --coral-dark:  #D94E35;
  --coral-050:   #FEF1EE;

  --text:        #474C5C;
  --heading:     #1D2433;
  --muted:       #6F7380;
  --border:      #E3E7EE;
  --bg:          #FFFFFF;
  --bg-soft:     #F6F8FC;

  --ok:          #1F8A5B;
  --warn:        #B7791F;
  --danger:      #C0392B;

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;

  /* Umbre în tonul albastru al mărcii — mai calde decât negrul pur */
  --shadow-sm:   0 1px 2px rgba(23, 43, 77, .06), 0 1px 3px rgba(23, 43, 77, .08);
  --shadow-md:   0 4px 12px rgba(23, 43, 77, .09);
  --shadow-lg:   0 12px 32px rgba(23, 43, 77, .13);
  --shadow-xl:   0 24px 60px rgba(20, 46, 90, .18);
  --shadow-lift: 0 18px 40px rgba(20, 46, 90, .16);

  --grad-navy:   linear-gradient(135deg, #1B3C74 0%, #2A5199 55%, #35619E 100%);
  --grad-coral:  linear-gradient(135deg, #F26247 0%, #F0804F 100%);

  /* O singură curbă de accelerare pentru tot site-ul — mișcarea pare unitară */
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);

  --container:   1240px;
  --font:        'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --header-h:    68px;
}

/* ---------- 2. Resetare ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  /* In rem, nu in px: asa marirea textului din uneltele de accesibilitate
     (care schimba baza de pe <html>) se propaga in tot site-ul. */
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--coral-dark); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.28;
}

/* Titlurile de anunțuri conțin des șiruri lungi fără spații
   („antepreșcolari/preșcolari/primar/gimnazial”). Fără asta, ies din
   cartonaș pe ecrane înguste. */
h1, h2, h3, h4, h5,
.card__title, .post-list a, .doc-item__title,
.breadcrumb, .prose, .testimonial__quote {
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.85rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Accesibilitate: contur clar la navigarea cu tastatura */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--coral); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Structură ------------------------------------------ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.6rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}
@media (max-width: 992px) {
  .layout { grid-template-columns: 1fr; gap: 2rem; }
}

.section { padding: 3.2rem 0; }
.section--soft { background: var(--bg-soft); }

/* ---------- 4. Bara de anunț ------------------------------------- */
.alertbar {
  background: var(--navy-dark);
  color: #E8EEF9;
  font-size: .92rem;
}
.alertbar--warning { background: #8A5A00; }
.alertbar--urgent  { background: var(--danger); }
.alertbar__inner {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem 0;
}
.alertbar__icon { flex: none; width: 20px; height: 20px; }
.alertbar a { color: #fff; text-decoration: underline; font-weight: 600; }
.alertbar__close {
  margin-left: auto; flex: none;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 1.3rem; line-height: 1; padding: 0 .3rem; opacity: .8;
}
.alertbar__close:hover { opacity: 1; }

/* ---------- 5. Antet --------------------------------------------- */
.masthead {
  background: #fff;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.masthead__inner {
  display: flex; align-items: center; gap: 2rem;
  justify-content: space-between; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 68px; height: auto; flex: none; }
.brand__name {
  font-size: 1.02rem; font-weight: 700; line-height: 1.32;
  color: var(--navy); letter-spacing: .01em; text-transform: uppercase;
}
.brand__tagline {
  display: block; font-size: .72rem; font-weight: 500;
  color: var(--muted); letter-spacing: .09em; margin-top: .25rem;
  text-transform: uppercase;
}

.contact-strip { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: .7rem; }
.contact-item__icon {
  width: 20px; height: 20px; flex: none; color: var(--navy);
}
.contact-item__label { font-size: .88rem; font-weight: 600; color: var(--heading); }
.contact-item__sub   { font-size: .78rem; color: var(--muted); }
.contact-item a { color: inherit; }
.contact-item a:hover { color: var(--coral); }

@media (max-width: 860px) {
  .contact-strip { display: none; }
}

/* ---------- 6. Navigație principală ------------------------------ */
.navbar {
  background: var(--grad-navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(20, 46, 90, .18);
  transition: box-shadow .3s var(--ease);
}
/* Umbra se adanceste cand pagina e derulata — bara pare ca pluteste */
.navbar.is-stuck { box-shadow: 0 6px 24px rgba(20, 46, 90, .3); }
.navbar__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

.nav-social {
  display: flex; align-items: center; gap: .4rem;
  color: #fff; padding-right: .6rem;
}
.nav-social a {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: #fff; transition: background .18s ease;
}
.nav-social a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }

.menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }

.menu > li > a {
  display: flex; align-items: center; gap: .35rem;
  padding: 0 .95rem; height: var(--header-h);
  color: #fff; font-size: .93rem; font-weight: 500;
  white-space: nowrap; transition: color .18s ease, background .18s ease;
}
.menu > li > a { position: relative; }
/* Linie care creste de la centru sub elementul de meniu */
.menu > li > a::after {
  content: ''; position: absolute;
  left: 50%; right: 50%; bottom: 12px; height: 2px;
  background: var(--coral); border-radius: 2px;
  transition: left .26s var(--ease-out), right .26s var(--ease-out);
}
.menu > li > a:hover::after,
.menu > li:focus-within > a::after { left: .95rem; right: .95rem; }

.menu > li > a:hover,
.menu > li:focus-within > a { color: #fff; text-decoration: none; }
.menu > li > a[aria-current="page"] { color: #fff; font-weight: 600; }
.menu > li > a[aria-current="page"]::after { left: .95rem; right: .95rem; }

.menu__caret { width: 10px; height: 10px; flex: none; opacity: .8; transition: transform .2s ease; }
.menu > li:hover .menu__caret,
.menu > li:focus-within .menu__caret { transform: rotate(180deg); }

/* Submeniuri */
.submenu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 290px; max-width: 380px;
  margin: 0; padding: .45rem 0; list-style: none;
  background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--coral);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu li:hover > .submenu,
.menu li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.submenu li { position: relative; }
.submenu a {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .6rem 1.1rem;
  color: var(--heading); font-size: .89rem; line-height: 1.45;
  border-left: 3px solid transparent;
}
.submenu a:hover {
  background: var(--navy-050); color: var(--navy);
  border-left-color: var(--coral); text-decoration: none;
}

/* Al treilea nivel se deschide lateral */
.submenu .submenu {
  top: -.45rem; left: 100%;
  border-radius: var(--radius);
  border-top: 0; border-left: 3px solid var(--coral);
}
.submenu .submenu--flip { left: auto; right: 100%; }

.btn-catalog {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--coral); color: #fff;
  padding: .62rem 1.3rem; border-radius: 6px;
  font-size: .84rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.btn-catalog:hover { background: var(--coral-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* Buton hamburger */
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; color: #fff;
  padding: .5rem; cursor: pointer; border-radius: 6px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-social { display: none; }
  .btn-catalog { margin-left: 0; order: 3; }

  .menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--navy-dark);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: .5rem 0 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  .menu.is-open { display: flex; }

  .menu > li > a { height: auto; padding: .85rem 1.4rem; justify-content: space-between; }

  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; border-top: 0;
    background: rgba(0, 0, 0, .22); border-radius: 0;
    min-width: 0; max-width: none; padding: 0;
  }
  .submenu.is-open { display: block; }
  .submenu a { color: #DCE5F5; padding-left: 2.4rem; border-left: 0; }
  .submenu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .submenu .submenu a { padding-left: 3.4rem; }
}

/* ---------- 7. Carusel ------------------------------------------- */
.hero { position: relative; background: var(--bg-soft); }
.slider {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}
.slider__track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slide { flex: 0 0 100%; position: relative; }
.slide img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  /* Pe ecrane mari, 16:9 ar impinge tot continutul sub linia de plutire.
     Plafonam inaltimea si lasam object-fit sa decupeze. */
  max-height: min(56vh, 520px);
  background: var(--navy-050);
  transform: scale(1.02);
  transition: transform 8s linear;
}
/* Panoramare lentă pe imaginea activă — dă viață fără să distragă */
.slide[aria-hidden="false"] img { transform: scale(1.08); }
.slide__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4.5rem 2.4rem 3.2rem;
  /* Fotografiile scolii sunt luminoase si aglomerate. Voalul trebuie sa fie
     ferm, altfel titlul nu se citeste. */
  background: linear-gradient(to top,
    rgba(10, 22, 48, .95) 0%,
    rgba(10, 22, 48, .82) 35%,
    rgba(10, 22, 48, .45) 68%,
    transparent 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(6, 14, 32, .55);
}
.slide__caption h2 { max-width: 22ch; }
.slide__caption p  { max-width: 56ch; }
.slide__caption > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.slide[aria-hidden="false"] .slide__caption > * { opacity: 1; transform: none; }
.slide[aria-hidden="false"] .slide__caption > *:nth-child(2) { transition-delay: .08s; }
.slide[aria-hidden="false"] .slide__caption > *:nth-child(3) { transition-delay: .16s; }
.slide__caption h2 { color: #fff; margin-bottom: .35rem; font-size: clamp(1.2rem, 1rem + 1.4vw, 1.9rem); }
.slide__caption p  { margin: 0; color: #DDE5F3; font-size: .95rem; }
.slide__caption .btn { margin-top: 1rem; }

.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--navy);
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: var(--shadow-md); transition: background .18s ease;
}
.slider__btn:hover { background: #fff; }
.slider__btn--prev { left: 14px; }
.slider__btn--next { right: 14px; }

.slider__dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: .45rem; z-index: 2;
}
.slider__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .2s ease;
}
.slider__dot[aria-selected="true"] { background: var(--coral); width: 26px; border-radius: 5px; }

/* ---------- 8. Butoane ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .72rem 1.5rem; border: 0; border-radius: var(--radius);
  font-family: inherit; font-size: .93rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .06s; }
.btn--primary { background: var(--grad-navy);  color: #fff; }
.btn--primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(27, 60, 116, .32); }
.btn--accent  { background: var(--grad-coral); color: #fff; }
.btn--accent:hover  { color: #fff; box-shadow: 0 10px 24px rgba(242, 98, 71, .38); }
.btn--ghost {
  background: transparent; color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--border);
}
.btn--ghost:hover { background: var(--navy-050); color: var(--navy); }
.btn--sm { padding: .48rem 1rem; font-size: .84rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- 9. Bara laterală ------------------------------------- */
.sidebar { display: grid; gap: 1.6rem; }
@media (min-width: 993px) {
  .sidebar { position: sticky; top: calc(var(--header-h) + 1.2rem); }
}

.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.widget--flush { padding: 0; border: 0; }
.widget__title {
  font-size: 1.12rem; font-weight: 600; color: var(--heading);
  margin: 0 0 1.1rem; padding-bottom: .7rem;
  border-bottom: 2px solid var(--border); position: relative;
}
.widget__title::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 52px; height: 2px; background: var(--coral);
}
.widget--flush .widget__title { text-align: center; border-bottom: 0; }
.widget--flush .widget__title::after { left: 50%; transform: translateX(-50%); }

/* Butoanele albastre de acces rapid */
.quick-links { display: grid; gap: .7rem; }
.quick-link {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: .85rem;
  background: var(--navy); color: #fff;
  padding: .85rem 2.2rem .85rem 1.1rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; line-height: 1.35;
  transition: transform .24s var(--ease-out), box-shadow .24s var(--ease);
}
/* Degradeul se aprinde din stanga, in loc de o schimbare brusca de culoare */
.quick-link::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--grad-navy);
  opacity: 0; transition: opacity .24s var(--ease);
}
.quick-link > * { position: relative; z-index: 1; }
.quick-link::after {
  content: '›'; position: absolute; right: .95rem; top: 50%;
  transform: translate(-6px, -50%); z-index: 1;
  font-size: 1.25rem; line-height: 1; color: #8FB0E8;
  opacity: 0; transition: opacity .24s var(--ease), transform .24s var(--ease-out), color .24s ease;
}
.quick-link:hover {
  color: #fff; text-decoration: none; transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(27, 60, 116, .28);
}
.quick-link:hover::before { opacity: 1; }
.quick-link:hover::after { opacity: 1; transform: translate(0, -50%); color: #fff; }
.quick-link__icon {
  width: 20px; height: 20px; flex: none;
  color: #8FB0E8;
}
.quick-link:hover .quick-link__icon { color: #fff; }

/* Căutare */
.search-form { display: flex; }
.search-form input {
  flex: 1; min-width: 0;
  padding: .74rem 1rem; font-family: inherit; font-size: .92rem;
  border: 1px solid var(--border); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg-soft); color: var(--text);
}
.search-form input:focus { outline: 0; border-color: var(--navy-light); background: #fff; }
.search-form button {
  flex: none; width: 54px;
  background: var(--navy); color: #fff; border: 0;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s ease;
}
.search-form button:hover { background: var(--navy-dark); }

/* Listă articole recente */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.post-list li { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.post-list a { font-size: .93rem; font-weight: 500; line-height: 1.45; display: block; }
.post-list time { display: block; font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* Link-uri utile */
.useful-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.useful-links a {
  display: flex; align-items: center; gap: .65rem;
  color: var(--text); font-size: .9rem; padding: .35rem 0;
}
.useful-links a:hover { color: var(--coral); }
.useful-links svg { width: 17px; height: 17px; flex: none; color: var(--coral); }

/* ---------- 10. Conținut ----------------------------------------- */
.prose { max-width: 78ch; }
.prose :where(h2, h3, h4) { margin-top: 2rem; }
.prose :where(h2):first-child,
.prose :where(h3):first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin: 1.6rem auto; box-shadow: var(--shadow-sm); }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6rem 0; padding: 1rem 1.5rem;
  border-left: 4px solid var(--coral); background: var(--coral-050);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--heading);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Butoanele raman butoane si in interiorul continutului: sublinierea de mai
   sus se aplica link-urilor din text, nu si celor cu aspect de buton. */
.btn, .btn:hover, .btn:focus,
.prose a.btn, .prose a.btn:hover,
.featured-link, .featured-link:hover,
.quick-link, .quick-link:hover,
.btn-catalog, .btn-catalog:hover,
.doc-item, .doc-item:hover,
.tabs__tab, .accordion__title {
  text-decoration: none;
}

.prose table {
  width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem;
}
.prose table th, .prose table td {
  border: 1px solid var(--border); padding: .7rem .9rem; text-align: left;
}
.prose table th { background: var(--navy-050); color: var(--heading); font-weight: 600; }
.prose table tr:nth-child(even) td { background: #FBFCFE; }
.table-scroll { overflow-x: auto; margin: 1.6rem 0; }

.prose iframe { max-width: 100%; border-radius: var(--radius); border: 0; }

/* Plasă de siguranță pentru conținutul preluat din site-ul vechi:
   nimic din interiorul unui articol nu are voie să depășească lățimea
   coloanei, oricâte stiluri moștenite ar avea. */
.prose > *,
.prose :where(div, p, figure, table, pre, iframe, video, object) {
  max-width: 100% !important;
}
/* Marginile calculate ale temei vechi („calc((100% - 980px) * .5)”) devin
   negative pe ecrane înguste. Le neutralizăm doar acolo unde apar. */
.prose [style*="calc"] {
  margin-inline: 0 !important;
  width: auto !important;
}
.prose pre { overflow-x: auto; }

/* ---------- 11. Cartonașe articole ------------------------------- */
.card-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card { transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out), border-color .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-050); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__media { position: relative; }
/* Voal fin care apare la trecerea cu mouse-ul — leagă imaginea de text */
.card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 46, 90, .3), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.04rem; margin: 0 0 .55rem; line-height: 1.4; }
.card__title a { color: var(--heading); }
.card__title a:hover { color: var(--coral); text-decoration: none; }
.card__excerpt { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.card__meta {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}

.badge {
  display: inline-block; padding: .22rem .68rem;
  border-radius: 999px; font-size: .72rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  background: var(--navy-050); color: var(--navy);
}
.badge--urgent { background: #FDECEA; color: var(--danger); }

/* Listă simplă de articole (pagina Știri) */
.post-row {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.post-row:first-of-type { padding-top: 0; }
.post-row__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-050); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
.post-row h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.post-row h2 a { color: var(--heading); }
.post-row h2 a:hover { color: var(--coral); text-decoration: none; }
.post-row p { font-size: .93rem; color: var(--muted); margin-bottom: .7rem; }
@media (max-width: 640px) {
  .post-row { grid-template-columns: 1fr; gap: .9rem; }
  .post-row__media { aspect-ratio: 16 / 9; }
}

/* ---------- 12. Fir Ariadna + antet pagină ----------------------- */
.page-head {
  background: var(--navy);
  color: #fff; padding: 2.4rem 0;
  background-image: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
}
.page-head h1 { color: #fff; margin: 0; }
.page-head .breadcrumb { margin-bottom: .55rem; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .84rem; color: rgba(255, 255, 255, .78);
}
.breadcrumb a { color: rgba(255, 255, 255, .88); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: .45rem; opacity: .6; }
.breadcrumb [aria-current] { color: #fff; font-weight: 500; }

/* ---------- 13. Documente ---------------------------------------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.doc-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.doc-item:hover { border-color: var(--coral); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.doc-item__icon {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  background: var(--navy-050); color: var(--navy);
}
.doc-item__icon--pdf { background: #FDECEA; color: #C0392B; }
.doc-item__icon--doc { background: #E8F0FD; color: #1B5FB4; }
.doc-item__icon--xls { background: #E6F5EC; color: #1F8A5B; }
.doc-item__icon--ppt { background: #FDF0E6; color: #C4691B; }
.doc-item__icon--zip { background: #F2EFFA; color: #6B4FC0; }
.doc-item__body { min-width: 0; flex: 1; }
.doc-item__title {
  font-size: .95rem; font-weight: 500; color: var(--heading);
  display: block; overflow-wrap: anywhere;
}
.doc-item:hover .doc-item__title { color: var(--coral); }
.doc-item__meta { font-size: .78rem; color: var(--muted); }
.doc-item__arrow { flex: none; color: var(--muted); width: 18px; height: 18px; }

/* ---------- 14. Galerie ------------------------------------------ */
.gallery-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.gallery-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1; background: var(--navy-050);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.8rem .9rem .7rem;
  background: linear-gradient(to top, rgba(15, 30, 60, .85), transparent);
  color: #fff; font-size: .82rem;
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover .gallery-item__caption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(12, 22, 42, .94);
  display: none; place-items: center; padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close,
.lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .14); color: #fff;
  border: 0; cursor: pointer; border-radius: 50%;
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 1.5rem; transition: background .18s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__nav--prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: #DDE5F3; font-size: .9rem; text-align: center; max-width: 80%;
}

/* ---------- 15. Testimoniale ------------------------------------- */
.testimonials { background: var(--bg-soft); }
.testimonial-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.testimonial {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 1.8rem; position: relative;
  border: 1px solid var(--border);
}
.testimonial::before {
  content: '"'; position: absolute; top: .3rem; left: 1.3rem;
  font-size: 4.5rem; line-height: 1; color: var(--coral); opacity: .22;
  font-family: Georgia, serif;
}
.testimonial__quote { font-size: .94rem; color: var(--text); margin: 0 0 1.4rem; position: relative; }
.testimonial__person { display: flex; align-items: center; gap: .9rem; }
.testimonial__avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  flex: none; background: var(--navy-050);
}
.testimonial__name { font-weight: 600; color: var(--heading); font-size: .95rem; }
.testimonial__role { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* ---------- 16. Statistici --------------------------------------- */
.stats {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat {
  text-align: center; padding: 1.9rem 1rem 1.6rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat.is-visible::before { transform: scaleX(1); }

.stat__value {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); font-weight: 700;
  color: var(--navy); line-height: 1; margin-bottom: .4rem;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .86rem; color: var(--muted); }

/* ---------- 17. Formulare ---------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: .88rem; font-weight: 500;
  color: var(--heading); margin-bottom: .4rem;
}
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: .74rem .95rem;
  font-family: inherit; font-size: .94rem; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42, 81, 153, .14);
}
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.field__error { font-size: .82rem; color: var(--danger); margin-top: .3rem; }
.field--error input, .field--error textarea { border-color: var(--danger); }

/* ---------- 18. Alerte ------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .95rem 1.2rem; border-radius: var(--radius);
  font-size: .92rem; margin-bottom: 1.4rem;
  border: 1px solid transparent;
}
.alert svg { flex: none; width: 20px; height: 20px; margin-top: .12rem; }
.alert--success { background: #E9F7F0; color: #14603F; border-color: #BFE5D3; }
.alert--error   { background: #FDECEA; color: #8C261A; border-color: #F5C6C0; }
.alert--info    { background: var(--navy-050); color: var(--navy); border-color: #C9D9F2; }
.alert--warning { background: #FEF6E7; color: #7A5200; border-color: #F5DFB0; }

/* ---------- 19. Paginare ----------------------------------------- */
.pagination {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  justify-content: center;
}
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 .8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: .9rem; font-weight: 500; background: #fff;
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ---------- 20. Subsol ------------------------------------------- */
.footer {
  background: var(--grad-navy); color: #C6D4EC; margin-top: auto;
  position: relative;
}
/* Dunga coral de sus, aceeasi cu cea de la titluri */
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-coral);
}
.footer__main { padding: 3rem 0 2.2rem; }
.footer__grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h3 {
  color: #fff; font-size: 1rem; margin-bottom: 1.1rem;
  padding-bottom: .6rem; position: relative;
}
.footer h3::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 38px; height: 2px; background: var(--coral);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: #C6D4EC; font-size: .89rem; }
.footer a:hover { color: #fff; }
.footer p { font-size: .89rem; margin-bottom: .8rem; }

.footer__brand { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.footer__brand img { width: 56px; flex: none; }
.footer__brand strong { color: #fff; font-size: .95rem; line-height: 1.4; display: block; }

.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .89rem; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: .22rem; color: var(--coral); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 1.2rem 0; font-size: .84rem;
}
.footer__bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer__social { display: flex; gap: .5rem; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background .18s ease;
}
.footer__social a:hover { background: var(--coral); }

/* ---------- 21. Înapoi sus --------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border: 0; border-radius: 8px;
  background: var(--coral); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--coral-dark); }

/* ---------- 22. Diverse ------------------------------------------ */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 1.2rem; color: #C6CEDC; }

.section-title { text-align: center; margin-bottom: 2.6rem; }
.section-title h2 { margin-bottom: .5rem; position: relative; padding-top: 1.1rem; }
/* Bara scurta de deasupra titlului — reper vizual repetat in tot site-ul */
.section-title h2::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 4px; border-radius: 2px; background: var(--grad-coral);
}
.section-title p { color: var(--muted); max-width: 65ch; margin-inline: auto; }

.meta-line {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .86rem; color: var(--muted); margin-bottom: 1.6rem;
}
.meta-line span { display: inline-flex; align-items: center; gap: .38rem; }
.meta-line svg { width: 15px; height: 15px; }

/* ---------- 23. Tipărire ----------------------------------------- */
@media print {
  .navbar, .sidebar, .footer, .to-top, .alertbar, .hero, .btn-catalog { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .layout { display: block; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .page-head { background: none !important; color: #000; padding: 0 0 1rem; }
  .page-head h1 { color: #000; }
}

/* ---------- 24. Protecția conținutului (opțională) ---------------- */
/* Se aplică doar când <body> primește clasa .is-protected, adică atunci
   când opțiunea e bifată în Setări. Câmpurile de formular rămân mereu
   utilizabile — altfel nimeni nu ar putea scrie în formularul de contact. */

body.is-protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.is-protected input,
body.is-protected textarea,
body.is-protected select,
body.is-protected [contenteditable="true"],
body.is-protected .allow-select,
body.is-protected .allow-select * {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

body.is-protected img,
body.is-protected .pdfv__canvas {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Mesajul discret afișat la încercarea de copiere */
.protect-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 700;
  transform: translate(-50%, 14px);
  background: var(--navy-dark); color: #fff;
  padding: .7rem 1.2rem; border-radius: 999px;
  font-size: .86rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  max-width: calc(100% - 2rem); text-align: center;
}
.protect-toast.is-visible {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}

/* Document care nu poate fi descărcat: cartonaș inert, fără cursor de link */
.doc-item--locked {
  cursor: default;
  background: var(--bg-soft);
}
.doc-item--locked:hover {
  border-color: var(--border); box-shadow: none; transform: none;
}
.doc-item--locked .doc-item__title { color: var(--heading); }

.pdfv__fallback-note {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; color: var(--muted);
}

/* ---------- 25. Apariție la derulare ------------------------------ */
/* Elementele marcate cu data-reveal urcă ușor când intră în ecran.
   Totul e CSS — JavaScript-ul doar adaugă o clasă. Fără el, conținutul
   rămâne vizibil: starea implicită se aplică doar când marcăm documentul
   cu .js-reveal, adică abia după ce JS-ul a pornit. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Decalaj mic între elementele din același grup — dă senzația de cascadă */
.js-reveal [data-reveal-delay="1"] { transition-delay: .07s; }
.js-reveal [data-reveal-delay="2"] { transition-delay: .14s; }
.js-reveal [data-reveal-delay="3"] { transition-delay: .21s; }
.js-reveal [data-reveal-delay="4"] { transition-delay: .28s; }
.js-reveal [data-reveal-delay="5"] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ---------- 26. Rafinamente ---------------------------------------- */

/* Antetul paginilor interioare: degrade + textură fină */
.page-head {
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(242, 98, 71, .22), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, .09), transparent 38%);
  pointer-events: none;
}
.page-head > .container { position: relative; z-index: 1; }

/* Widget-urile din bara laterală capătă puțină adâncime */
.widget {
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
}
.widget:hover { box-shadow: var(--shadow-md); }

/* Titlul de widget: linia de accent crește la trecerea cu mouse-ul */
.widget__title::after { transition: width .35s var(--ease-out); }
.widget:hover .widget__title::after { width: 78px; }

/* Articolele din listă: bara care apare la stânga */
.post-list li { position: relative; padding-left: 0; transition: padding-left .25s var(--ease); }
.post-list li::before {
  content: ''; position: absolute; left: 0; top: .2rem; bottom: 1.1rem;
  width: 2px; border-radius: 2px; background: var(--coral);
  opacity: 0; transition: opacity .25s var(--ease);
}
.post-list li:hover { padding-left: .8rem; }
.post-list li:hover::before { opacity: 1; }
.post-list li:last-child::before { bottom: 0; }

/* Rândurile din lista de știri */
.post-row { transition: background .25s var(--ease); border-radius: var(--radius); }
.post-row:hover { background: var(--bg-soft); }
.post-row__media img { transition: transform .4s var(--ease-out); }
.post-row:hover .post-row__media img { transform: scale(1.05); }

/* Documentele: bara de accent care alunecă */
.doc-item { position: relative; overflow: hidden; }
.doc-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-coral);
  transform: scaleY(0); transform-origin: center;
  transition: transform .28s var(--ease-out);
}
.doc-item:hover::before { transform: scaleY(1); }

/* Testimoniale */
.testimonial {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Butoanele evidențiate de sub carusel */
.featured-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.featured-link {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.15rem 1.3rem;
  background: #fff; color: var(--heading);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-size: .93rem; font-weight: 500; line-height: 1.4;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .2s ease;
}
.featured-link__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy-050); color: var(--navy);
  transition: background .28s var(--ease), color .28s var(--ease), transform .28s var(--ease-out);
}
.featured-link:hover {
  transform: translateY(-4px); text-decoration: none; color: var(--navy);
  border-color: transparent; box-shadow: var(--shadow-lift);
}
.featured-link:hover .featured-link__icon {
  background: var(--grad-coral); color: #fff; transform: scale(1.06) rotate(-4deg);
}

/* Butonul „înapoi sus” pulsează discret la apariție */
.to-top:hover { transform: translateY(-3px); }

/* Bara de anunț important: dungă animată la stânga pentru urgențe */
.alertbar--urgent .alertbar__icon { animation: pulsIcon 2.4s ease-in-out infinite; }
@keyframes pulsIcon {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .alertbar--urgent .alertbar__icon { animation: none; }
  .slide img, .slide[aria-hidden="false"] img { transition: none; transform: none; }
}

@media (max-width: 640px) {
  .slide__caption { padding: 3rem 1.2rem 2.6rem; }
  .slide__caption p { display: none; }
}

/* ---------- 27. Bandă cu parteneri -------------------------------- */
/* Derulare continuă, făcută doar din CSS: lista e duplicată, iar animația
   o mută cu exact jumătate din lățime, deci bucla e imperceptibilă. */
.partners {
  padding: 2.6rem 0;
  background: #fff;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.partners__title {
  text-align: center; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.6rem;
}

.partners__viewport {
  position: relative;
  /* Estompare la margini, ca logo-urile să nu apară brusc */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partners__track {
  display: flex; align-items: center; gap: 3.5rem;
  width: max-content;
  animation: partenersScroll 38s linear infinite;
}
.partners__viewport:hover .partners__track { animation-play-state: paused; }

@keyframes partenersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner {
  flex: none; display: grid; place-items: center;
  height: 58px; padding: 0 .5rem;
  /* Latime minima ca banda sa aiba dimensiune stabila si inainte ca
     imaginile sa se incarce — altfel porneste prabusita si sare. */
  min-width: 130px;
}
.partner img {
  /* Limita in pixeli, nu procentual: `max-height: 100%` nu se aplica fiabil
     peste regula globala `img { height: auto }` si logo-urile ieseau din banda. */
  max-height: 58px; max-width: 190px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease-out);
}
.partner:hover img,
a.partner:focus-visible img { filter: none; opacity: 1; transform: scale(1.05); }

/* Fără animație: lista devine un rând obișnuit, centrat, care se împachetează */
@media (prefers-reduced-motion: reduce) {
  .partners__track {
    animation: none;
    flex-wrap: wrap; justify-content: center;
    width: 100%; gap: 2.2rem 3rem;
  }
  .partners__track > *:nth-child(n + 6) { display: none; }  /* ascundem duplicatul */
  .partners__viewport { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 600px) {
  .partners { padding: 2rem 0; }
  .partner { height: 44px; }
  .partners__track { gap: 2.4rem; animation-duration: 28s; }
}

/* ---------- Imaginea de rezervă a articolelor ---------------------- */
/* Banda articolelor fără fotografie e mult mai scundă decât cea a
   articolelor cu poză. Nu e o scăpare, e intenția: imaginea aceea nu
   spune nimic despre articol, e doar un semn că nu există fotografie.
   La 16/10, cât ține o poză adevărată, ar împinge titlurile în jos și
   ar face lista de trei ori mai lungă degeaba.
   Fișierul (articol-card.png) e desenat exact în proporția asta, deci
   „cover” nu taie nimic din el. */
.card__media--implicit     { aspect-ratio: 800 / 275; background: #14213d; }
.post-row__media--implicit { background: #14213d; }

/* Fără mărirea la trecerea cu mouse-ul: pe o fotografie e un efect
   plăcut, pe o stemă centrată arată doar ca o eroare de așezare. */
.card:hover .card__media--implicit img { transform: none; }
.card__media--implicit::after { content: none; }


/* ---------- Cartonașe de navigare ---------------------------------- */
/* Folosite la /didactic, la /resurse-umane și în secțiunea grădiniței.
   Stăteau doar în sectiune.css, care se încarcă numai în secțiuni — pe
   restul site-ului cartonașele ieșeau ca niște linkuri simple. */

.sec-carduri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.sec-card {
  display: block;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease);
}

.sec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.sec-card__titlu {
  margin: 0 0 .35rem;
  font-weight: 600;
  color: var(--navy);
}

.sec-card__text {
  margin: 0;
  font-size: .87rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .sec-card:hover { transform: none; }
}

/* ---------------------------------------------------------------------
 *  Document listat, dar nepublicat.
 *
 *  Pe pagina Consiliului de Administrație câteva hotărâri erau legate
 *  către adrese care nu mai există — fișierele n-au fost niciodată
 *  încărcate, nici pe site-ul vechi. Textul rămâne, ca omul să știe că
 *  hotărârea există; legătura a picat, ca să nu ajungă în 404.
 *
 *  Motivul e scris în text („— document nepublicat”), nu adăugat din
 *  CSS, ca să se înțeleagă și la tipărire, și în cititoarele de ecran.
 *  Culoarea: 5.40:1 pe alb, 5.08:1 pe fundalul cardurilor — măsurate.
 * ------------------------------------------------------------------- */

.doc-indisponibil {
  color: #666A76;
}

.doc-indisponibil em {
  font-size: .88em;
  font-style: normal;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
 *  Personalul școlii — carduri grupate pe subtitluri.
 *
 *  Lista vine din Panou → Personal (vezi app/lib/Staff.php), nu din
 *  textul paginii. Fiecare grup — catedra la gimnaziu, treapta la
 *  conducere, felul muncii la nedidactic — primește un subtitlu, cu
 *  cardurile lui dedesubt.
 *
 *  Cardurile sunt deliberat sobre: un cerc cu inițiale în loc de poză
 *  (școala n-are fotografii pentru cei 164 de angajați), numele mare,
 *  restul mai discret. Grila se rărește singură pe ecrane mici, fără
 *  praguri fixe.
 * ------------------------------------------------------------------- */

.personal { margin-top: 2.4rem; }

.personal__grup {
  font-size: 1.12rem;
  color: var(--navy);
  margin: 2.4rem 0 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--navy-050);
}

.personal__grup:first-child { margin-top: 0; }

.personal__grila {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .9rem;
}

.personal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.personal-card:hover {
  border-color: var(--navy-light, #35507f);
  box-shadow: var(--shadow-sm);
}

.personal-card__initiale,
.personal-card__poza {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: .45rem;
  flex: 0 0 auto;
}

.personal-card__initiale {
  display: grid;
  place-items: center;
  background: var(--navy-050);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.personal-card__poza { object-fit: cover; }

.personal-card__nume {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--heading);
}

.personal-card__functie {
  margin: 0;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--text);
}

.personal-card__detalii {
  margin: 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}

.personal-card__mail {
  margin: .25rem 0 0;
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.personal-card__mail a { color: var(--navy); }
.personal-card__mail a:hover { color: var(--coral); }

/* La tipărire nu are rost cadrul fiecărui card, doar textul */
@media print {
  .personal__grila { grid-template-columns: repeat(3, 1fr); gap: .3rem; }
  .personal-card { border: 0; padding: .3rem; }
  .personal-card__initiale { display: none; }
}
