/* ==================================================
   HOME HIGHLIGHTS — PROPOSTE DELLO CHEF
================================================== */

.home-highlights-section {
  --hh-background: #f7f5e9;
  --hh-text: #302e2d;
  --hh-accent: #5f7f3a;
  --hh-accent-light: #c9e3ac;
  --hh-line: rgba(48, 46, 45, 0.2);
  --hh-muted: rgba(48, 46, 45, 0.72);

  position: relative;
  overflow: visible;
  padding: clamp(70px, 8vw, 130px) 0;
  color: var(--hh-text);

  /*
   * Trasparente per lasciare visibile la macchia
   * arancione applicata al body.
   */
  background: transparent;
}


/* ==================================================
   HEADER SEZIONE
================================================== */

.home-highlights-header {
  position: relative;
  width: min(calc(100% - 48px), 1440px);
  max-width: none;
  margin: 0 auto clamp(60px, 6vw, 100px);

  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(280px, 0.55fr);

  grid-template-areas:
    "eyebrow intro"
    "title intro";

  column-gap: clamp(60px, 10vw, 180px);
  align-items: center;

  text-align: left;
}


/* Piccola scritta sopra il titolo */
.home-highlights-bg-title {
  grid-area: eyebrow;

  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 14px;

  margin: 0 0 28px;

  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  color: var(--hh-accent);

  /*
   * Annullamento del vecchio effetto outline.
   */
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
  opacity: 1;
}

.home-highlights-bg-title::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--hh-accent);
}


/* Titolo principale */
.home-highlights-main-title {
  grid-area: title;

  position: relative;
  z-index: 2;

  max-width: 720px;
  margin: 0;

  font-family:
    var(
      --e-global-typography-primary-font-family,
      "Cormorant Garamond"
    ),
    Georgia,
    serif;

  font-size: clamp(4.6rem, 7.4vw, 7.5rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: none;

  color: var(--hh-text);
  white-space: pre-line;
  text-wrap: balance;
}


/* Parola evidenziata */
.home-highlights-main-title .highlight-accent,
.home-highlights-section .highlight-accent {
  color: var(--hh-accent);
  font-style: italic;
  font-weight: 500;
}


/* Paragrafo a destra */
.home-highlights-intro {
  grid-area: intro;

  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 390px;
  margin: 40px 0 0;
  justify-self: end;

  font-family:
    var(
      --e-global-typography-primary-font-family,
      "Cormorant Garamond"
    ),
    Georgia,
    serif;

  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-align: left;

  color: var(--hh-text);
}


/*
 * Il riferimento non presenta un ulteriore titolo
 * immediatamente sopra le card.
 */
.home-highlights-card-title {
  display: none;
}


/* ==================================================
   GRIGLIA CARD
================================================== */

.home-highlights-grid {
  position: relative;
  z-index: 3;

  width: min(calc(100% - 48px), 1440px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.5vw, 28px);
  align-items: start;
}


/* Card pari più in basso */
.highlight-card:nth-child(even) {
  margin-top: 54px;
}


/* ==================================================
   CARD
================================================== */

.highlight-card {
  position: relative;
  overflow: visible;

  display: block;
  min-width: 0;
  min-height: 0;

  border: 0;
  border-radius: 0px;
  background: transparent;
  color: var(--hh-text);
}


/* ==================================================
   IMMAGINE
================================================== */

.highlight-image-wrap {
  position: relative;
  width: 100%;
  height: auto;
 display: block;
  overflow: hidden;
  padding: 0;
border-radius:22px;
  background: #e9e5d7;
}

.highlight-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}

.highlight-card:hover .highlight-image {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.highlight-placeholder {
  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      145deg,
      rgba(201, 227, 172, 0.38),
      rgba(247, 245, 233, 0.8)
    );
}


/* ==================================================
   NUMERO CIRCOLARE
================================================== */

.highlight-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  margin: 0;

  border: 1px solid rgba(48, 46, 45, 0.16);
  border-radius: 50%;

  background: rgba(247, 245, 233, 0.96);
  color: var(--hh-text);

  font-family: "Poppins", sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;

  box-shadow: 0 5px 18px rgba(48, 46, 45, 0.08);
}


/* ==================================================
   BADGE OPZIONALE
================================================== */

.highlight-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 4;

  padding: 8px 12px;

  border: 1px solid rgba(48, 46, 45, 0.14);
  border-radius: 999px;

  background: rgba(247, 245, 233, 0.94);
  color: var(--hh-accent);

  font-family: "Poppins", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  box-shadow: 0 5px 18px rgba(48, 46, 45, 0.07);
}


