/* ═══════════════════════════════════════════════════════════════════════════
   Luxoria Emotion — Frontend CSS
   Font: Inter (body) + Cormorant Garamond (headings / "Canela" feel)
   ═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #141414;
  --surface: rgba(255, 255, 255, .04);
  --border: rgba(255, 255, 255, .07);
  --text: #ffffff;
  --text-alt: #C7C9CC;
  --muted: #78716c;
  --accent: #fff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --header-h: 80px;
  --radius: 8px;
  --transition: .2s ease;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Selection / Scrollbar ────────────────────────────────────────────────── */
::selection {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

::-webkit-scrollbar {
  width: 5px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: rgba(199, 201, 204, .2);
  border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(199, 201, 204, .45)
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: .01em;
}

a {
  color: inherit;
  text-decoration: none
}

img {
  display: block;
  max-width: 100%
}

p {
  line-height: 1.75
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.lux-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem
}

.lux-section {
  padding: 5rem 1.5rem
}

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
.lux-nav-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.lux-nav-link {
  color: var(--text-alt);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}

.lux-nav-link:hover,
.lux-nav-link.active {
  color: var(--text)
}

/* ── Hamburger ────────────────────────────────────────────────────────────── */
.lux-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.lux-hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.lux-hamburger__line.open-1 {
  transform: translateY(7px) rotate(45deg)
}

.lux-hamburger__line.open-2 {
  opacity: 0;
  transform: scaleX(0)
}

.lux-hamburger__line.open-3 {
  transform: translateY(-7px) rotate(-45deg)
}

/* ── Mobile menu ─────────────────────────────────────────────────────────── */
.lux-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(8, 8, 8, .98);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) 2rem 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}

.lux-mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)
}

.lux-mobile-nav-link {
  display: block;
  width: 100%;
  padding: 1.25rem 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.lux-mobile-nav-link:hover {
  color: var(--text-alt)
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.lux-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--bg);
}



.lux-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.lux-hero__video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78svh;
  min-height: 100svh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
  object-fit: cover;
}

.lux-hero__video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  display: block;
}

.lux-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .75) 100%);
}

.lux-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem 2.5rem 1.5rem;
  animation: fadeUp .8s ease both;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 65%);
}

@media(max-width: 768px) {
  .lux-hero__sub {
    display: none !important;
  }
}

/* ── Grids ───────────────────────────────────────────────────────────────── */
.lux-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem
}

.lux-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.lux-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem
}

/* ── Experience / Package Cards ─────────────────────────────────────────── */
.lux-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0 2.5rem 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lux-carousel::-webkit-scrollbar {
  display: none
}

.lux-pkg-card {
  flex: 0 0 320px;
  background: var(--bg-3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}

.lux-pkg-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .14)
}

.lux-pkg-card__img {
  height: 240px;
  object-fit: cover;
  width: 100%
}

.lux-pkg-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1
}

.lux-pkg-card__type {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.lux-pkg-card__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .75rem;
  line-height: 1.25;
}

.lux-pkg-card__cta {
  margin-top: auto;
  display: inline-block;
  padding: .6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .4);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  text-align: center;
}

.lux-pkg-card__cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff
}

/* ── Mondo Luxoria grid ─────────────────────────────────────────────────── */
.lux-mondo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.lux-mondo-grid .span2 {
  grid-column: span 2
}

.lux-world-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: default;
  user-select: none;
}

.lux-world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.lux-world-card:hover img {
  transform: scale(1.03)
}

.lux-world-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .08) 60%);
}

.lux-world-card__label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.lux-form {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.lux-form input,
.lux-form textarea,
.lux-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .9rem;
  padding: .85rem 1rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.lux-form input::placeholder,
.lux-form textarea::placeholder {
  color: var(--muted)
}

.lux-form input:focus,
.lux-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .3);
}

/* ── Prose (Markdown / CMS testo) ──────────────────────────────────────── */
.lux-prose {
  color: var(--text-alt);
  font-size: .92rem;
  line-height: 1.85
}

.lux-prose h1,
.lux-prose h2,
.lux-prose h3,
.lux-prose h4 {
  font-family: var(--font-serif);
  color: #fff;
  margin: 1.6em 0 .5em;
  line-height: 1.2;
}

.lux-prose h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .4em
}

.lux-prose h3 {
  font-size: 1rem
}

.lux-prose p {
  margin: .7em 0
}

.lux-prose ul,
.lux-prose ol {
  padding-left: 1.4em;
  margin: .6em 0
}

.lux-prose li {
  margin: .25em 0
}

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

.lux-prose em {
  color: #e2e0de;
  font-style: italic
}

.lux-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5em 0
}

.lux-prose blockquote {
  border-left: 3px solid rgba(255, 255, 255, .15);
  margin: 1em 0;
  padding: .4em 1em;
  color: var(--muted);
  font-style: italic;
}

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

/* ── CMS Blocks (from _blocchi.php) ─────────────────────────────────────── */
/* Quill-rendered HTML inside blocks */
.lux-block-testo {
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
  max-width: 100%;
}

.lux-block-testo p {
  margin: .5em 0;
  line-height: 1.8;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

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

.lux-block-testo em {
  font-style: italic
}

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

/* Prevenzione overflow nelle sezioni CMS */
.lux-block-section {
  overflow: hidden
}

/* ── Flash Messages ──────────────────────────────────────────────────────── */
.lux-flash {
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  font-size: .85rem;
  margin-bottom: 1.25rem
}

.lux-flash--success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .28);
  color: #86efac
}

.lux-flash--error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .28);
  color: #fca5a5
}

/* ── Label / Badge ───────────────────────────────────────────────────────── */
.lux-label-sm {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── CTA Button (base) ───────────────────────────────────────────────────── */
.lux-btn {
  display: inline-block;
  padding: .9rem 2.5rem;
  background: #fff;
  color: #080808;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
}

.lux-btn:hover {
  background: #C7C9CC
}

.lux-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}

.lux-btn--ghost:hover {
  background: rgba(255, 255, 255, .08)
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:900px) {
  .lux-nav-desktop {
    display: none
  }

  .lux-hamburger {
    display: flex
  }

  .lux-grid-3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .lux-section {
    padding: 3.5rem 1.25rem
  }

  .lux-mondo-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .lux-mondo-grid .span2 {
    grid-column: span 1
  }
}

@media(max-width:600px) {
  :root {
    --header-h: 70px
  }

  .lux-container {
    padding: 0 1rem
  }

  .lux-grid-2,
  .lux-grid-3 {
    grid-template-columns: 1fr
  }

  .lux-section {
    padding: 2.5rem 1rem
  }

  .lux-mondo-grid {
    grid-template-columns: 1fr
  }

  .lux-mondo-grid .span2 {
    grid-column: span 1
  }

  .lux-hero__content {
    padding: 2rem 1rem
  }

  .lux-pkg-card {
    flex: 0 0 280px
  }
}

@media(max-width:600px) {
  .notmobile {
    display: none !important;
  }
}