.home-page {
  background: var(--color-white);
}

.home-page .eyebrow {
  letter-spacing: 0.22em;
}

.home-hero {
  --home-hero-photo: url("../img/chi_sono/ilary-reception.jpg");
  --home-hero-photo-position: center;

  position: relative;
  min-height: clamp(480px, calc(100svh - var(--header-height) - 96px), 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-white);
  background: var(--color-forest);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  z-index: 0;
  inset: -24px;
  background: var(--home-hero-photo) center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.74;
  transform: scale(1.04);
}

.home-hero::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(22, 69, 59, 0.12) 0%, rgba(22, 69, 59, 0) 32%, rgba(22, 69, 59, 0.55) 100%),
    linear-gradient(95deg, rgba(22, 69, 59, 0.92) 0%, rgba(22, 69, 59, 0.6) 46%, rgba(22, 69, 59, 0.12) 100%),
    var(--home-hero-photo) var(--home-hero-photo-position) / contain no-repeat;
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
  padding: 58px 0 48px;
}

/* Ingresso hero: fade-up scaglionato dei figli diretti */
@media (prefers-reduced-motion: no-preference) {
  .home-hero-inner > * {
    animation: home-hero-enter 720ms var(--ease-out) both;
  }

  .home-hero-inner > :nth-child(2) {
    animation-delay: 90ms;
  }

  .home-hero-inner > :nth-child(3) {
    animation-delay: 180ms;
  }

  .home-hero-inner > :nth-child(4) {
    animation-delay: 270ms;
  }

  .home-hero-inner > :nth-child(5) {
    animation-delay: 360ms;
  }
}

@keyframes home-hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Focus visibile su fondo scuro */
.home-hero :focus-visible,
.home-visit :focus-visible,
.home-score:focus-visible {
  outline-color: var(--color-white);
}

.home-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.home-hero h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.2rem + 4vw, 5.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.home-hero p:not(.eyebrow) {
  max-width: 470px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.55;
}

.home-hero-actions,
.home-visit-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-button {
  min-height: 52px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}

.home-button:hover,
.home-button:focus-visible {
  transform: translateY(-2px);
}

.home-button:active {
  transform: translateY(0);
}

.home-button--primary {
  color: var(--color-white);
  background: var(--color-forest);
  border-color: var(--color-forest);
}

.home-hero .home-button--primary {
  color: var(--color-forest);
  background: var(--color-white);
  border-color: var(--color-white);
}

.home-hero .home-button:not(.home-button--primary) {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
}

.home-hero-facts {
  max-width: 760px;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
}

.home-hero-facts li {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.home-hero-facts span,
.home-hero-facts strong {
  display: block;
}

.home-hero-facts span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero-facts strong {
  margin-top: 8px;
  color: var(--color-white);
  font-size: 1.12rem;
  font-weight: 600;
}

/* La fascia viene resa visibile da main.js solo durante la promozione. */
.home-promo[hidden] {
  display: none;
}

.home-promo {
  padding-bottom: 0;
}

.home-promo-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  overflow: hidden;
  color: var(--color-text);
  background: var(--color-stone-100);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.home-promo-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--color-stone-200);
}

.home-promo-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, rgba(245, 241, 234, 0.32));
  pointer-events: none;
}

.home-promo-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.home-promo-copy {
  padding: clamp(34px, 5vw, 62px);
  align-self: center;
}

.home-promo-copy h2 {
  max-width: 620px;
}

.home-promo-copy > p:not(.eyebrow):not(.home-promo-expiry) {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.home-promo-benefits {
  max-width: 560px;
  margin: 26px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.home-promo-benefits li {
  min-height: 90px;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius);
}

.home-promo-benefits strong,
.home-promo-benefits span {
  display: block;
}

.home-promo-benefits strong {
  color: var(--color-earth);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.home-promo-benefits span {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-promo .home-button {
  cursor: pointer;
}

.home-promo-expiry {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 0.76rem;
}

.home-section {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
  padding: 70px 0;
}

.home-section-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.home-section h2,
.home-method h2,
.home-visit h2 {
  margin: 0;
  color: var(--color-forest);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.home-text-link {
  width: max-content;
  padding-bottom: 4px;
  color: var(--color-forest);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--color-stone-400), var(--color-stone-400));
  background-size: 0% 1px, 100% 1px;
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-size var(--dur-med) var(--ease-out);
}

.home-text-link:hover,
.home-text-link:focus-visible {
  background-size: 100% 1px, 100% 1px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-service-card {
  min-height: 132px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--color-text);
  background: var(--color-stone-100);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-service-card:hover,
.home-service-card:focus-visible {
  border-color: var(--color-stone-400);
  box-shadow: var(--shadow-panel);
  outline: 0;
  transform: translateY(-2px);
}

.home-service-card--image {
  min-height: 300px;
  color: var(--color-white);
  background: var(--color-forest);
}

.home-service-card--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 69, 59, 0.05) 0%, transparent 40%, rgba(22, 69, 59, 0.9) 100%);
}

