/* === LOVELLA – hero carousel na titulce, verze 2 (17. 11. 2026) ===
   v2: větší boční odsazení textu na mobilu (18 → 28 px), jinak beze změny proti v1.
   Nahrát na FTP: /user/documents/css/titulka-hero.css
   Záhlaví (pod titulka-c.css): <link href="/user/documents/css/titulka-hero.css?v=2" rel="stylesheet" />
   Patří k titulka-hero.js (Zápatí). Vrácení: smazat oba řádky – titulka se vrátí k dnešnímu banneru.
   POJISTKA: všechna pravidla platí jen pro třídy lv-hero…, které vytvoří titulka-hero.js.
   Při každé úpravě: nová kopie souboru s vyšším číslem, v Záhlaví zvýšit ?v=.
*/
.in-index {
  --lvh-hneda: #3a2f28;
  --lvh-hneda-2: #5a4a40;
  --lvh-bezova: #eaccb2;
  --lvh-oranz: #d89f71;
  --lvh-krem: #faf5f0;
  --lvh-linka: #ead9c8;
  --lvh-text: #1a1919;
  --lvh-vyska: clamp(420px, 40vw, 540px);
}

/* původní Shoptet carousel se schová, hero ho nahradí */
.in-index .wide-carousel.lv-hero-aktivni #carousel { display: none !important; }

