/* ===== HOME ===== */

/* --- Slider noutăți --- */
.p-home.home-slider .slide {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}.p-home .slide::before { background: rgba(0,0,0,.4); }.p-home .slide.shade-dark::before { background: rgba(0,0,0,.5); }.p-home .slide.slide-red::before { background: rgba(249,0,0,.75); }.p-home .slide-content { padding-top: 65px; padding-bottom: 80px; }.p-home .slide h2, .p-home .slide h1 { margin-bottom: 26px; color: #fff; }.p-home .slide-text { max-width: 844px; margin: 0 auto; }.p-home .slide-text-narrow { max-width: 536px; }.p-home .slide-text-sm { max-width: 640px; }.p-home .slide-credit { max-width: 844px; margin: 0 auto; color: #f9a4a4; }.p-home .slide-links { margin-top: 22px; font-style: italic; }.p-home .slide-links a { color: #fff; text-decoration: underline; }.p-home .slide-btn-square { border-radius: 6px; letter-spacing: 0; text-transform: none; font-size: .9375rem; padding: 8px 33px; margin-top: 54px; }.p-home .slide-btn-red { background: var(--el-red); color: #fff; border-radius: 0; text-transform: uppercase; font-weight: 700; font-size: 1rem; line-height: 1.4; padding: 10px 30px; margin-top: 35px; }.p-home .slide-btn-red:hover { background: var(--el-maroon); color: #fff; }.p-home .slide-video, .p-home .slide-yt {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; pointer-events: none;
}.p-home .slide-yt { overflow: hidden; }.p-home .slide-yt iframe { position: absolute; width: 178%; height: 178%; left: -39%; top: -39%; border: 0; }.p-home .slide::before { z-index: 1; }.p-home .slide > .slide-content { z-index: 2; }.p-home .slide-logo { max-width: 168px; }.p-home .slide-primarie { max-width: 216px; margin-top: 10px; }/* Slide Dansul Corbilor */
.p-home .slide-corbi { padding-top: 40px; max-width: 1261px; }.p-home .corbi-logos img { height: 150px; width: 100%; object-fit: contain; }.p-home .corbi-title { max-width: 1073px; max-height: 239px; object-fit: contain; display: block; margin: 0 auto; }.p-home .el-countdown { display: inline-flex; align-items: flex-start; gap: 12px; margin-top: 40px; padding: 8px 20px; border-radius: 19px; }.p-home .el-countdown > div { display: flex; flex-direction: column; align-items: center; min-width: 60px; }.p-home .cd-num, .p-home .cd-sep { font-weight: 700; font-size: 1.78rem; line-height: 1; }.p-home .cd-lbl { font-size: 1rem; text-transform: uppercase; }.p-home .corbi-bottom { margin-top: -20px; padding: 0 100px; }.p-home .corbi-bottom img { max-width: 300px; max-height: 127px; object-fit: contain; }.p-home .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; margin: 0 4px; }.p-home .carousel-control-prev, .p-home .carousel-control-next { width: 10%; z-index: 3; }.p-home .carousel-control-prev-icon, .p-home .carousel-control-next-icon { width: 3.5rem; height: 3.5rem; }.p-home .carousel-indicators { z-index: 3; }/* ===== HOME v3 ===== */
/* Slider: caption mai elegant */
.p-home .slide::before { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.7) 100%); }
.p-home .slide.slide-red::before { background: linear-gradient(180deg, rgba(193,12,12,.78), rgba(148,7,7,.88)); }
.p-home .slide h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.p-home .slide-text { font-size: clamp(.95rem, .9rem + .25vw, 1.1rem); color: rgba(255,255,255,.92); }
.p-home .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; }
.p-home .carousel-control-prev-icon, .p-home .carousel-control-next-icon {
  width: 3rem; height: 3rem; background-color: rgba(0,0,0,.35); border-radius: 50%; background-size: 45%;
}

/* Cum se pronunță */
.p-home.home-pronunta { background-position: 50% 20%; }
.p-home.home-pronunta .panel { max-width: 520px; }
.p-home .pronunta-audio audio { width: 100%; height: 40px; }