/* ==================================================
   CONTENUTO CARD
================================================== */

.highlight-content {
  position: static;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 18px;

  padding: 18px 0 0;
}


/*
 * Il footer usa display: contents per permettere
 * al prezzo di affiancarsi al titolo.
 */
.highlight-footer {
  display: contents;
}


/* Titolo piatto */
.highlight-title {
  grid-column: 1;
  grid-row: 1;

  min-width: 0;
  margin: 0;

  font-family:
    var(
      --e-global-typography-primary-font-family,
      "Cormorant Garamond"
    ),
    Georgia,
    serif;

  font-size: clamp(1.45rem, 1.65vw, 1.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;

  color: var(--hh-text);
}


/* Prezzo */
.highlight-value {
  grid-column: 2;
  grid-row: 1;

  display: block;
  align-self: start;
  margin: 3px 0 0;

  font-family:
    var(
      --e-global-typography-primary-font-family,
      "Cormorant Garamond"
    ),
    Georgia,
    serif;

  font-size: clamp(1.2rem, 1.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;

  color: var(--hh-text);
}


/* Sottotitolo opzionale */
.highlight-subtitle {
  grid-column: 1 / -1;
  grid-row: 2;

  margin: 10px 0 0;

  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;

  color: var(--hh-accent);
}


/* Tag opzionali */
.highlight-tags {
  grid-column: 1 / -1;
  grid-row: 3;

  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin: 11px 0 0;
}

.highlight-tags span {
  padding: 5px 9px;

  border: 1px solid rgba(95, 127, 58, 0.28);
  border-radius: 999px;

  background: rgba(201, 227, 172, 0.18);
  color: var(--hh-text);

  font-family: "Poppins", sans-serif;
  font-size: 0.64rem;
  font-weight: 400;
  line-height: 1;
}


/* Descrizione */
.highlight-description {
  grid-column: 1 / -1;
  grid-row: 4;

  display: block;
  margin: 12px 0 0;
  padding: 10px 0 0;

  border-top: 1px solid var(--hh-line);

  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.55;

  color: var(--hh-muted);
  opacity: 1;
}


/* CTA opzionale della card */
.highlight-cta {
  grid-column: 1 / -1;
  grid-row: 5;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  width: fit-content;
  margin-top: 16px;
  padding-bottom: 5px;

  border-bottom: 1px solid var(--hh-accent);

  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--hh-text);

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.highlight-cta:hover {
  color: var(--hh-accent);
  border-color: var(--hh-accent);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {
  .home-highlights-header,
  .home-highlights-grid {
    width: min(calc(100% - 40px), 940px);
  }

  .home-highlights-header {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(250px, 0.55fr);

    column-gap: 50px;
  }

  .home-highlights-main-title {
    font-size: clamp(4rem, 8vw, 6rem);
  }

  .home-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 24px;
  }

  .highlight-card:nth-child(even) {
    margin-top: 54px;
  }
}


/* ==================================================
   HEADER SU TABLET STRETTO
================================================== */

@media (max-width: 900px) {
  .home-highlights-header {
    grid-template-columns: 1fr;

    grid-template-areas:
      "eyebrow"
      "title"
      "intro";

    row-gap: 0;
  }

  .home-highlights-intro {
    max-width: 540px;
    margin: 36px 0 0;
    justify-self: start;
  }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {
  .home-highlights-section {
    padding: 64px 0 72px;
  }

  .home-highlights-header,
  .home-highlights-grid {
    width: calc(100% - 32px);
  }

  .home-highlights-header {
    margin-bottom: 52px;
  }

  .home-highlights-bg-title {
    gap: 11px;
    margin-bottom: 22px;
    font-size: 0.64rem;
  }

  .home-highlights-bg-title::before {
    width: 22px;
  }

  .home-highlights-main-title {
    max-width: 100%;

    font-size: clamp(3.6rem, 17vw, 5.4rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
  }

  .home-highlights-intro {
    max-width: 100%;
    margin-top: 28px;

    font-size: 1.1rem;
    line-height: 1.5;
  }

  .home-highlights-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .highlight-card:nth-child(even) {
    margin-top: 0;
  }

  

  .highlight-content {
    padding-top: 16px;
  }

  .highlight-title {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .highlight-value {
    font-size: 1.15rem;
  }

  .highlight-description {
    font-size: 0.73rem;
  }
}


/* ==================================================
   ACCESSIBILITÀ
================================================== */

@media (prefers-reduced-motion: reduce) {
  .highlight-image {
    transition: none;
  }

  .highlight-card:hover .highlight-image {
    transform: none;
  }
}