/* Nando Home: fascia shop, riga fiducia, "Come funziona / Perché sceglierci".
   Dipende da tokens.css. Solo opacity/transform nelle animazioni. */

/* ---------- Correzioni alla sezione intro (BeTheme) ---------- */
@media (min-width: 1100px) {
  body.home #Content .mcb-section-aiclvzp7 .mcb-section-inner { align-items: center; }
  body.home #Content .mcb-section-aiclvzp7 { padding-bottom: 64px; }
}
/* niente testo giustificato (spazi irregolari tra le parole): solo intro e "Chi siamo", le altre colonne restano come sono */
body.home #Content .mcb-section-aiclvzp7 .column_attr,
body.home #Content .mcb-section-aiclvzp7 .column_attr p,
body.home #Content .mcb-section-6tx2vbf6 .column_attr,
body.home #Content .mcb-section-6tx2vbf6 .column_attr p { text-align: left !important; }

/* ---------- Fascia "Dallo Shop" (fondo carta: stacco tonale da intro e angoli, bianchi) ---------- */
.nando-home-shop { background: var(--n-paper); }
.nhs { max-width: 1200px; margin: 0 auto; padding: 88px 20px 64px; text-align: center; }
.nhs-head { margin: 0 auto 40px; }
.nhs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nhs-card {
  display: flex; flex-direction: column; text-align: left; background: var(--n-white);
  border: 1px solid var(--n-line-soft); border-radius: 4px; overflow: hidden; text-decoration: none !important; color: var(--n-dark);
  transition: transform .25s var(--n-ease), box-shadow .25s var(--n-ease), border-color .25s var(--n-ease);
}
.nhs-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26, 18, 9, .08); border-color: var(--n-line); }
.nhs-card * { text-decoration: none !important; }
.nhs-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f0eb; }
.nhs-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--n-ease); }
.nhs-card:hover .nhs-img img { transform: scale(1.03); }
.nhs-cat { display: block; padding: 16px 18px 0; font: 600 11px/1.3 var(--n-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--n-gold-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nhs-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.35em); padding: 8px 18px 0; font: 600 16px/1.35 var(--n-sans); color: var(--n-dark); }
.nhs-price { display: block; margin-top: auto; padding: 12px 18px 18px; font: 700 15px/1.3 var(--n-sans); color: var(--n-dark); }
.nhs-price .woocommerce-Price-amount { color: var(--n-dark); }
.nhs-price .wc-unit-price, .nhs-price .ppu, .nhs-price small { font: 400 12px/1.3 var(--n-sans); color: #7a6e60; margin-left: 6px; }
.nhs-cta { margin-top: 48px; }
.nhs-lead { margin: 16px auto 0; font: 400 16px/1.65 var(--n-sans); color: var(--n-body); max-width: 56ch; }
.nhs-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.nhs-cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--n-line); border-radius: 999px; font: 500 12px/1 var(--n-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--n-dark) !important; text-decoration: none !important; transition: border-color .2s var(--n-ease), background-color .2s var(--n-ease); }
.nhs-cats a:hover, .nhs-cats a:focus-visible { border-color: var(--n-gold-ink); background: var(--n-cream); }
.nhs--many .nhs-grid { row-gap: 32px; }
@media (max-width: 1024px) { .nhs-grid { gap: 16px; } }
@media (max-width: 900px) { .nhs { padding: 64px 16px; } .nhs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .nhs--many .nhs-grid { row-gap: 14px; } .nhs--many .nhs-card:nth-child(n+5) { display: none; } .nhs-name { font-size: 14px; } .nhs-cat { font-size: 10px; padding-top: 12px; } }
@media (max-width: 480px) { .nhs-price .wc-unit-price, .nhs-price .ppu, .nhs-price small { display: none; } }

/* ---------- Riga fiducia ---------- */
.ntr { max-width: 1100px; margin: 0 auto; padding: 8px 20px 88px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.ntr b { display: block; font: 600 12px/1.4 var(--n-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--n-dark); }
.ntr span { font: 400 13px/1.5 var(--n-sans); color: var(--n-muted); }
@media (max-width: 700px) { .ntr { grid-template-columns: repeat(2, 1fr); padding-bottom: 56px; } }

/* ---------- Come funziona / Perché sceglierci ---------- */
.nando-steps { background: var(--n-paper); }
.nst { max-width: 1200px; margin: 0 auto; padding: 96px 20px 112px; }
.nst-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.nst-lead { margin: 16px auto 0; font: 400 16px/1.65 var(--n-sans); color: var(--n-body); max-width: 52ch; }

/* timeline orizzontale */
.nst-steps { list-style: none; margin: 0; padding: 36px 0 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.nst-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--n-line); transform: scaleX(0); transform-origin: left; }
.nst-step { position: relative; margin: 0; padding: 0; list-style: none; }
.nst-step::before { content: ""; position: absolute; left: 0; top: -41px; width: 10px; height: 10px; border-radius: 50%; background: var(--n-gold); box-shadow: 0 0 0 4px var(--n-paper); }
.nst-num { display: block; font: 600 64px/1 var(--n-serif); color: var(--n-gold); opacity: .35; margin: 0 0 6px; letter-spacing: -.02em; }
.nst-step h3 { margin: 0 0 12px; font: 600 22px/1.25 var(--n-serif); color: var(--n-dark); }
.nst-step p { margin: 0; font: 400 15px/1.6 var(--n-sans); color: var(--n-body); max-width: 52ch; }