/* Statistici */
.p-home .stats-grid { max-width: 1000px; margin: 0 auto; }
.p-home .stat-card {
  border-radius: var(--el-radius); text-align: center; padding: 26px 14px 22px; height: 100%;
  box-shadow: var(--el-shadow); transition: transform .3s, box-shadow .3s;
}
.p-home .stat-card.bg-el-red { background: linear-gradient(145deg, #ff2a2a, #e00000) !important; }
.p-home .stat-card.bg-el-maroon { background: linear-gradient(145deg, #a80d0d, #7c0505) !important; }
.p-home .stat-card.bg-el-red-dark { background: linear-gradient(145deg, #d41616, #a50a0a) !important; }
.p-home .stat-card:hover { transform: translateY(-6px); box-shadow: var(--el-shadow-lg); }
.p-home .stat-card img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 8px; }
.p-home .stat-card h3 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); color: #fff; margin: 0 0 4px; }
.p-home .stat-card p { font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; margin: 0; line-height: 1.4; color: rgba(255,255,255,.9); }

/* Comunități */
.p-home .loc-tile {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; border-radius: var(--el-radius);
  background-size: cover; background-position: center; overflow: hidden; text-decoration: none; box-shadow: var(--el-shadow);
  transition: transform .4s, box-shadow .4s;
}
.p-home .loc-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%); transition: background .4s; }
.p-home .loc-tile:hover { transform: translateY(-6px); box-shadow: var(--el-shadow-lg); }
.p-home .loc-tile:hover::before { background: linear-gradient(180deg, rgba(193,12,12,.1) 20%, rgba(193,12,12,.85) 100%); }
.p-home .loc-tile span {
  position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: 1px;
  padding: 0 26px 22px; background: none; margin: 0; width: auto; text-align: left;
}
.p-home .loc-tile span::after { content: " →"; opacity: 0; transition: opacity .3s; }
.p-home .loc-tile:hover span::after { opacity: 1; }

/* Muzică */
.p-home.home-muzica { min-height: clamp(480px, 80vh, 820px); background-position: center 30%; }

/* Fondatori */
.p-home .founder {
  display: grid; grid-template-columns: 5fr 7fr; background: #fff; border-radius: var(--el-radius);
  overflow: hidden; box-shadow: var(--el-shadow-lg); margin-bottom: 40px;
}
.p-home .founder.reverse { grid-template-columns: 7fr 5fr; }
.p-home .founder.reverse .founder-media { order: 2; }
.p-home .founder-media { position: relative; min-height: 420px; }
.p-home .founder-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-home .founder-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.p-home .founder blockquote {
  font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.25; color: var(--el-red-dark);
  margin: 0 0 1.4rem; padding-left: 20px; border-left: 5px solid var(--el-red);
}
.p-home .founder h3 { font-size: 1.15rem; color: var(--el-ink); margin-bottom: .8rem; }
.p-home .founder p { color: var(--el-muted); }
@media (max-width: 991.98px) {
  .p-home .founder, .p-home .founder.reverse { grid-template-columns: 1fr; }
  .p-home .founder.reverse .founder-media { order: 0; }
  .p-home .founder-media { min-height: 300px; }
}

/* Pâinea */
.p-home .paine-grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: clamp(420px, 55vw, 680px); }
.p-home .paine-grid > div { border-radius: var(--el-radius); overflow: hidden; box-shadow: var(--el-shadow); }
.p-home .paine-a { grid-row: span 2; }
.p-home .paine-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.p-home .paine-grid > div:hover img { transform: scale(1.05); }
@media (max-width: 767.98px) {
  .p-home .paine-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px; height: auto; gap: 10px; }
  .p-home .paine-a { grid-row: auto; grid-column: span 2; }
}