.in-index .lv-hero { position: relative; overflow: hidden; background: var(--lvh-krem); }
.in-index .lv-hero__pas {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.in-index .lv-hero__pas::-webkit-scrollbar { display: none; }

/* --- jeden snímek --- */
.in-index .lv-hero__snimek {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: var(--lvh-vyska); box-sizing: border-box; background: var(--barva, var(--lvh-krem)); color: var(--lvh-text);
}
.in-index .lv-hero__snimek--tmavy { color: #fff; }
.in-index .lv-hero__snimek--tmavy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 72% 50%, #eaccb233 0%, transparent 70%);
}
.in-index .lv-hero__vnitrek {
  position: relative; width: 100%; max-width: 1180px; box-sizing: border-box;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  padding: 40px 72px 56px;
}

/* text */
.in-index .lv-hero__stitek {
  display: inline-block; padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
  background: #fff; color: var(--lvh-hneda-2); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.in-index .lv-hero__snimek--tmavy .lv-hero__stitek { background: var(--lvh-bezova); color: var(--lvh-hneda); }
.in-index .lv-hero__snimek h2 {
  margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 900; letter-spacing: -.02em;
  color: inherit; text-wrap: balance;
}
.in-index .lv-hero__slovo { font-style: normal; color: var(--lvh-oranz); display: inline-block; transition: opacity .25s, transform .25s; }
.in-index .lv-hero__snimek--tmavy .lv-hero__slovo { color: var(--lvh-bezova); }
.in-index .lv-hero__slovo.mizi { opacity: 0; transform: translateY(6px); }
.in-index .lv-hero__snimek p { margin: 0 0 24px; font-size: 17px; line-height: 1.55; max-width: 460px; color: var(--lvh-hneda-2); }
.in-index .lv-hero__snimek--tmavy p { color: #ead9c8; }
.in-index .lv-hero__akce { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.in-index .lv-hero__tlacitko {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  background: var(--lvh-hneda); color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none !important;
  transition: background .15s, transform .15s;
}
.in-index .lv-hero__tlacitko:hover { background: #000; transform: translateY(-1px); }
.in-index .lv-hero__snimek--tmavy .lv-hero__tlacitko { background: var(--lvh-bezova); color: var(--lvh-hneda) !important; }
.in-index .lv-hero__snimek--tmavy .lv-hero__tlacitko:hover { background: #fff; }
.in-index .lv-hero__odkaz { font-weight: 800; font-size: 15px; color: inherit !important; text-decoration: underline !important; text-underline-offset: 4px; }

/* fotky – jedna velká karta + dvě menší, lehce se vznášejí */
.in-index .lv-hero__fotky { position: relative; height: 340px; }
.in-index .lv-hero__fotky img {
  position: absolute; display: block; aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: 22px;
  box-shadow: 0 18px 40px #3a2f2830; animation: lv-hero-plav 6s ease-in-out infinite alternate;
}
.in-index .lv-hero__fotky img:nth-child(1) { left: 0; top: 10%; width: 60%; z-index: 2; }
.in-index .lv-hero__fotky img:nth-child(2) { right: 0; top: 0; width: 40%; animation-delay: -2s; }
.in-index .lv-hero__fotky img:nth-child(3) { right: 6%; bottom: 0; width: 40%; animation-delay: -4s; }
.in-index .lv-hero__fotky img:only-child { left: 50%; top: 0; width: auto; height: 100%; transform: translateX(-50%); }
@keyframes lv-hero-plav { from { translate: 0 0; } to { translate: 0 -10px; } }

/* fotografický snímek z adminu (Vzhled → Bannery → Carousel)
   Fotka se vloží celá (neořezaná); je-li širší než hero, okraje vyplní rozmazaná kopie téže fotky. */
.in-index .lv-hero__snimek--foto { padding: 0; background: var(--lvh-hneda); }
.in-index .lv-hero__snimek--foto::before {
  content: ""; position: absolute; inset: -40px; background: var(--foto) center / cover no-repeat; filter: blur(28px) brightness(.8);
}
.in-index .lv-hero__snimek--foto a { display: block; position: absolute; inset: 0; }
.in-index .lv-hero__snimek--foto img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; position: relative; }
.in-index .lv-hero__snimek--foto .extended-banner-texts { display: none; }

/* šipky a tečky */
.in-index .lv-hero__sip {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: #fff; color: var(--lvh-hneda); box-shadow: 0 4px 16px #0003; cursor: pointer; font-size: 22px; line-height: 1;
  opacity: .9; transition: opacity .15s, transform .15s;
}
.in-index .lv-hero__sip:hover { opacity: 1; transform: translateY(-50%) scale(1.06); }
.in-index .lv-hero__sip:focus-visible { outline: 3px solid var(--lvh-oranz); outline-offset: 2px; }
.in-index .lv-hero__sip.l { left: 18px; } .in-index .lv-hero__sip.p { right: 18px; }
.in-index .lv-hero__tecky { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.in-index .lv-hero__tecky button {
  position: relative; overflow: hidden; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: #3a2f2840; transition: width .25s, background .25s;
}
.in-index .lv-hero.tmavy .lv-hero__tecky button { background: #ffffff55; }
.in-index .lv-hero__tecky button.aktivni { width: 34px; background: #3a2f2866; }
.in-index .lv-hero.tmavy .lv-hero__tecky button.aktivni { background: #ffffff77; }
.in-index .lv-hero__tecky button.aktivni::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lvh-hneda); border-radius: 999px;
}
.in-index .lv-hero.tmavy .lv-hero__tecky button.aktivni::after { background: #fff; }
.in-index .lv-hero.hraje .lv-hero__tecky button.aktivni::after { animation: lv-hero-prubeh var(--lvh-interval, 6s) linear forwards; }
@keyframes lv-hero-prubeh { from { width: 0; } to { width: 100%; } }
.in-index .lv-hero__tecky button:focus-visible { outline: 2px solid var(--lvh-oranz); outline-offset: 2px; }

/* --- tablet --- */
@media (max-width: 991px) {
  .in-index .lv-hero__vnitrek { padding: 36px 64px 52px; gap: 24px; }
  .in-index .lv-hero__fotky { height: 280px; }
}

/* --- mobil --- */
@media (max-width: 767px) {
  .in-index { --lvh-vyska: auto; }
  /* Shoptet dává .wide-carousel na mobilu margin -10px → boční odsazení 28px = 18px od okraje displeje */
  .in-index .lv-hero__vnitrek { grid-template-columns: 1fr; gap: 22px; padding: 26px 28px 48px; }
  .in-index .lv-hero__snimek h2 { font-size: 28px; }
  .in-index .lv-hero__snimek p { font-size: 15px; margin-bottom: 18px; }
  .in-index .lv-hero__tlacitko { padding: 13px 22px; font-size: 15px; }
  .in-index .lv-hero__fotky { height: 200px; margin: 0 auto; width: min(100%, 330px); }
  .in-index .lv-hero__fotky img { border-radius: 16px; }
  .in-index .lv-hero__fotky img:nth-child(1) { width: 56%; top: 4%; }
  .in-index .lv-hero__fotky img:nth-child(2) { width: 38%; }
  .in-index .lv-hero__fotky img:nth-child(3) { width: 38%; right: 4%; bottom: 2%; }
  .in-index .lv-hero__vnitrek { padding-bottom: 54px; }
  .in-index .lv-hero__sip { display: none; }
  .in-index .lv-hero__tecky { bottom: 14px; }
  /* fotobanner z adminu má poměr 2:1 – na mobilu by se ořízl na zlomek, proto se nezobrazí */
  .in-index .lv-hero__snimek--foto { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .in-index .lv-hero__pas { scroll-behavior: auto; }
  .in-index .lv-hero__fotky img { animation: none; }
}