/* valori */
.nst-why { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 112px; }
.nst-photo { position: relative; aspect-ratio: 4 / 5; }
.nst-photo::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--n-gold); transform: translate(16px, 16px); border-radius: 4px; pointer-events: none; }
.nst-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.nst-why-head { margin-bottom: 8px; }
.nst-value { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--n-line-soft); }
.nst-value:last-of-type { border-bottom: 0; }
.nst-ico { width: 28px; height: 28px; color: var(--n-gold-ink); margin-top: 2px; }
.nst-ico svg { width: 28px; height: 28px; display: block; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nst-ico path, .nst-ico circle, .nst-ico line, .nst-ico rect, .nst-ico polyline { stroke-dasharray: 120; stroke-dashoffset: 0; }
.nst-value h3 { margin: 0 0 8px; font: 600 20px/1.3 var(--n-serif); color: var(--n-dark); }
.nst-value p { margin: 0; font: 400 15px/1.6 var(--n-sans); color: var(--n-body); max-width: 52ch; }
.nst-cta { margin-top: 32px; }

/* animazioni di ingresso */
@media (prefers-reduced-motion: no-preference) {
  .nst-anim { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--n-ease), transform .5s var(--n-ease); }
  .nst-in .nst-anim { opacity: 1; transform: none; }
  .nst-in .nst-line { transition: transform .7s cubic-bezier(.22, .61, .36, 1); transform: scaleX(1); }
  .nst-in .nst-step:nth-child(2) .nst-anim { transition-delay: .12s; }
  .nst-in .nst-step:nth-child(3) .nst-anim { transition-delay: .24s; }
  .nst-in .nst-step:nth-child(4) .nst-anim { transition-delay: .36s; }
  .nst-ico path, .nst-ico circle, .nst-ico line, .nst-ico rect, .nst-ico polyline { stroke-dashoffset: 120; transition: stroke-dashoffset .6s var(--n-ease); }
  .nst-in .nst-ico path, .nst-in .nst-ico circle, .nst-in .nst-ico line, .nst-in .nst-ico rect, .nst-in .nst-ico polyline { stroke-dashoffset: 0; }
  .nst-in .nst-value:nth-child(3) .nst-ico * { transition-delay: .15s; }
  .nst-in .nst-value:nth-child(4) .nst-ico * { transition-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) { .nst-line { transform: none; } }

/* tablet */
@media (max-width: 1024px) {
  .nst-why { gap: 40px; grid-template-columns: 4fr 7fr; }
  .nst-steps { gap: 28px; }
}
/* foto reali degli eventi */
.nev { margin-top: 112px; }
.nev.nst-anim { transform: none; } /* la griglia entra solo in dissolvenza */
.nev-head { text-align: center; margin: 0 0 32px; }
.nev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nev-item { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--n-cream); }
.nev-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--n-ease); }
.nev-item:hover img { transform: scale(1.03); }
.nev-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.nst-in .nev.nst-anim, .nev.nst-in { opacity: 1; }

/* mobile: timeline verticale */
@media (max-width: 767px) {
  .nst { padding: 64px 16px 72px; }
  .nst-head { margin-bottom: 40px; }
  .nst-steps { grid-template-columns: 1fr; gap: 40px; padding: 0 0 0 44px; }
  .nst-line { left: 20px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .nst-in .nst-line { transform: scaleY(1); }
  .nst-step::before { left: -29px; top: 8px; }
  .nst-num { font-size: 36px; margin: 0 0 4px; opacity: .5; }
  .nst-step h3 { font-size: 20px; }
  .nst-step p { margin-top: 10px; }
  .nst-why { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .nst-photo { aspect-ratio: 16 / 10; max-height: 260px; }
  .nst-photo::before { transform: translate(10px, 10px); }
  .nst-value { padding: 20px 0; gap: 16px; }
  .nev { margin-top: 72px; }
  .nev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