.home-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.home-service-card:hover img,
.home-service-card:focus-visible img {
  transform: scale(1.04);
}

.home-service-card span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.home-service-card:not(.home-service-card--image) {
  min-height: 150px;
  color: var(--color-forest);
}

.home-service-card--wide {
  grid-column: 1 / -1;
}

.home-service-card:not(.home-service-card--image)::after {
  content: "\2197";
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--color-earth);
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 240ms ease;
}

.home-service-card:not(.home-service-card--image):hover::after,
.home-service-card:not(.home-service-card--image):focus-visible::after {
  transform: translate(3px, -3px);
}

.home-method {
  padding: 64px 0;
  background: var(--color-stone-100);
  border-top: 1px solid var(--color-stone-200);
  border-bottom: 1px solid var(--color-stone-200);
}

.home-method-inner {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.home-method-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.home-method-list li {
  min-height: 122px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius);
}

.home-method-list span {
  color: var(--color-rose);
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.home-method-list strong {
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.home-focus {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.home-focus img {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

.home-focus-copy p:not(.eyebrow) {
  max-width: 470px;
  margin: 16px 0 22px;
  color: var(--color-muted);
  font-size: 1.04rem;
}

.home-reviews {
  padding-top: 0;
}

.home-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 0.48fr);
  gap: 16px;
}

.home-review-grid figure,
.home-score {
  margin: 0;
  min-height: 190px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.home-review-grid blockquote {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.home-review-grid figcaption {
  color: var(--color-earth);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-score {
  color: var(--color-white);
  background: var(--color-forest);
  border-color: var(--color-forest);
}

.home-score strong {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 1;
}

.home-score span {
  color: var(--color-stone-200);
  font-size: 1rem;
}

.home-visit {
  padding: 58px 0;
  color: var(--color-white);
  background: var(--color-footer);
}

.home-visit-inner {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.home-visit .eyebrow,
.home-visit p,
.home-visit h2 {
  color: var(--color-white);
}

.home-visit p:not(.eyebrow) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.home-visit-actions {
  margin-top: 0;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.home-visit .home-button:not(.home-button--primary) {
  color: var(--color-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.44);
}

@media (max-width: 820px) {
  .home-hero {
    --home-hero-photo-position: center top;

    min-height: clamp(470px, calc(100svh - var(--header-height) - 84px), 620px);
  }

  .home-hero-inner,
  .home-section,
  .home-method-inner,
  .home-visit-inner {
    width: min(100% - 28px, var(--content-width));
  }

  .home-hero-inner {
    padding: 38px 0 34px;
  }

  .home-hero h1 {
    font-size: 3.1rem;
  }

  .home-hero p:not(.eyebrow) {
    width: 100%;
    max-width: 28rem;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .home-hero .eyebrow {
    position: relative;
    display: block;
    max-width: 100%;
    padding-left: 40px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  .home-hero .eyebrow::before {
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 26px;
  }

  .home-hero-facts {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-section {
    padding: 48px 0;
  }

  .home-promo {
    padding-bottom: 0;
  }

  .home-promo-card {
    grid-template-columns: 1fr;
  }

  .home-promo-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .home-promo-visual::after {
    background: linear-gradient(180deg, transparent 72%, rgba(245, 241, 234, 0.3));
  }

  .home-promo-copy {
    padding: 30px 24px 34px;
  }

  .home-section-heading,
  .home-visit-inner {
    align-items: flex-start;
    display: grid;
  }

  .home-section h2,
  .home-method h2,
  .home-visit h2 {
    font-size: 2rem;
  }

  .home-service-grid,
  .home-method-inner,
  .home-method-list,
  .home-focus,
  .home-review-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card--wide {
    grid-column: auto;
  }

  .home-service-card--image {
    min-height: 240px;
  }

  .home-method {
    padding: 46px 0;
  }

  .home-method-inner {
    gap: 26px;
  }

  .home-method-list li {
    min-height: 104px;
  }

  .home-focus {
    gap: 24px;
  }

  .home-review-grid figure,
  .home-score {
    min-height: 160px;
  }

  .home-visit {
    padding: 44px 0;
  }

  .home-visit-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .home-promo-visual {
    aspect-ratio: 1;
  }

  .home-promo-benefits {
    grid-template-columns: 1fr;
  }

  .home-promo-benefits li {
    min-height: 72px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
  }
}

@media (max-width: 360px) {
  .home-hero .eyebrow {
    width: min(100%, 17rem);
  }

  .home-hero p:not(.eyebrow) {
    width: min(100%, 17rem);
    line-height: 1.45;
  }

  .home-button {
    padding-inline: 22px;
  }
}
/* v20260720 */
