/* Tileor Hero — contenuti Instagram a tutta larghezza, testo sotto (nessuna sovrapposizione). */
.tlh {
  --tlh-ink: #ECEBE7;
  --tlh-muted: #C4C1BB;
  --tlh-line: #3A3936;
  --tlh-accent: #D9B97E;
  --tlh-bg: #141414;
  --tlh-font: inherit;
  --tlh-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tlh-offset: 88px; /* altezza dell'intestazione del sito */
  position: relative;
  background: var(--tlh-bg);
  color: var(--tlh-ink);
  font-family: var(--tlh-font);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.tlh *, .tlh *::before, .tlh *::after { box-sizing: border-box; }

/* 1) Fascia video a tutta larghezza: riempie lo schermo sotto l'intestazione */
.tlh-band {
  position: relative; width: 100%; overflow: hidden; background: #1E1D1B;
  height: calc(100vh - var(--tlh-offset) - 64px);
  height: calc(100svh - var(--tlh-offset) - 64px);
  min-height: 360px; max-height: 960px;
}
body.admin-bar .tlh-band { height: calc(100svh - var(--tlh-offset) - 64px - 32px); }
.tlh-stage { position: absolute; inset: 0; }
.tlh-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.tlh-slide.is-active { opacity: 1; }
.tlh-stage .tlh-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tlh-slide.is-active .tlh-media { animation: tlh-kb 16s ease-in-out both; }
@keyframes tlh-kb { from { transform: scale(1); } to { transform: scale(1.06); } }

/* 2) Barra di avanzamento sotto il video */
.tlh-bar { max-width: 1320px; margin: 0 auto; padding: 10px 40px; border-bottom: 1px solid var(--tlh-line); }
.tlh-controls { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.tlh-controls[hidden] { display: none; }
.tlh-play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(236,235,231,.4); background: transparent; color: var(--tlh-ink);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.tlh-play:hover { background: rgba(236,235,231,.12); }
.tlh .tlh-ico-play { display: none; }
.tlh.is-paused .tlh-ico-play { display: block; }
.tlh.is-paused .tlh-ico-pause { display: none; }
.tlh.is-paused .tlh-slide.is-active .tlh-media { animation-play-state: paused; }
.tlh-segs { flex: 1 1 auto; display: flex; gap: 4px; min-width: 0; }
.tlh-seg { flex: 1 1 0; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.tlh-seg-bar { position: relative; display: block; height: 2px; width: 100%; background: rgba(236,235,231,.22); overflow: hidden; }
.tlh-seg-fill { position: absolute; inset: 0; background: var(--tlh-ink); transform: scaleX(0); transform-origin: left center; }
.tlh-seg:hover .tlh-seg-bar { background: rgba(236,235,231,.45); }
.tlh-seg-label { display: none; } /* il marchio è indicato nella didascalia */

.tlh-top, .tlh-live, .tlh-card-meta, .tlh-card-more { font-family: var(--tlh-mono); text-transform: uppercase; letter-spacing: .05em; }
.tlh-live { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--tlh-muted); }
.tlh-live[hidden] { display: none; }
.tlh-live i { width: 7px; height: 7px; border-radius: 50%; background: #E0533A; display: inline-block; animation: tlh-pulse 2s ease-in-out infinite; }
@keyframes tlh-pulse { 50% { opacity: .35; } }

/* 3) Testo e didascalia sotto la barra */
.tlh-inner {
  max-width: 1320px; margin: 0 auto; padding: 72px 40px 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 64px; align-items: end;
}
.tlh-copy { min-width: 0; }
.tlh-top { display: block; font-size: 12px; color: var(--tlh-muted); margin-bottom: 32px; }
.tlh-title { margin: 0; color: var(--tlh-ink); font-weight: 400; font-size: clamp(48px, 7vw, 112px); line-height: .95; letter-spacing: -.045em; }
.tlh-title em { font-style: normal; font-weight: 300; color: var(--tlh-accent); }
.tlh-text { margin: 32px 0 0; font-size: 19px; line-height: 1.5; max-width: 520px; color: #E4E1DB; }
.tlh-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.tlh-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.tlh-btn--solid { background: var(--tlh-ink); color: #141414; }
.tlh-btn--solid:hover { background: #fff; color: #141414; }
.tlh-btn--ghost { color: var(--tlh-ink); border: 1px solid var(--tlh-ink); }
.tlh-btn--ghost:hover { background: rgba(236,235,231,.12); color: var(--tlh-ink); }

.tlh-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--tlh-ink); border-top: 1px solid var(--tlh-line); padding-top: 20px; }
.tlh-card[hidden] { display: none; }
.tlh-card:hover { color: var(--tlh-ink); }
.tlh-card:hover .tlh-card-more { text-decoration: underline; text-underline-offset: 3px; }
.tlh-card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--tlh-muted); }
.tlh-card-brand { font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.tlh-card-cap { font-size: 15px; line-height: 1.45; color: var(--tlh-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tlh-card-cap:empty { display: none; }
.tlh-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; margin-top: 4px; }

.tlh-btn:focus-visible, .tlh-card:focus-visible, .tlh-play:focus-visible, .tlh-seg:focus-visible { outline: 2px solid var(--tlh-accent); outline-offset: 3px; }

/* Nessun contenuto e nessuna riserva: solo il testo */
.tlh.tlh--empty .tlh-band, .tlh.tlh--empty .tlh-bar { display: none; }

/* Tema chiaro: la hero prende il colore della pagina e il video ci sfuma dentro */
.tlh--chiaro {
  --tlh-ink: #141414; --tlh-muted: #5A5852; --tlh-line: #CFCCC4; --tlh-accent: #7A5C24; --tlh-bg: #ECEBE7;
}
.tlh--chiaro .tlh-band { background: var(--tlh-bg); }
.tlh--chiaro .tlh-band::before, .tlh--chiaro .tlh-band::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.tlh--chiaro .tlh-band::before { top: 0; height: 9%; background: linear-gradient(to bottom, #ECEBE7, rgba(236,235,231,0)); }
.tlh--chiaro .tlh-band::after {
  bottom: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(236,235,231,0) 0%, rgba(236,235,231,.35) 40%, rgba(236,235,231,.82) 75%, #ECEBE7 100%);
}
.tlh--chiaro .tlh-stage .tlh-media { filter: saturate(.92) contrast(.97); }
.tlh--chiaro .tlh-bar { border-bottom: 0; margin-top: -30px; position: relative; z-index: 3; }
.tlh--chiaro .tlh-play { border-color: rgba(20,20,20,.3); }
.tlh--chiaro .tlh-play:hover { background: rgba(20,20,20,.06); }
.tlh--chiaro .tlh-seg-bar { background: rgba(20,20,20,.16); }
.tlh--chiaro .tlh-seg:hover .tlh-seg-bar { background: rgba(20,20,20,.32); }
.tlh--chiaro .tlh-text { color: #2E2D2A; }
.tlh--chiaro .tlh-btn--solid { color: #ECEBE7; }
.tlh--chiaro .tlh-btn--solid:hover { background: #2E2D2A; color: #ECEBE7; }
.tlh--chiaro .tlh-btn--ghost:hover { background: rgba(20,20,20,.06); }
.tlh--chiaro .tlh-inner { padding-top: 48px; }

@media (max-width: 900px) {
  .tlh-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 24px 64px; align-items: start; }
  .tlh-bar { padding: 8px 24px; }
}
@media (max-width: 640px) {
  .tlh-band { min-height: 320px; }
  .tlh-inner { padding: 40px 16px 56px; }
  .tlh-bar { padding: 8px 16px; }
  .tlh-live { display: none !important; }
  .tlh-text { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .tlh-slide { transition: none; }
  .tlh-slide.is-active .tlh-media, .tlh-live i { animation: none; }
}
