/* ============================================================
   DORMITALIANO — Hotellerie Page Styles
   Dipende da: css/style.css
   ============================================================ */


/* ============================================================
   NAV — eredita la struttura split da home.css
   Replica le sole regole necessarie senza importare home.css
   ============================================================ */
.nav__group {
  display:         flex;
  align-items:     center;
  gap:             2rem;
  flex:            1;
}

.nav__group--right {
  justify-content: flex-end;
}

/* Language selector layout — colori e visibilità gestiti da style.css */
.nav__lang {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
}

.nav__mobile-menu { display: none; }


/* ============================================================
   1. HERO
   ============================================================ */
.h-hero {
  position:            relative;
  width:               100%;
  height:              100vh;
  min-height:          600px;
  background-color:    #2e2a26;
  background-image:    url('../images/hero/hero-hotellerie.jpg');
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
  display:             flex;
  align-items:         center;
  justify-content:     center;
  overflow:            hidden;
}

.h-hero__overlay {
  position:   absolute;
  inset:      0;
  background: rgba(0, 0, 0, 0.25);
  z-index:    1;
}

.h-hero__content {
  position:   relative;
  z-index:    2;
  text-align: center;
  padding:    0 1.5rem;
  max-width:  860px;
}

.h-hero__eyebrow {
  font-family:    var(--font-body);
  font-size:      0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color:          var(--color-white);
  opacity:        0.7;
  margin-bottom:  1.75rem;
}

.h-hero__title {
  font-family:    var(--font-heading);
  font-weight:    300;
  font-size:      clamp(2.5rem, 5.5vw, 5.5rem);
  letter-spacing: 0.03em;
  color:          var(--color-white);
  line-height:    1.1;
  margin-bottom:  1.5rem;
}

.h-hero__subtitle {
  font-family:   var(--font-body);
  font-weight:   300;
  font-size:     clamp(0.875rem, 1.5vw, 1.0625rem);
  color:         var(--color-white);
  opacity:       0.75;
  line-height:   1.7;
  margin-bottom: 2.5rem;
  max-width:     560px;
  margin-left:   auto;
  margin-right:  auto;
}

.h-hero__cta {
  opacity:   0;
  animation: hFadeUp 0.9s ease 0.5s forwards;
}

@keyframes hFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}


/* ============================================================
   2. VALUE PROPOSITION
   ============================================================ */
.h-value {
  background-color: var(--color-beige-dark);
}

.h-value__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   4rem 5rem;
}

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

.h-value__icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           56px;
  height:          56px;
  margin:          0 auto 1.75rem;
  color:           var(--color-dark);
  opacity:         0.6;
}

.h-value__title {
  font-family:   var(--font-heading);
  font-weight:   600;
  font-size:     1.375rem;
  color:         var(--color-dark);
  margin-bottom: 0.875rem;
  letter-spacing: 0.01em;
}

.h-value__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size:   0.9375rem;
  line-height: 1.8;
  color:       var(--color-dark);
  opacity:     0.7;
}


/* ============================================================
   3. PRODOTTI — layout alternato
   ============================================================ */
.h-products {
  background-color: var(--color-white);
}

.h-product {
  display:   flex;
  min-height: 560px;
}

.h-product--reverse {
  flex-direction: row-reverse;
}

.h-product__media {
  flex:       1;
  overflow:   hidden;
  background-color: #c8bdb5; /* fallback caldo */
}

.h-product__img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center;
  display:         block;
  transition:      transform 0.7s ease;
}

.h-product:hover .h-product__img {
  transform: scale(1.03);
}

.h-product__body {
  flex:            1;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  padding:         5rem 6rem;
}

.h-product--reverse .h-product__body {
  padding: 5rem 6rem 5rem 5rem;
}

.h-product__label {
  font-family:    var(--font-body);
  font-size:      0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--color-dark);
  opacity:        0.45;
  margin-bottom:  1rem;
}

.h-product__title {
  font-family:   var(--font-heading);
  font-weight:   300;
  font-size:     clamp(2rem, 3.5vw, 3rem);
  color:         var(--color-dark);
  margin-bottom: 1.25rem;
  line-height:   1.15;
}

.h-product__text {
  font-family:   var(--font-body);
  font-weight:   300;
  font-size:     0.9375rem;
  line-height:   1.85;
  color:         var(--color-dark);
  opacity:       0.7;
  margin-bottom: 2rem;
  max-width:     440px;
}


/* ============================================================
   4. COME LAVORIAMO — timeline orizzontale
   ============================================================ */
.h-process {
  background-color: var(--color-beige);
}

.h-process__eyebrow {
  font-family:    var(--font-body);
  font-size:      0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--color-dark);
  opacity:        0.5;
  margin-bottom:  1rem;
  text-align:     center;
}

.h-process__heading {
  font-family:   var(--font-heading);
  font-weight:   300;
  font-size:     clamp(1.75rem, 3vw, 2.5rem);
  color:         var(--color-dark);
  text-align:    center;
  margin-bottom: 4rem;
}

.h-process__steps {
  display:     flex;
  align-items: flex-start;
  gap:         0;
}

.h-process__step {
  flex:       1;
  text-align: center;
  padding:    0 1.5rem;
}

.h-process__divider {
  width:      1px;
  height:     80px;
  background: var(--color-dark);
  opacity:    0.15;
  flex-shrink: 0;
  margin-top: 1.75rem; /* allinea con il numero */
}

