/* ═══════════════════════════════════════════════════════════════════════════
   blocchi.css — Stili per i blocchi CMS del sito Luxoria
   Tutti gli stili precedentemente inline in _blocchi.php
   Usa i CSS token definiti in site.css (:root)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Base comune a ogni blocco ────────────────────────────────────────────── */
.lux-blk {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Sfondo dinamico (da campo sfondo nel DB) */
.lux-blk--nero {
  background: #080808;
}

.lux-blk--grigio {
  background: #111111;
}

/* ─── Inner containers ──────────────────────────────────────────────────────── */
.lux-blk__inner {
  max-width: 780px;
  margin: 0 auto;
}

.lux-blk__inner--wide {
  max-width: 1100px;
  margin: 0 auto;
}

.lux-blk__inner--narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ─── Tipografia blocchi ────────────────────────────────────────────────────── */
.lux-blk__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  text-transform: uppercase !important;
}

.lux-blk__title--lg {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lux-blk__title--md {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.lux-blk__title--cta {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.lux-blk__title--img {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.lux-blk__sub {
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}

.lux-blk__sub--hero {
  color: rgba(255, 255, 255, .68);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 620px;
  font-weight: 400;
  letter-spacing: 0;
}

.lux-blk__sub--foto {
  color: rgba(255, 255, 255, .68);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.lux-blk__sub--cta {
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ─── Testo HTML (da WYSIWYG / DB) ─────────────────────────────────────────── */
.lux-blk__testo {
  color: rgba(255, 255, 255, .68);
  font-size: 1rem;
  line-height: 1.85;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
  max-width: 100%;
}

.lux-blk__testo--sm {
  font-size: .95rem;
  line-height: 1.8;
}

.lux-blk__testo--cta {
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Stili per i <p> generati dal WYSIWYG */
.lux-blk__testo p {
  margin: .5em 0;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.lux-blk__testo ul,
.lux-blk__testo ol {
  padding-left: 1.5em;
  margin: .5em 0;
}

.lux-blk__testo li {
  margin: .25em 0;
}

.lux-blk__testo strong {
  color: #fff;
  font-weight: 700;
}

.lux-blk__testo em {
  font-style: italic;
}

.lux-blk__testo a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Bottoni blocchi ───────────────────────────────────────────────────────── */
.lux-blk__btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .75rem 2rem;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s ease;
}

.lux-blk__btn:hover {
  background: rgba(255, 255, 255, .09);
}

.lux-blk__btn--primary {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
  margin-top: 0;
}

.lux-blk__btn--primary:hover {
  background: #C7C9CC;
  color: #0a0a0a;
}

.lux-blk__btn--cta {
  padding: 1rem 3rem;
  font-size: .82rem;
  letter-spacing: .12em;
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.lux-blk__btn--cta:hover {
  background: #C7C9CC;
  color: #0a0a0a;
}

.lux-blk__btn--foto {
  margin-top: 1.25rem;
  padding: .75rem 1.75rem;
}

/* ─── Blocco: TESTO ─────────────────────────────────────────────────────────── */
.lux-blk--testo {
  padding: 4rem 2rem;
}

/* ─── Blocco: HERO (statico, con immagine) ──────────────────────────────────── */
.lux-blk--hero {
  min-height: 60svh;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
}

.lux-blk__hero-media {
  position: absolute;
  inset: 0;
}

.lux-blk__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lux-blk__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, .95) 0%, rgba(5, 5, 5, .4) 60%, transparent 100%);
}

.lux-blk__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  width: 100%;
}

/* ─── Blocco: FOTO DX / SX ──────────────────────────────────────────────────── */
.lux-blk--foto {
  padding: 4rem 2rem;
}

.lux-blk__foto-row {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.lux-blk--foto-dx .lux-blk__foto-row {
  flex-direction: row;
}

.lux-blk--foto-sx .lux-blk__foto-row {
  flex-direction: row-reverse;
}

.lux-blk__foto-media {
  flex: 1;
  min-width: 280px;
}

.lux-blk__foto-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .07);
}

.lux-blk__foto-content {
  flex: 1;
  min-width: 260px;
}

/* ─── Blocco: IMMAGINE CENTRO ───────────────────────────────────────────────── */
.lux-blk--immagine {
  padding: 3rem 2rem;
}

.lux-blk__img-centro {
  max-width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  display: block;
  margin:0 auto;
}

.lux-blk__img-caption {
  text-align: center;
  margin-top: 1.5rem;
}

.lux-blk__img-caption p {
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
}

/* ─── Blocco: CTA ───────────────────────────────────────────────────────────── */
.lux-blk--cta {
  padding: 5rem 2rem;
  text-align: center;
}

/* ─── Blocco: GENERICO ──────────────────────────────────────────────────────── */
.lux-blk--generic {
  padding: 3rem 2rem;
}

.lux-blk--generic .lux-blk__title {
  font-size: 1.8rem;
}

/* ─── Freccia scroll (video_hero) ───────────────────────────────────────────── */
.lux-blk__scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeUp .5s ease 1.2s both;
  cursor: pointer;
}

/* ─── Caption immagine ──────────────────────────────────────────────────────── */
.lux-blk__img-caption h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: .5rem;
}
