/* HENNIO-HOME-5 — primo schermo della home, «Perché hennio»,
   blocco «Come funziona» spostato in alto e pagina /come-funziona.
   Solo hennio: FotoFatto non carica questo file. */

/* ── Barra «Perché hennio» ─────────────────────────────────────────────── */
.hn5-why {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--hn3-blush, #E9C9C1);
}
.hn5-why-title {
  margin: 0 0 18px;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.12;
}
.hn5-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.hn5-why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 18px 18px 20px;
  border: 1px solid var(--hn3-blush, #E9C9C1);
  border-radius: 16px;
  background: #fff;
}
.hn5-why-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--hn3-soft, #F3E6E0);
  color: var(--hn3-ink, #3B2A26);
  flex: 0 0 auto;
}
.hn5-why-item strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--hn3-ink, #3B2A26);
}
.hn5-why-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--hn3-body, #5A4843);
}

/* ── «Come funziona» spostato subito sotto la barra ────────────────────── */
.hn5-how {
  display: block;
  margin-top: 30px;
  padding: 30px 34px 32px;
}
.hn5-how-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.hn5-how-head h2 {
  margin: 0;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.12;
}
.hn5-how-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hn3-ink, #3B2A26) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.hn5-how-head a:hover { color: var(--hn3-thread, #9C6B63) !important; }
.hn5-how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.hn5-how-cta { margin-top: 26px; }

/* ── Sottotitolo «Outfit della settimana» ──────────────────────────────── */
.hn5-sec-head-lead { align-items: flex-start; }
.hn5-sec-lead {
  margin: 7px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--hn3-body, #5A4843);
}

