/* =====================================================
   YourLuxuryHome® — Main Stylesheet
   Palette: Gold #C69237 · Elegant Blue-Black
   Fonts: Unbounded (display) · Onest (UI) · Luxurious Roman (accent)
   ===================================================== */

/* ---- Design Tokens ---- */
:root {
  --gold: #C69237;
  --gold-light: #e8be6f;
  --gold-dark: #b38431;
  --gold-dim: rgba(198, 146, 55, 0.18);
  --gold-glow: rgba(198, 146, 55, 0.35);

  /* Palette: Gold · Elegant Blue-Black */
  --navy: #08090f;
  /* background — nero quasi puro con tinta blu */
  --navy-mid: #0c1020;
  /* jumbotron mid */
  --navy-card: #111629;
  /* midnight blue profondo */
  --navy-card-hover: #17203a;

  --text-primary: #eef0f5;
  /* bianco freddo/neutro */
  --text-secondary: #8d99b5;
  /* blue-grey */
  --text-muted: #4a526e;
  /* muted cool */

  --font-ui: 'Onest', sans-serif;
  --font-display: 'Unbounded', sans-serif;
  --font-accent: 'Luxurious Roman', serif;

  --header-h: 80px;
  --radius-card: 18px;
  --radius-btn: 50px;

  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background-color: var(--navy);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 15, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(198, 146, 55, 0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.85;
}

.header-logo img,
.header-logo-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.header-logo:hover .header-logo-img {
  opacity: 0.85;
}

.header-logo-svg {
  height: 52px;
  width: auto;
  max-width: 280px;
}

.logo-white {
  filter: brightness(0) invert(1);
}

.header-spacer {
  flex: 1;
}

.header-nav {
  display: flex;
  align-items: center;
}

/* CTA Button */
.btn-pubblica {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  background-size: 200% auto;
  border: 1px solid rgba(198, 146, 55, 0.6);
  box-shadow: 0 4px 18px rgba(198, 146, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background-position var(--transition-med), box-shadow var(--transition-med), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-pubblica:hover {
  background-position: right center;
  box-shadow: 0 8px 28px rgba(198, 146, 55, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-pubblica:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(198, 146, 55, 0.3);
}

.btn-pubblica svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-pubblica:hover svg {
  transform: translateX(3px);
}

.header-gold-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
  opacity: 0.5;
}

/* =====================================================
   JUMBOTRON
   ===================================================== */
.jumbotron {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 10%, rgba(198, 146, 55, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.jumbotron-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.25;
}

.jumbotron-bg-orb--left {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -100px;
  left: -180px;
  animation: orbFloat 9s ease-in-out infinite;
}

.jumbotron-bg-orb--right {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #1a3fc9 0%, transparent 70%);
  bottom: -80px;
  right: -120px;
  animation: orbFloat 12s ease-in-out infinite reverse;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-24px) scale(1.04);
  }
}

.jumbotron-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.jumbotron-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(198, 146, 55, 0.3);
  border-radius: 50px;
  padding: 0.3rem 1.1rem;
  margin-bottom: 1.4rem;
  animation: fadeSlideDown 0.7s ease both;
}

.jumbotron-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.7s 0.12s ease both;
}

.jumbotron-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  animation: fadeSlideDown 0.7s 0.2s ease both;
}

.jumbotron-divider::before,
.jumbotron-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.jumbotron-divider::after {
  background: linear-gradient(270deg, transparent, var(--gold));
}

.divider-gem {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow);
}

.jumbotron-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 3.5rem;
  animation: fadeSlideDown 0.7s 0.28s ease both;
}

/* =====================================================
   BRANDS ROW — logo bar senza card
   ===================================================== */
.brands-row {
  display: flex;
  align-items: flex-start;
  /* rispetta la struttura colonna dei brand-item */
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  animation: fadeSlideUp 0.8s 0.4s ease both;
}

/* Wrapper colonna: logo (altezza fissa) + titolo sempre alla stessa Y */
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Contenitore logo a altezza fissa — il titolo cade sempre alla stessa quota */
.brand-item .brand-link {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

/* Titolo brand sotto il logo */
.brand-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  transition: color var(--transition-fast);
}

.brand-item:hover .brand-title {
  color: var(--gold-light);
}


/* Separatore verticale gold */
.brand-sep {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(198, 146, 55, 0.45) 30%,
      rgba(198, 146, 55, 0.45) 70%,
      transparent 100%);
  flex-shrink: 0;
  margin: 0 3rem;
  align-self: flex-start;
  /* parte dall'inizio come i brand-item */
  margin-top: calc((80px - 56px) / 2);
  /* centra nella zona logo da 80px */
}