.h-process__num {
  display:        block;
  font-family:    var(--font-heading);
  font-weight:    300;
  font-size:      3.5rem;
  color:          var(--color-dark);
  opacity:        0.18;
  line-height:    1;
  margin-bottom:  0.75rem;
  letter-spacing: -0.02em;
}

.h-process__step-title {
  font-family:   var(--font-heading);
  font-weight:   600;
  font-size:     1.125rem;
  color:         var(--color-dark);
  margin-bottom: 0.625rem;
  letter-spacing: 0.01em;
}

.h-process__step-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size:   0.875rem;
  line-height: 1.75;
  color:       var(--color-dark);
  opacity:     0.65;
}


/* ============================================================
   5. CTA FINALE
   ============================================================ */
.h-cta {
  background-color: var(--color-dark);
  text-align:       center;
}

.h-cta__title {
  font-family:   var(--font-heading);
  font-weight:   300;
  font-size:     clamp(2rem, 4vw, 3.25rem);
  color:         var(--color-white);
  margin-bottom: 1rem;
}

.h-cta__subtitle {
  font-family:   var(--font-body);
  font-weight:   300;
  font-size:     1rem;
  color:         var(--color-white);
  opacity:       0.6;
  line-height:   1.7;
  margin-bottom: 3rem;
  max-width:     520px;
  margin-left:   auto;
  margin-right:  auto;
}

.h-cta__actions {
  display:         flex;
  justify-content: center;
  flex-wrap:       wrap;
  gap:             1rem;
}

.h-cta__btn {
  display:     inline-flex;
  align-items: center;
  gap:         0.6rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .h-product__body {
    padding: 4rem 3.5rem;
  }

  .h-product--reverse .h-product__body {
    padding: 4rem 3rem 4rem 3.5rem;
  }

  .h-value__grid {
    gap: 3rem 3rem;
  }

  .h-process__step {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {

  /* Nav mobile */
  .nav__group { display: none; }

  .nav__hamburger { display: flex; }

  .nav__logo {
    text-align: left;
    flex:       unset;
  }

  .nav__mobile-menu {
    display:        none;
    position:       fixed;
    top:            var(--nav-height);
    left:           0;
    width:          100%;
    flex-direction: column;
    align-items:    center;
    gap:            0;
    background:     var(--color-white);
    padding:        1.5rem 0 2rem;
    border-top:     1px solid var(--color-beige-dark);
    z-index:        999;
  }

  .nav__mobile-menu.is-open { display: flex; }

  .nav__mobile-menu a {
    font-family:    var(--font-body);
    font-weight:    300;
    font-size:      0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color:          var(--color-dark);
    padding:        0.85rem 2rem;
    width:          100%;
    text-align:     center;
    transition:     opacity var(--transition-base);
  }

  .nav__mobile-menu a:hover,
  .nav__mobile-menu a.active { opacity: 0.5; }

  .nav__lang--mobile { margin-top: 1rem; }

  .nav__hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
  .nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Value prop — colonna singola */
  .h-value__grid {
    grid-template-columns: 1fr;
    gap:                   3rem;
  }

  /* Prodotti — stack verticale */
  .h-product,
  .h-product--reverse {
    flex-direction: column;
    min-height:     auto;
  }

  .h-product__media {
    height: 60vw;
    min-height: 280px;
  }

  .h-product__body,
  .h-product--reverse .h-product__body {
    padding: 3rem 1.5rem;
  }

  .h-product__text {
    max-width: 100%;
  }

  /* Timeline — colonna */
  .h-process__steps {
    flex-direction: column;
    gap:            2.5rem;
  }

  .h-process__divider {
    display: none;
  }

  .h-process__step {
    padding: 0;
  }

  /* CTA bottoni in colonna */
  .h-cta__actions {
    flex-direction: column;
    align-items:    stretch;
    max-width:      300px;
    margin-left:    auto;
    margin-right:   auto;
  }

  .h-cta__btn {
    justify-content: center;
  }
}


/* ============================================================
   MAPPA CLIENTI
   ============================================================ */
.h-map {
  background-color: var(--color-white);
  padding-bottom:   0;
}

.h-map__eyebrow {
  font-family:    var(--font-body);
  font-size:      0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--color-dark);
  opacity:        0.45;
  margin-bottom:  1rem;
  text-align:     center;
}

.h-map__title {
  font-family:   var(--font-heading);
  font-weight:   300;
  font-size:     clamp(2rem, 4vw, 3rem);
  color:         var(--color-dark);
  text-align:    center;
  margin-bottom: 3rem;
}

.h-map__wrap {
  width: 100%;
}

.h-map__canvas {
  width:         100%;
  height:        500px;
  border-radius: 0;
  z-index:       0;
}

/* Popup Leaflet personalizzato */
.dormitaliano-popup .leaflet-popup-content-wrapper {
  border-radius: 4px;
  box-shadow:    0 4px 20px rgba(0, 0, 0, 0.12);
  font-family:   'Inter', system-ui, sans-serif;
  font-weight:   300;
  font-size:     0.875rem;
  color:         #2C2C2C;
  padding:       2px;
}

.dormitaliano-popup .leaflet-popup-tip {
  background: #ffffff;
}

@media (max-width: 768px) {
  .h-map__canvas {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .h-hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .h-product__body,
  .h-product--reverse .h-product__body {
    padding: 2.5rem 1.25rem;
  }
}
