/* Tema salonului: eleganta, de studio - prun inchis, roz pudrat si auriu
   sampanie, pe fundal ivoire. Titlurile folosesc un font serif. */
:root {
  --fg: #2b2226;
  --muted: #7b6d72;
  --bg: #faf7f4;
  --card: #ffffff;
  --linie: #ebe2de;
  --roz: #a8496a;
  --roz-inchis: #7a2e4a;
  --roz-pal: #f8f1f1;
  --roz-pal-2: #f1e3e6;
  --prun: #3a1f2d;
  --degrade: linear-gradient(135deg, #2f1824 0%, #5a2740 55%, #8c3d5c 100%);
  --auriu: #b8893b;
  --auriu-deschis: #e6c98f;
  --auriu-blan: #f8f0e0;
  --font-titlu: "Playfair Display", Georgia, "Times New Roman", serif;
  --verde: #12a36a;
  --rosu: #e0453a;
  --whatsapp: #25d366;
  --whatsapp-inchis: #128c4b;
  --umbra: 0 1px 2px rgba(43,34,38,.05), 0 10px 30px rgba(58,31,45,.07);
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 76px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

a { color: var(--roz-inchis); }

/* ---------- bara de sus ---------- */
.bara {
  background: #fff;
  border-bottom: 1px solid var(--linie);
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.marca {
  font-family: var(--font-titlu);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--fg);
  margin-right: auto;
  display: inline-flex; align-items: center; gap: 9px;
}
.marca-simbol { display: inline-flex; flex: 0 0 auto; }
.marca .sigla { width: 36px; height: 36px; }
.bara nav { display: flex; flex-wrap: wrap; gap: 4px; }
.bara nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.bara nav a:hover { background: var(--roz-pal-2); color: var(--roz-inchis); }
.bara nav a.activ { background: var(--prun); color: #fff; }
.bara nav a.admin-link { color: var(--auriu); font-weight: 700; }
.bara nav a.admin-link:hover { background: var(--auriu-blan); }

/* ---------- zona admin ---------- */
.banda-admin {
  background: var(--fg); color: #f2ead4; text-align: center;
  font-size: 12px; padding: 6px 10px; letter-spacing: .02em;
}
.banda-admin a { color: var(--auriu); font-weight: 600; }
.mod-admin .bara { border-bottom-color: #f5c25a; }
.insigna {
  background: var(--auriu); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; vertical-align: middle; margin-left: 4px;
  letter-spacing: .04em;
}
.mod-admin .bara nav a.activ { background: var(--auriu); }

.continut { max-width: 1080px; margin: 0 auto; padding: 26px 18px 70px; }

/* ---------- titluri ---------- */
h1 { font-size: 28px; margin: 0 0 4px; font-family: var(--font-titlu); font-weight: 600; letter-spacing: .01em; }
h2 { font-size: 20px; margin: 0 0 12px; font-family: var(--font-titlu); font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 22px; }

/* ---------- carduri ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--umbra);
}
.card.stramt { padding: 14px 16px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 800px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
}

/* ---------- formulare ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.indiciu { font-weight: 400; color: var(--muted); font-size: 13px; }

input[type=text], input[type=tel], input[type=email], input[type=date], input[type=time],
input[type=number], input[type=file], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  font: inherit;
  background: var(--roz-pal);
  color: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--roz);
  outline-offset: 0;
  border-color: var(--roz);
}
textarea { resize: vertical; min-height: 70px; }
.camp { margin-bottom: 14px; }

button, .buton {
  background: var(--roz);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
button:hover, .buton:hover { filter: brightness(1.07); }
button.lat { width: 100%; padding: 15px; font-size: 16px; }
button.gol, .buton.gol {
  background: #fff; color: var(--fg); border: 1px solid var(--linie);
}
button.mic, .buton.mic { padding: 6px 12px; font-size: 13px; }
button.sters { background: var(--rosu); }

/* ---------- optiuni selectabile (simulator) ---------- */
.optiuni { display: flex; flex-wrap: wrap; gap: 8px; }
.optiune {
  border: 1px solid var(--linie);
  background: var(--roz-pal);
  border-radius: 11px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: .12s;
}
.optiune input { display: none; }
.optiune:hover { border-color: var(--roz); }
.optiune.ales {
  border-color: var(--roz-inchis);
  background: var(--roz-pal-2);
  box-shadow: inset 0 0 0 1px var(--roz-inchis);
  font-weight: 600;
}

/* ---------- tabele ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }

/* ---------- etichete de stare ---------- */
.eticheta {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.st-programata { background: #eef3fb; color: #3b5f9e; }
.st-finalizata { background: #eaf5ef; color: var(--verde); }
.st-anulata { background: #f4f1f0; color: var(--muted); text-decoration: line-through; }
.st-neprezentata { background: #fbeeee; color: var(--rosu); }

/* ---------- statistici ---------- */
.stat { text-align: center; }
.stat .val { font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat .et { color: var(--muted); font-size: 13px; }

/* ---------- calendar saptamanal ---------- */
.saptamana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 900px) { .saptamana { grid-template-columns: 1fr; } }
.zi {
  background: var(--card); border: 1px solid var(--linie); border-radius: 14px;
  padding: 12px; min-height: 130px;
}
.zi.azi { border-color: var(--roz-inchis); box-shadow: 0 0 0 2px var(--roz-pal-2); }
.zi h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.zi h3 span { color: var(--fg); font-size: 17px; }
.slot {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: var(--roz-pal); border-left: 3px solid var(--roz);
  border-radius: 8px; padding: 7px 9px; margin-bottom: 7px; font-size: 13px;
}
.slot .ora { font-weight: 700; }
.slot .serv { color: var(--muted); font-size: 12px; }
.slot.finalizata { background: #f1f8f4; border-left-color: var(--verde); }
.slot.anulata { background: #f6f4f4; border-left-color: #ccc; opacity: .6; }
.slot.neprezentata { background: #fbf1f1; border-left-color: var(--rosu); }

/* ---------- galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.poza-card {
  background: var(--card); border: 1px solid var(--linie); border-radius: 14px;
  overflow: hidden; box-shadow: var(--umbra); text-decoration: none; color: inherit;
  display: block;
}
.poza-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.poza-card .info { padding: 9px 11px; font-size: 13px; }
.poza-card .info b { display: block; }
.poza-card .info span { color: var(--muted); font-size: 12px; }

/* ---------- mesaje ---------- */
.mesaje { margin-bottom: 18px; }
.mesaj {
  background: var(--auriu-blan); border: 1px solid #f8d48a; color: #8a5600;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 14px;
}

.gol-mesaj { color: var(--muted); font-size: 14px; padding: 10px 0; }
.randuri { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.randuri > * { flex: 1 1 150px; }
.randuri .ingust { flex: 0 0 auto; }
.actiuni { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inline { display: inline; }

/* ---------- prima pagina: banda animata ---------- */
.erou {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--degrade); background-size: 200% 200%;
  animation: degrade-lent 18s ease-in-out infinite;
  color: #fff; border: 0; padding: 30px 40px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 32px;
}
.erou h1 { font-size: 38px; line-height: 1.1; margin: 0; }
.erou .sub { margin: 0 0 18px; max-width: 520px; font-size: 15px; }
.erou .actiuni { margin-top: 0; }
.erou .actiuni .buton { padding: 12px 24px; font-size: 15px; }
.erou a.link-ghid { display: inline-block; margin-top: 14px; font-size: 14px; }
.erou .sub { color: rgba(255,255,255,.85); }
.erou .buton { background: var(--auriu-deschis); color: var(--prun); }
.erou .buton.gol { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.erou a.link-ghid { color: var(--auriu-deschis); font-weight: 600; text-decoration: none; }
.erou a.link-ghid:hover { text-decoration: underline; }

/* eticheta mica de deasupra titlului */
.erou .supratitlu {
  display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--auriu-deschis); border: 1px solid rgba(230,201,143,.5);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; font-size: 11px;
}

/* titlul cu o sclipire aurie care trece peste text */
.sclipire {
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--auriu-deschis) 50%, #fff 60%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sclipire 6s ease-in-out infinite;
}

/* cuvantul care se schimba: Manichiura -> Pedichiura -> ... */
.cuvinte {
  display: inline-grid; vertical-align: bottom; height: 1.3em; overflow: hidden;
  color: var(--auriu-deschis); font-family: var(--font-titlu); font-style: italic;
}
.cuvinte span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(100%);
  animation: cuvant 12s infinite;
}
.cuvinte span:nth-child(2) { animation-delay: 3s; }
.cuvinte span:nth-child(3) { animation-delay: 6s; }
.cuvinte span:nth-child(4) { animation-delay: 9s; }
.erou .rand-cuvinte { font-size: 19px; margin: 6px 0 10px; color: rgba(255,255,255,.9); }

/* cercuri luminoase care plutesc in fundal */
.erou .bula {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .45;
  animation: pluteste 14s ease-in-out infinite alternate;
}
.erou .bula.b1 { width: 260px; height: 260px; background: #b8893b; top: -80px; left: -60px; }
.erou .bula.b2 { width: 320px; height: 320px; background: #a8496a; bottom: -140px; right: -80px; animation-duration: 18s; }
.erou .bula.b3 { width: 160px; height: 160px; background: #e6c98f; top: 40%; left: 62%; opacity: .25; animation-duration: 11s; }

/* sectiunile de pe prima pagina apar usor la derulare */
.apare { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.apare.vizibil { opacity: 1; transform: none; }

@keyframes degrade-lent { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes sclipire { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
@keyframes cuvant {
  0% { opacity: 0; transform: translateY(100%); }
  4%, 21% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-100%); }
}
@keyframes pluteste { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.15); } }

@media (max-width: 700px) {
  .erou { grid-template-columns: 1fr; text-align: center; padding: 22px 18px 26px; }
  .erou .sigla { order: -1; width: 110px; height: 110px; margin: 0 auto; }
  .erou h1 { font-size: 30px; }
  .erou .sub { margin-left: auto; margin-right: auto; }
  .erou .actiuni { justify-content: center; flex-wrap: nowrap; }
  .erou .actiuni .buton { padding: 11px 16px; font-size: 14px; }
  .erou .sub { font-size: 14px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .erou, .sclipire, .erou .bula, .cuvinte span { animation: none; }
  .cuvinte span:first-child { opacity: 1; transform: none; }
  .apare { opacity: 1; transform: none; transition: none; }
}

/* ---------- WhatsApp (pagina de contact) ---------- */
.card-whatsapp { border: 2px solid var(--whatsapp); background: linear-gradient(180deg, #effdf4, #fff 60%); }
.card-whatsapp h2 { color: var(--whatsapp-inchis); }
.buton.whatsapp, button.whatsapp { background: var(--whatsapp); color: #fff; }
.buton.whatsapp:hover, button.whatsapp:hover { background: var(--whatsapp-inchis); filter: none; }
.subiecte-wa { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.subiecte-wa button {
  background: #fff; color: var(--whatsapp-inchis); border: 1px solid #b6ecca;
  border-radius: 999px; padding: 6px 13px; font-size: 13px;
}
.subiecte-wa button.ales { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.wa-plutitor {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; font-size: 28px; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(18,140,75,.35);
}
.wa-plutitor:hover { background: var(--whatsapp-inchis); }

/* ---------- banda WhatsApp (sus, pe tot site-ul public) ---------- */
.banda-wa {
  display: block; text-align: center; text-decoration: none;
  background: var(--whatsapp-inchis); color: #fff; font-size: 13px; padding: 7px 12px;
}
.banda-wa:hover { background: var(--whatsapp); }

/* ---------- de ce sa ne alegi ---------- */
.avantaje > div {
  background: var(--roz-pal); border: 1px solid var(--linie); border-radius: 14px; padding: 16px;
}
.avantaje .iconita {
  display: inline-flex; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 8px;
  align-items: center; justify-content: center; font-size: 22px; background: var(--auriu-blan);
  border: 1px solid var(--auriu-deschis);
}
.avantaje b { display: block; margin-bottom: 4px; }
.avantaje p { margin: 0; color: var(--muted); font-size: 14px; }
@media (min-width: 801px) and (max-width: 1000px) {
  .avantaje { grid-template-columns: 1fr 1fr; }
}

/* ---------- intrebari frecvente ---------- */
.faq details { border-bottom: 1px solid var(--linie); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--roz); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 12px; color: var(--muted); }

/* ---------- reguli la programare ---------- */
.reguli {
  background: var(--roz-pal); border: 1px solid var(--linie); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px; font-size: 14px;
}
.reguli ul { margin: 6px 0 10px; padding-left: 18px; color: var(--muted); }
.reguli li { margin-bottom: 3px; }
.bifa { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.bifa input { width: 18px; height: 18px; accent-color: var(--roz); }

/* ---------- subsol ---------- */
.subsol { background: var(--prun); color: #efe4e8; font-size: 14px; }
.subsol-continut {
  max-width: 1080px; margin: 0 auto; padding: 24px 18px 84px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between;
}
.subsol a { color: var(--auriu-deschis); }
.retele { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.retele a {
  text-decoration: none; border: 1px solid rgba(230,201,143,.45);
  padding: 6px 13px; border-radius: 999px; font-weight: 600;
}
.retele a:hover { background: rgba(230,201,143,.12); }

[hidden] { display: none !important; }

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

/* ---------- recenzii ---------- */
.recenzii {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.recenzie {
  margin: 0; scroll-snap-align: start;
  background: var(--roz-pal); border: 1px solid var(--linie); border-radius: 14px; padding: 16px;
}
.recenzie blockquote { margin: 8px 0; font-size: 15px; }
.recenzie figcaption { color: var(--muted); font-size: 13px; font-weight: 600; }
.stele { color: var(--auriu); letter-spacing: 2px; }
.stele span { color: var(--linie); }
.lasa-recenzie { margin-top: 14px; }
.lasa-recenzie summary { list-style: none; }
.lasa-recenzie summary::-webkit-details-marker { display: none; }
.alege-stele { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.alege-stele input { display: none; }
.alege-stele label { font-size: 30px; color: var(--linie); cursor: pointer; margin: 0; line-height: 1; }
.alege-stele input:checked ~ label,
.alege-stele label:hover, .alege-stele label:hover ~ label { color: var(--auriu); }

/* ---------- ghid "Ce sa aleg" ---------- */
.pas-titlu { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--roz-inchis); margin: 0 0 10px; }
.alegeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.alegere {
  text-align: left; background: #fff; color: var(--fg);
  border: 2px solid var(--linie); border-radius: 14px; padding: 14px 16px; font-weight: 400;
}
.alegere b { display: block; margin-bottom: 4px; font-size: 15px; }
.alegere span { color: var(--muted); font-size: 13px; }
.alegere:hover { border-color: var(--roz); filter: none; }
.alegere.ales { border-color: var(--roz); background: var(--roz-pal); box-shadow: 0 0 0 2px var(--roz-pal-2); }
.recomandare {
  background: var(--degrade); color: #fff; border: 0;
}
.recomandare h2 { font-size: 22px; }
.recomandare p { color: rgba(255,255,255,.95); }
.recomandare ul { margin: 8px 0 16px; padding-left: 20px; }
.recomandare .buton { background: #fff; color: var(--roz-inchis); }
.recomandare .buton.gol { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.85); }

/* ---------- sigla florala animata (templates/_sigla.html) ----------
   Medalion crem si accente roz-prun: contrast puternic pe eroul inchis. */
.sigla { display: block; width: 210px; height: 210px; overflow: visible; }
.sg-medalion { transform-box: fill-box; transform-origin: center; animation: sg-apare .75s cubic-bezier(.2,.8,.2,1) both; }
.sg-inel { stroke-dasharray: 100; animation: sg-inel 1.7s .15s ease-out both; }
.sg-petala { transform-box: fill-box; transform-origin: center; animation: sg-floare .85s cubic-bezier(.2,.8,.2,1) both; }
.sg-petala.p1 { animation-delay: .2s; }
.sg-petala.p2 { animation-delay: .3s; }
.sg-petala.p3 { animation-delay: .4s; }
.sg-petala.p4 { animation-delay: .5s; }
.sg-highlight { opacity: 0; animation: sg-luciu 3.8s 1.5s ease-in-out infinite; }
.sg-diamant { transform-box: fill-box; transform-origin: center; animation: sg-apare .7s .72s cubic-bezier(.2,.8,.2,1) both; }
.sg-sclipire { transform-box: fill-box; transform-origin: center; animation: sg-sclipire 3.2s 1.4s ease-in-out infinite; }
@keyframes sg-apare { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes sg-floare { from { opacity: 0; transform: scale(.25) rotate(-22deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes sg-inel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes sg-luciu { 0%, 18%, 100% { opacity: 0; } 35%, 65% { opacity: .95; } 82% { opacity: 0; } }
@keyframes sg-sclipire { 0%, 12%, 100% { opacity: .25; transform: scale(.82) rotate(0); } 45% { opacity: 1; transform: scale(1.14) rotate(12deg); } 68% { opacity: .65; transform: scale(.96) rotate(0); } }
@media (max-width: 700px) {
  .erou .sigla { width: 126px; height: 126px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-medalion, .sg-inel, .sg-petala, .sg-highlight, .sg-diamant, .sg-sclipire { animation: none; }
  .sg-inel { stroke-dashoffset: 0; }
  .sg-medalion, .sg-petala, .sg-diamant { opacity: 1; transform: none; }
  .sg-highlight { opacity: .85; }
  .sg-sclipire { opacity: .7; }
}
/* ---------- slideshow "Salonul nostru" ---------- */
.slideshow { outline: none; }
.ss-scena {
  position: relative; overflow: hidden; border-radius: 16px;
  aspect-ratio: 16 / 9; background: var(--prun);
  box-shadow: 0 20px 50px rgba(58,31,45,.25);
  touch-action: pan-y; user-select: none;
}
.ss-cadru { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.ss-cadru.activ { opacity: 1; z-index: 2; }
.ss-cadru.iese { opacity: 0; z-index: 1; }
.ss-cadru img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.14); transform-origin: 30% 40%;
}
/* Ken Burns: zoom lent spre interior, cu directii diferite de la o poza la alta */
.ss-cadru.activ img, .ss-cadru.iese img { animation: ken-burns 9s ease-out forwards; }
.ss-cadru:nth-child(3n+2) img { transform-origin: 75% 30%; }
.ss-cadru:nth-child(3n+3) img { transform-origin: 50% 80%; }
@keyframes ken-burns { from { transform: scale(1.14); } to { transform: scale(1); } }

/* umbra de jos, ca textul sa se citeasca pe orice poza */
.ss-cadru::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,8,14,0) 45%, rgba(20,8,14,.78) 100%),
              radial-gradient(ellipse at center, transparent 55%, rgba(20,8,14,.35) 100%);
}
.ss-cadru figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 28px 32px 34px; color: #fff;
}
.ss-cadru figcaption > * {
  display: block; opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.ss-cadru.activ figcaption > * { opacity: 1; transform: none; }
.ss-cadru.activ figcaption > :nth-child(1) { transition-delay: .5s; }
.ss-cadru.activ figcaption > :nth-child(2) { transition-delay: .7s; }
.ss-cadru.activ figcaption > :nth-child(3) { transition-delay: .9s; }
.ss-nr { font-size: 12px; letter-spacing: .2em; color: var(--auriu-deschis); margin-bottom: 6px; }
.ss-nr i { font-style: normal; opacity: .6; }
.ss-cadru figcaption b {
  font-family: var(--font-titlu); font-size: 34px; font-weight: 600; line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.ss-text { font-size: 16px; color: rgba(255,255,255,.88); margin-top: 6px; max-width: 520px; }

.ss-sageata, .ss-pauza {
  position: absolute; z-index: 4; border: 1px solid rgba(255,255,255,.35);
  background: rgba(30,12,22,.35); color: #fff; backdrop-filter: blur(6px);
  border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center;
  transition: background .2s, opacity .3s;
}
.ss-sageata { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 30px; line-height: 1; opacity: 0; }
.ss-inapoi { left: 16px; }
.ss-inainte { right: 16px; }
.ss-scena:hover .ss-sageata, .slideshow:focus-within .ss-sageata { opacity: 1; }
.ss-sageata:hover, .ss-pauza:hover { background: rgba(184,137,59,.75); filter: none; }
.ss-pauza { top: 14px; right: 14px; width: 36px; height: 36px; gap: 4px; }
/* pictograma de pauza (doua bare) / redare (triunghi), desenata din CSS */
.ss-pauza::before, .ss-pauza::after { content: ""; width: 3px; height: 12px; background: #fff; border-radius: 1px; }
.ss-pauza.oprit::after { display: none; }
.ss-pauza.oprit::before {
  width: 0; height: 0; background: none; border-radius: 0; margin-left: 3px;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
}
.ss-progres { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: rgba(255,255,255,.15); }
.ss-progres span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--auriu-deschis), var(--auriu)); }

.ss-miniaturi {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 4px 2px 6px;
  scrollbar-width: none;
}
.ss-miniaturi::-webkit-scrollbar { display: none; }
.ss-miniaturi button {
  flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden;
  background: none; border: 2px solid transparent; opacity: .55; transition: opacity .3s, border-color .3s, transform .3s;
}
.ss-miniaturi button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-miniaturi button:hover { opacity: .9; filter: none; }
.ss-miniaturi button.activ { opacity: 1; border-color: var(--auriu); transform: translateY(-2px); }

@media (max-width: 700px) {
  .ss-scena { aspect-ratio: 4 / 5; }
  .ss-cadru figcaption { padding: 20px 18px 24px; }
  .ss-cadru figcaption b { font-size: 26px; }
  .ss-text { font-size: 14px; }
  .ss-sageata { opacity: 1; width: 40px; height: 40px; margin-top: -20px; font-size: 24px; }
  .ss-miniaturi button { width: 64px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-cadru, .ss-cadru figcaption > * { transition: none; }
  .ss-cadru.activ img, .ss-cadru.iese img { animation: none; transform: none; }
}