/* Link logo (standalone, fuori da brand-item) */
.brand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition:
    opacity var(--transition-med),
    transform var(--transition-med);
  padding-bottom: 0;
}

/* Gold underline espandibile */
.brand-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-link:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.brand-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Logo immagine */
.brand-logo {
  height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: filter var(--transition-med);
}

/* Loghi neri → bianchi su sfondo scuro */
.brand-logo.logo-invert {
  filter: invert(1) sepia(0.1) saturate(1.2) brightness(1.05);
}

.brand-link:hover .brand-logo.logo-invert {
  filter: invert(1) sepia(0.25) saturate(1.8) brightness(1.1);
}

/* Loghi colorati → bianco puro */
.brand-logo.logo-white {
  filter: brightness(0) invert(1);
}

.brand-link:hover .brand-logo.logo-white {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(198, 146, 55, 0.35));
}

/* =====================================================
   PAGINA PUBBLICA CON NOI
   ===================================================== */
.pubblica-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.text-center {
  text-align: center;
}

/* Hero Section */
.pubblica-hero {
  padding: 6rem 0;
  position: relative;
  background: radial-gradient(ellipse at 50% 10%, rgba(198, 146, 55, 0.05) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.hero-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.hero-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 1rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.hero-actions {
  margin-top: 1rem;
}

.hero-image-wrap {
  position: relative;
  width: 115%;
  left: -7.5%;
  height: 100vh;
  min-height: 550px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%);
}

.hero-image,
.feature-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(198, 146, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Feature Sections */
.feature-section {
  padding: 6rem 0;
}

.alt-bg {
  background-color: var(--navy-mid);
  border-top: 1px solid rgba(198, 146, 55, 0.05);
  border-bottom: 1px solid rgba(198, 146, 55, 0.05);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-grid.reverse .feature-image-wrap {
  order: 2;
}

.feature-grid.reverse .feature-content {
  order: 1;
}

.feature-image-wrap {
  position: relative;
  width: 115%;
  height: 50vh;
  min-height: 400px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
}

.feature-grid.reverse .feature-image-wrap {
  left: -15%;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-light);
}

.feature-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Services Grid */
.services-section {
  padding: 6rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--navy-card);
  border: 1px solid rgba(198, 146, 55, 0.1);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(198, 146, 55, 0.3);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* CTA Bottom Section */
.cta-section {
  padding: 8rem 0;
  background: radial-gradient(circle at center, rgba(198, 146, 55, 0.08) 0%, transparent 60%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-content {
  display: flex;
  flex-direction: column;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cta-form-wrapper {
  background: var(--navy-card);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(198, 146, 55, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--navy-mid);
  border: 1px solid rgba(198, 146, 55, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(198, 146, 55, 0.2);
}

.form-input::placeholder {
  color: rgba(141, 153, 181, 0.6);
}

textarea.form-input {
  resize: vertical;
}

.cta-submit {
  width: 100%;
  font-size: 1rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {

  .hero-grid,
  .feature-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image-wrap,
  .feature-image-wrap {
    width: 100%;
    left: 0;
    height: 45vh;
    min-height: 350px;
  }

  .feature-grid.reverse .feature-image-wrap {
    order: 1;
    left: 0;
  }

  .feature-grid.reverse .feature-content {
    order: 2;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .feature-title,
  .section-title,
  .cta-title {
    font-size: 1.8rem;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: rgba(5, 6, 12, 0.97);
  border-top: 1px solid rgba(198, 146, 55, 0.12);
}

.footer-gold-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold-light) 50%, var(--gold) 75%, transparent 100%);
  opacity: 0.4;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.footer-brand-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.footer-legal {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.footer-link {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.footer-link:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.footer-link-sep {
  color: var(--text-muted);
  font-size: 0.65rem;
  opacity: 0.5;
}

/* =====================================================
   KEYFRAME ANIMATIONS
   ===================================================== */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .brand-sep {
    height: 44px;
    margin: 0 1.8rem;
  }

  .brand-logo {
    height: 56px;
  }
}

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

  .header-inner {
    padding: 0 1.2rem;
  }

  .header-logo-img {
    height: 120px;
  }

  .btn-pubblica {
    font-size: 0.75rem;
    padding: 0.55rem 1.1rem;
  }

  .jumbotron {
    padding: 3.5rem 1.2rem 4rem;
  }

  .jumbotron-subtitle {
    font-size: 0.88rem;
  }

  .footer-inner {
    padding: 2rem 1.2rem;
  }

  /* Mobile: 2 loghi per riga, separatori nascosti */
  .brands-row {
    flex-wrap: wrap;
  }

  .brand-sep {
    display: none;
  }

  .brand-link {
    flex: 0 0 50%;
    justify-content: center;
  }

  .brand-logo {
    height: 52px;
    max-width: 140px;
  }
}