/* ===== Corecturi mobil (v3.1) ===== */
.p-home .corbi-title { max-width: min(1073px, 100%); height: auto; }
.p-home.home-slider { overflow: hidden; }
@media (max-width: 767.98px) {
  .p-home .slide-content { padding-left: 22px; padding-right: 22px; }
  .p-home .slide-corbi { padding-top: 24px; }
  .p-home .el-countdown { gap: 6px; padding: 6px 4px; margin-top: 18px; max-width: 100%; }
  .p-home .el-countdown > div { min-width: 0; }
  .p-home .cd-num, .p-home .cd-sep { font-size: 1.35rem; }
  .p-home .cd-lbl { font-size: .6rem; letter-spacing: .5px; }
  .p-home .corbi-bottom { margin-top: 18px; gap: 10px; }
  .p-home .corbi-bottom img { max-width: 70%; }
  .p-home .slide-logo { max-width: 110px; }
  .p-home .slide-primarie { max-width: 150px; margin-top: 0; }
  .p-home .slide-yt iframe { width: 300%; left: -100%; }
  /* Se pronunță: poza sus, vizibilă; textul dedesubt pe fundal închis */
  .p-home.home-pronunta {
    display: block; min-height: 0; padding-top: 72vw; background-size: 100% auto;
    background-position: top center; background-color: #1d1416;
  }
  .p-home.home-pronunta::before { background: linear-gradient(180deg, rgba(29,20,22,0) 0, rgba(29,20,22,0) 40vw, #1d1416 72vw); }
  .p-home.home-pronunta .panel { background: transparent; box-shadow: none; backdrop-filter: none; padding: 8px 4px 48px; max-width: none; }
}
/* desktop: panou mai discret, poza respiră */
@media (min-width: 768px) {
  .p-home.home-pronunta .panel { background: rgba(20,10,10,.55); }
}
/* Ecrane mari: fondatori și pâinea mai generoase */
@media (min-width: 1600px) {
  .p-home .founder-media { min-height: 520px; }
  .p-home .paine-grid { height: clamp(560px, 40vw, 1100px); }
  .p-home .stats-grid { max-width: 1200px; }
}

/* Slide Crăciun – „Primiți colinda?” */
.p-home .slide.slide-xmas::before { background: radial-gradient(ellipse at center, rgba(40,0,0,.35) 0%, rgba(60,0,0,.75) 100%); }
.p-home .slide-xmas h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); letter-spacing: .02em; }
.p-home .xmas-dates { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 3vw, 44px); margin-top: clamp(24px, 3vw, 40px); }
.p-home .xmas-date {
  position: relative; display: flex; flex-direction: column; align-items: center;
  min-width: clamp(150px, 14vw, 230px); padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 32px);
  border: 1px solid rgba(232, 194, 122, .75); border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, rgba(20,0,0,.55), rgba(90,0,0,.55)); backdrop-filter: blur(4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 6px rgba(232,194,122,.12);
}
.p-home .xmas-month { color: #e8c27a; text-transform: uppercase; letter-spacing: 4px; font-size: .72rem; font-weight: 700; }
.p-home .xmas-day { color: #fff; font-size: clamp(3rem, 2.2rem + 3vw, 5rem); font-weight: 700; line-height: 1; margin: 6px 0 10px; text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.p-home .xmas-place { color: #fff; font-size: .95rem; letter-spacing: 1px; padding-top: 10px; border-top: 1px solid rgba(232,194,122,.6); }
.p-home .xmas-star { color: #e8c27a; font-size: 1.4rem; opacity: .9; }
@media (max-width: 575.98px) {
  .p-home .xmas-dates { gap: 10px; }
  .p-home .xmas-date { min-width: 0; flex: 1; padding: 16px 10px; }
  .p-home .xmas-place { font-size: .8rem; }
  .p-home .xmas-star { font-size: 1rem; }
}
@media (min-width: 1400px) {
  .p-home.home-muzica, .p-home.home-pronunta { min-height: calc(100vh - 88px); }
}

/* Countdown Dansul Corbilor: chenar care îl separă de restul */
.p-home .el-countdown {
  border: 2px solid rgba(255,255,255,.85); border-radius: 18px; background: rgba(90,0,0,.35);
  padding: 12px clamp(14px, 2vw, 28px); box-shadow: 0 10px 30px rgba(0,0,0,.25); backdrop-filter: blur(3px);
}
@media (max-width: 767.98px) { .p-home .el-countdown { padding: 8px 12px; } }
/* Zăpadă pe slide-ul de Crăciun */
/* (stilul ninsorii e acum în styles.css) */

/* Datele concertelor: localitate + animație de evidențiere */
.p-home .xmas-town { color: #e8c27a; font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
@keyframes xmasGlow {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 6px rgba(232,194,122,.12), 0 0 0 0 rgba(232,194,122,0); }
  50% { transform: translateY(-6px) scale(1.04); box-shadow: 0 24px 50px rgba(0,0,0,.4), inset 0 0 0 6px rgba(232,194,122,.25), 0 0 34px 6px rgba(232,194,122,.45); }
}
@keyframes xmasTwinkle { 0%, 100% { opacity: .5; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.25) rotate(45deg); } }
.p-home .carousel-item.active .xmas-date { animation: xmasGlow 3.2s ease-in-out infinite; }
.p-home .carousel-item.active .xmas-date + .xmas-star + .xmas-date { animation-delay: 1.6s; }
.p-home .carousel-item.active .xmas-star { display: inline-block; animation: xmasTwinkle 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .p-home .xmas-date, .p-home .xmas-star { animation: none !important; } }
.p-home .xmas-hour { color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: 2px; margin: -4px 0 8px; opacity: .95; }

/* ===== v7: slider – pozele în prim-plan =====
   Textul stă jos, mai mic, pe un degrade discret; restul pozei rămâne liber.
   (Slide-ul de Crăciun și cel cu numărătoarea nu sunt afectate.) */
.p-home .slide.slide-low { align-items: flex-end; }
.p-home .slide.slide-low::before {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.85) 100%);
}
.p-home .slide.slide-low > .slide-content { padding-top: 40px; padding-bottom: 64px; }
.p-home .slide.slide-low h2 {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.3rem); margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.p-home .slide.slide-low .slide-text {
  font-size: clamp(.82rem, .78rem + .2vw, .98rem); line-height: 1.6; max-width: 820px; text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.p-home .slide.slide-low .slide-credit, .p-home .slide.slide-low .slide-links { font-size: .8rem; margin-top: 8px; }
.p-home .slide.slide-low .btn { margin-top: 14px; padding: .55rem 1.6rem; font-size: .8rem; }
.p-home .slide.slide-low .slide-btn-red { font-size: .8rem; padding: 8px 22px; margin-top: 16px; }
@media (min-width: 1400px) {
  .p-home .slide.slide-low > .slide-content { padding-bottom: 72px; }
}
@media (max-width: 767.98px) {
  .p-home .slide.slide-low > .slide-content { padding-bottom: 54px; }
  .p-home .slide.slide-low .slide-text { font-size: .8rem; line-height: 1.5; }
}

/* Marcaj discret „Generată cu AI” pe poza de Crăciun */
.p-home .ai-badge {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  font-family: var(--el-font); font-size: .68rem; letter-spacing: 1px; color: #fff; line-height: 1;
  padding: 6px 10px; border: 1px solid rgba(255,255,255,.75); border-radius: 6px;
  background: rgba(20,20,20,.55); backdrop-filter: blur(2px); pointer-events: none; white-space: nowrap;
}
.p-home .ai-badge strong { font-weight: 700; }
@media (max-width: 767.98px) { .p-home .ai-badge { font-size: .58rem; right: 10px; bottom: 44px; padding: 5px 8px; } }

/* v7.1: data – numărătoarea – locul pe un rând (desktop); pe mobil numărătoarea sus, data și locul dedesubt, una lângă alta */
.p-home .corbi-info {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 48px);
  margin-top: clamp(20px, 3vw, 40px);
}
.p-home .corbi-info .el-countdown { margin-top: 0; grid-column: 2; }
.p-home .corbi-info .corbi-date { grid-column: 1; justify-self: end; }
.p-home .corbi-info .corbi-place { grid-column: 3; justify-self: start; }
.p-home .corbi-info img { max-height: clamp(70px, 8vw, 120px); max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 767.98px) {
  .p-home .corbi-info { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .p-home .corbi-info .el-countdown { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .p-home .corbi-info .corbi-date { grid-column: 1; grid-row: 2; justify-self: end; }
  .p-home .corbi-info .corbi-place { grid-column: 2; grid-row: 2; justify-self: start; }
  .p-home .corbi-info img { max-height: 64px; }
}
/* „Generată cu AI” – mai mic */
.p-home .ai-badge { font-size: .56rem; padding: 4px 8px; letter-spacing: .8px; border-radius: 5px; right: 14px; bottom: 14px; }
@media (max-width: 767.98px) { .p-home .ai-badge { font-size: .5rem; padding: 3px 6px; right: 8px; bottom: 44px; } }

/* ===== v8: slider pe telefon – poza întreagă sus, textul dedesubt =====
   Pe ecrane înguste, poza nu mai e tăiată: se vede toată, pe lățimea ecranului,
   iar textul vine sub ea, pe fundal închis. Înălțimea zonei pozei = --img-h
   (implicit 75vw, pentru poze 4:3). Pentru o poză 16:9 pui în style: --img-h:56.25vw;
   (Crăciun și numărătoarea nu sunt afectate – nu au clasa slide-low.) */
@media (max-width: 767.98px) {
  .p-home .slide.slide-low {
    align-items: flex-start;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-color: #c10c0c;
  }
  .p-home .slide.slide-low::before {
    background: linear-gradient(180deg, rgba(193,12,12,0) 0, rgba(193,12,12,0) calc(var(--img-h, 75vw) - 16vw), #c10c0c var(--img-h, 75vw), #c10c0c 100%);
  }
  .p-home .slide.slide-low > .slide-content { padding-top: calc(var(--img-h, 75vw) - 6vw); padding-bottom: 54px; }
  .p-home .slide.slide-low .slide-video,
  .p-home .slide.slide-low .slide-yt { bottom: auto; height: var(--img-h, 75vw); }
  .p-home .slide.slide-low .slide-yt iframe { width: 100%; height: 100%; left: 0; top: 0; }
}
@media (max-width: 767.98px) {
  /* săgețile stau pe poză, nu peste text */
  .p-home .carousel-control-prev, .p-home .carousel-control-next { top: 0; bottom: auto; height: 56vw; }
}
@media (max-width: 767.98px) {
  /* pe fundalul roșu: butoanele albe cu text roșu, creditul foto alb */
  .p-home .slide.slide-low .slide-btn-red,
  .p-home .slide.slide-low .btn-elijah { background: #fff; color: var(--el-red); border-color: #fff; }
  .p-home .slide.slide-low .slide-credit { color: rgba(255,255,255,.8); }
}