/* ── Pagina «Come funziona» ────────────────────────────────────────────── */
.hn5-howpage {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 40px 12px;
  color: var(--hn3-ink, #3B2A26);
}
.hn5-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 18px 22px;
  border: 1px solid var(--hn3-thread, #9C6B63);
  border-radius: 16px;
  background: #fff;
}
.hn5-intro strong { display: block; font-size: 15px; }
.hn5-intro p { margin: 5px 0 0; font-size: 14px; line-height: 1.45; color: var(--hn3-body, #5A4843); }
.hn5-howpage-hero { max-width: 760px; padding: 14px 0 8px; }
.hn5-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hn3-thread, #9C6B63);
}
.hn5-howpage-hero h1 {
  margin: 0;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 54px);
  line-height: 1.05;
}
.hn5-howpage-lead {
  margin: 16px 0 22px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--hn3-body, #5A4843);
}
.hn5-block-head { margin: 44px 0 18px; }
.hn5-block-head h2,
.hn5-cost h2,
.hn5-final h2 {
  margin: 0;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.12;
}

/* Sequenza vera: foto → annuncio → indossato */
.hn5-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.hn5-flow-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hn5-flow-num {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 36px;
  line-height: 1;
  color: var(--hn3-thread, #9C6B63);
}
.hn5-flow-media,
.hn5-listing-card {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hn3-blush, #E9C9C1);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.hn5-flow-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.hn5-listing-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(160deg, #fff 0%, var(--hn3-soft, #F3E6E0) 100%);
}
.hn5-listing-label {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--hn3-ink, #3B2A26);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hn5-listing-brand { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--hn3-muted, #6B5A55); }
.hn5-listing-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hn3-ink, #3B2A26);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.hn5-listing-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hn5-listing-row strong { font-size: 20px; }
.hn5-listing-row span { font-size: 13px; color: var(--hn3-muted, #6B5A55); }
.hn5-flow-step h3,
.hn5-benefit h3,
.hn5-buyer h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hn3-ink, #3B2A26);
}
.hn5-flow-step p,
.hn5-benefit p,
.hn5-buyer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hn3-body, #5A4843);
}

/* Vantaggi per chi vende */
.hn5-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.hn5-benefit {
  padding: 18px;
  border: 1px solid var(--hn3-blush, #E9C9C1);
  border-radius: 16px;
  background: #fff;
}
.hn5-benefit h3 { margin-top: 12px; }

/* Per chi compra */
.hn5-buyers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}
.hn5-buyer {
  padding-top: 16px;
  border-top: 1px solid var(--hn3-blush, #E9C9C1);
}
.hn5-buyer h3 { margin-top: 0; }

/* Quanto costa */
.hn5-cost {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--hn3-soft, #F3E6E0);
}
.hn5-cost p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--hn3-body, #5A4843); }

/* FAQ */
.hn5-faq-item {
  border-top: 1px solid var(--hn3-blush, #E9C9C1);
}
.hn5-faq-item summary {
  padding: 16px 28px 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.hn5-faq-item summary::-webkit-details-marker { display: none; }
.hn5-faq-item summary::after {
  content: '＋';
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 18px;
  line-height: 1;
  color: var(--hn3-thread, #9C6B63);
}
.hn5-faq-item[open] summary::after { content: '−'; }
.hn5-faq-item p {
  margin: 0 0 16px;
  max-width: 70ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--hn3-body, #5A4843);
}

/* Chiusura */
.hn5-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 46px 0 8px;
  padding: 34px 30px;
  border-radius: 18px;
  background: var(--hn3-blush, #E9C9C1);
}
.hn5-final p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--hn3-ink, #3B2A26); }

/* ── Telefono ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Primo schermo: prima i testi, poi la foto. Il titolo e i due bottoni
     stanno dentro l’altezza del telefono (verificato anche dal guardiano). */
  .hn3-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 6px 0 0;
  }
  .hn3-hero-copy {
    order: 1;
    padding: 8px 16px 0;
    gap: 12px;
  }
  .hn3-hero-figure { order: 2; }
  .hn3-kicker { display: none; }
  .hn3-hero-title {
    font-size: 34px;
    line-height: 1.06;
    max-width: 15ch;
  }
  .hn3-hero-lead {
    font-size: 14.5px;
    line-height: 1.42;
  }
  .hn3-actions { flex-direction: column; gap: 8px; }
  .hn3-btn { height: 46px; font-size: 14px; }
  .hn3-hero-media {
    height: min(34vh, 300px);
    aspect-ratio: auto;
    border-radius: 0;
  }
  .hn3-hero-img { object-fit: contain; }
  .hn3-hero-labels {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 16px 2px;
    pointer-events: auto;
    scrollbar-width: none;
  }
  .hn3-hero-labels::-webkit-scrollbar { display: none; }
  .hn3-hero-label { position: static; flex: 0 0 auto; max-width: 78vw; padding: 8px 11px; font-size: 12px; }
  .hn3-hero-label strong, .hn3-hero-label span { font-size: 12px; }
  .hn3-hero-note { right: 10px; bottom: 10px; font-size: 11px; }

  .hn5-why { margin-top: 30px; padding-top: 22px; }
  .hn5-why-title { font-size: 26px; margin-bottom: 14px; }
  .hn5-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hn5-why-item { padding: 13px 13px 15px; gap: 5px; border-radius: 14px; }
  .hn5-why-icon { width: 36px; height: 36px; }
  .hn5-why-icon svg { width: 22px; height: 22px; }
  .hn5-why-item strong { font-size: 13.5px; }
  .hn5-why-item p { font-size: 12.5px; line-height: 1.4; }

  .hn5-how { margin-top: 22px; padding: 22px 18px 24px; border-radius: 18px; }
  .hn5-how-head { margin-bottom: 18px; }
  .hn5-how-head h2 { font-size: 26px; }
  .hn5-how-head a { font-size: 12.5px; }
  .hn5-how-steps { grid-template-columns: 1fr; gap: 22px; }
  .hn5-how-cta { width: 100%; margin-top: 22px; }

  .hn5-sec-head-lead { flex-direction: column; gap: 8px; }
  .hn5-sec-head-lead > a { align-self: flex-end; }
  .hn5-sec-lead { font-size: 13.5px; }

  /* Pagina Come funziona */
  .hn5-howpage { padding: 20px 16px 8px; }
  .hn5-intro { padding: 16px; border-radius: 14px; }
  .hn5-intro .hn3-btn { width: 100%; }
  .hn5-howpage-hero { padding-top: 8px; }
  .hn5-howpage-hero h1 { font-size: 38px; }
  .hn5-howpage-lead { font-size: 15.5px; margin: 12px 0 18px; }
  .hn5-howpage-hero .hn3-btn { width: 100%; }
  .hn5-block-head { margin: 34px 0 14px; }
  .hn5-block-head h2, .hn5-cost h2, .hn5-final h2 { font-size: 26px; }
  .hn5-flow-grid { grid-template-columns: 1fr; gap: 26px; }
  .hn5-flow-media, .hn5-listing-card { aspect-ratio: 4 / 5; }
  .hn5-benefits-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hn5-benefit { padding: 14px; }
  .hn5-benefit h3 { font-size: 14px; }
  .hn5-benefit p { font-size: 13px; }
  .hn5-buyers-grid { grid-template-columns: 1fr; gap: 18px; }
  .hn5-cost { padding: 22px 18px; margin-top: 32px; }
  .hn5-cost p { font-size: 15px; }
  .hn5-faq-item summary { font-size: 15px; }
  .hn5-final { padding: 24px 18px; margin-top: 34px; border-radius: 16px; }
  .hn5-final .hn3-btn { width: 100%; }
}

@media (max-width: 380px) {
  .hn3-hero-title { font-size: 31px; }
  .hn3-hero-lead { font-size: 14px; }
  .hn5-benefits-grid { grid-template-columns: 1fr; }
}
