/* =====================================================================
   Home · «La selezione del vivaio»
   Prima la fotografia, poi la pianta, poi la scheda d'acquisto.
   Stesse quattro colonne e stessa distanza delle schede prodotto sotto:
   la foto occupa due colonne, intro e acquisto una ciascuna.
   Le due schede condividono le righe (subgrid): titoli in alto, linea,
   dati e collegamenti in basso, alla stessa altezza.
   ===================================================================== */
.home-selection{
  --hs-gap:var(--a-gap,clamp(16px,1.8vw,28px));
  --hs-radius:var(--a-radius,16px);
  --hs-radius-sm:var(--a-radius-sm,10px);
  --hs-pad:clamp(22px,2.2vw,32px);
  --hs-ink:var(--a-ink,#151515);
  --hs-soft:var(--a-ink-soft,#3a3836);
  --hs-muted:var(--a-muted,#77726b);
  --hs-line:var(--a-line,#ebebe9);
  --hs-line-strong:var(--a-line-strong,#d6d6d3);
  --hs-wash:var(--a-wash,#f7f7f6);
  --hs-night:#10161c;
  --hs-accent:var(--a-accent,#b32831);
  --hs-moss:var(--a-moss,#2f6a43);
  --hs-serif:var(--a-serif,Georgia,'Times New Roman',serif);
  --hs-sans:var(--a-sans,system-ui,-apple-system,'Segoe UI',sans-serif);
  --hs-ease:var(--a-ease,cubic-bezier(.2,.7,.2,1));
  display:grid;gap:var(--hs-gap);color:var(--hs-ink);font-family:var(--hs-sans)
}
.home-selection [hidden]{display:none!important}

/* ---------- La tripletta ---------- */
.home-selection .hs-exhibit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto 1fr auto;column-gap:var(--hs-gap);row-gap:0;margin:0;padding:0;border:0;background:none}

/* 1. Fotografia: quadrata come gli scatti originali, mai ritagliata. */
.home-selection .hs-photo{position:relative;grid-column:1/3;grid-row:1/-1;align-self:stretch;width:100%;aspect-ratio:1;min-width:0;border-radius:var(--hs-radius);overflow:hidden;background:var(--hs-night);isolation:isolate}
.home-selection .hs-photo-frame{position:absolute;inset:0;display:block}
.home-selection .hs-photo-frame [data-specimen-photo]{position:absolute;inset:0;display:block}
.home-selection .hs-photo-frame img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .6s var(--hs-ease)}
.home-selection .hs-photo-bar{position:absolute;inset:auto 0 0;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:40px clamp(14px,1.6vw,22px) clamp(14px,1.6vw,20px);background:linear-gradient(to top,rgba(8,10,12,.58),rgba(8,10,12,0));pointer-events:none}
.home-selection .hs-photo-note{font-size:12.5px;line-height:1.4;letter-spacing:.02em;color:rgba(255,255,255,.88)}
.home-selection .hs-photo-views{display:flex;gap:8px;pointer-events:auto}
.home-selection .hs-photo:not(.home-specimen-gallery-ready) .hs-photo-views{display:none}
.home-selection .hs-photo-views button{width:52px;height:52px;min-height:44px;padding:0;border:1px solid rgba(255,255,255,.32);border-radius:var(--hs-radius-sm);overflow:hidden;background:var(--hs-night);opacity:.68;cursor:pointer;transition:opacity .2s,border-color .2s}
.home-selection .hs-photo-views button[aria-pressed=true],.home-selection .hs-photo-views button:hover{opacity:1;border-color:#fff}
.home-selection .hs-photo-views img{display:block;width:100%;height:100%;object-fit:cover}

/* Le due schede: stessa struttura, righe condivise con la tripletta. */
.home-selection .hs-plant,.home-selection .hs-buy{grid-row:1/-1;display:grid;grid-template-rows:subgrid;row-gap:0;min-width:0;margin:0;padding:var(--hs-pad);border-radius:var(--hs-radius)}
.home-selection .hs-plant-head,.home-selection .hs-buy-main{grid-row:1;display:grid;align-content:start;gap:12px;min-width:0}
.home-selection .hs-plant-foot,.home-selection .hs-buy-foot{grid-row:3;display:flex;flex-direction:column;gap:16px;min-width:0;padding-top:24px}

/* 2. La pianta: breve introduzione dalla scheda di coltivazione. */
.home-selection .hs-plant{grid-column:3;border:0;background:var(--hs-wash);color:var(--hs-soft)}
.home-selection .hs-plant .home-plant-label{font-size:11.5px;font-weight:700;letter-spacing:.14em;line-height:18px;text-transform:uppercase;color:var(--hs-moss)}
.home-selection .hs-plant .home-plant-draft{justify-self:start;padding:4px 10px;border-radius:999px;background:#fff1c2;color:#4f3d00;font-size:12px;line-height:1.4}
.home-selection .hs-plant h4{margin:0;font:400 clamp(26px,2.15vw,34px)/1.1 var(--hs-serif);letter-spacing:-.015em;color:var(--hs-ink);text-wrap:balance}
.home-selection .hs-plant .home-plant-botanic{margin:-6px 0 0;font-size:14px;line-height:1.4;color:var(--hs-muted)}
.home-selection .hs-plant .home-plant-lead{margin:4px 0 0;font-size:15.5px;line-height:1.65;color:var(--hs-soft)}
.home-selection .hs-plant .home-plant-facts{display:grid;gap:12px;margin:0;padding:16px 0 0;border-top:1px solid var(--hs-line-strong)}
.home-selection .hs-plant .home-plant-facts>div{display:grid;gap:3px}
.home-selection .hs-plant .home-plant-facts dt{font-size:11.5px;line-height:1.3;color:var(--hs-muted)}
.home-selection .hs-plant .home-plant-facts dd{margin:0;font-size:14.5px;font-weight:500;line-height:1.45;color:var(--hs-ink)}
.home-selection .hs-plant .home-link{align-self:flex-start;min-height:44px;margin:auto 0 0;color:var(--hs-ink);font-weight:600}

/* 3. Scheda d'acquisto: identità, misure, prezzo e carrello. */
.home-selection .hs-buy{grid-column:4;border:1px solid var(--hs-line);background:#fff;color:var(--hs-ink)}
.home-selection .hs-buy-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;font-size:12.5px;line-height:18px;color:var(--hs-muted)}
.home-selection .hs-buy-stock{display:inline-flex;align-items:center;gap:7px;color:var(--hs-soft)}
.home-selection .hs-buy-stock::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--hs-moss)}
.home-selection .hs-buy h3{margin:0;font:400 clamp(26px,2.15vw,34px)/1.1 var(--hs-serif);letter-spacing:-.015em;text-wrap:balance}
.home-selection .hs-buy h3 a{color:inherit;text-decoration:none}
.home-selection .hs-buy h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.home-selection .hs-buy .sb-unique-note{margin:0}
.home-selection .hs-buy-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:16px 0 0;border-top:1px solid var(--hs-line)}
.home-selection .hs-buy-facts>div{min-width:0}
.home-selection .hs-buy-facts dt{margin:0 0 4px;font-size:11.5px;line-height:1.3;color:var(--hs-muted)}
.home-selection .hs-buy-facts dd{margin:0;font-size:19px;font-weight:500;line-height:1.2;color:var(--hs-ink);white-space:nowrap}
.home-selection .hs-buy-facts dd span{font-size:12px;font-weight:400;color:var(--hs-muted)}
.home-selection .hs-buy-price{font-size:clamp(26px,2.1vw,32px);font-weight:700;line-height:1.15;letter-spacing:-.01em;color:var(--hs-ink)}
.home-selection .hs-buy-price del{margin-right:8px;font-size:.58em;font-weight:400;color:var(--hs-muted)}
.home-selection .hs-buy-price ins{text-decoration:none}
.home-selection .hs-buy-price .woocommerce-price-suffix{display:block;margin-top:6px;font-size:12px;font-weight:400;letter-spacing:0;color:var(--hs-muted)}
.home-selection .hs-buy-actions{display:grid;gap:4px;margin-top:auto}
.home-selection .hs-add{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 22px;border:0;border-radius:999px;background:var(--hs-ink);color:#fff;font-size:15px;font-weight:600;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s,transform .2s var(--hs-ease)}
.home-selection .hs-add:hover{background:#000;color:#fff;transform:translateY(-1px)}
.home-selection .hs-add[aria-busy=true]{opacity:.7}
.home-selection .hs-add svg{width:18px;height:18px;flex:none}
.home-selection .hs-more{justify-content:center;gap:10px;min-height:44px;color:var(--hs-ink);font-weight:600}

/* ---------- Gli esemplari in vetrina: stessa griglia ---------- */
.home-selection .hs-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--hs-gap)}
.home-selection .hs-pick{display:flex;align-items:center;gap:14px;min-width:0;min-height:88px;margin:0;padding:12px 16px 12px 12px;border:1px solid var(--hs-line);border-radius:var(--hs-radius);background:#fff;color:var(--hs-ink);font:inherit;text-align:left;box-shadow:none;cursor:pointer}
.home-selection .hs-pick:hover{border-color:var(--hs-line-strong);background:#fff;color:var(--hs-ink)}
.home-selection .hs-pick[aria-pressed=true]{border-color:var(--hs-ink);box-shadow:inset 0 0 0 1px var(--hs-ink)}
.home-selection .hs-pick img{width:62px;height:62px;flex:none;border-radius:var(--hs-radius-sm);object-fit:cover;background:var(--hs-night)}
.home-selection .hs-pick-copy{display:grid;gap:3px;min-width:0}
.home-selection .hs-pick-copy strong{display:-webkit-box;overflow:hidden;font-size:14.5px;font-weight:600;line-height:1.3;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.home-selection .hs-pick-price{font-size:13.5px;line-height:1.3;color:var(--hs-soft)}
.home-selection .hs-pick-price del{margin-right:4px;color:var(--hs-muted)}
.home-selection .hs-pick-price ins{text-decoration:none}
.home-selection .hs-pick-price .woocommerce-price-suffix{display:none}
.home-selection .hs-pick-all{position:relative;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:88px;padding:12px 56px 12px 22px;border-radius:var(--hs-radius);background:var(--hs-wash);color:var(--hs-ink);text-decoration:none}
.home-selection .hs-pick-all span{font-size:12.5px;line-height:1.4;color:var(--hs-muted)}
.home-selection .hs-pick-all strong{font-size:16px;font-weight:600;line-height:1.3}
.home-selection .hs-pick-all svg{position:absolute;top:50%;right:22px;width:18px;height:18px;transform:translateY(-50%);transition:transform .2s var(--hs-ease)}
.home-selection .hs-pick-all:hover svg{transform:translate(3px,-50%)}

.home-selection a:focus-visible,.home-selection button:focus-visible{outline:2px solid var(--hs-accent);outline-offset:3px}

@media (hover:hover){
  .home-selection .hs-photo-frame:hover img{transform:scale(1.015)}
}

/* ---------- Tablet: foto e pianta affiancate, acquisto in una fascia ---------- */
@media (max-width:1179px){
  .home-selection .hs-exhibit{grid-template-rows:none;row-gap:var(--hs-gap)}
  .home-selection .hs-photo{grid-row:auto}
  .home-selection .hs-plant,.home-selection .hs-buy{grid-row:auto;display:flex;flex-direction:column}
  .home-selection .hs-plant{grid-column:3/5}
  .home-selection .hs-plant-foot{flex:1 1 auto}
  /* Two halves on the same lines as photo and plant above: the gap adds both paddings. */
  .home-selection .hs-buy{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;column-gap:calc(var(--hs-gap) + 2 * var(--hs-pad))}
  .home-selection .hs-buy-main,.home-selection .hs-buy-foot{grid-row:auto}
  .home-selection .hs-buy-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);align-items:end;gap:16px 24px;padding-top:0}
  .home-selection .hs-buy-facts{grid-column:1/-1}
  .home-selection .hs-buy-actions{margin:0}
}

/* ---------- Telefono: una colonna, nello stesso ordine ---------- */
@media (max-width:768px){
  .home-selection{gap:14px}
  .home-selection .hs-exhibit{grid-template-columns:minmax(0,1fr);row-gap:14px}
  .home-selection .hs-photo,.home-selection .hs-plant,.home-selection .hs-buy{grid-column:1}
  .home-selection .hs-buy{display:flex;flex-direction:column;align-items:stretch}
  .home-selection .hs-buy-foot{display:flex;flex-direction:column;align-items:stretch;padding-top:20px}
  .home-selection .hs-plant-foot{padding-top:20px}
  .home-selection .hs-photo-views button{width:46px;height:46px}
  .home-selection .hs-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .home-selection .hs-pick{flex-direction:column;align-items:stretch;gap:8px;min-height:0;padding:8px 8px 10px}
  .home-selection .hs-pick img{width:100%;height:auto;aspect-ratio:1}
  .home-selection .hs-pick-copy strong{font-size:13px}
  .home-selection .hs-pick-price{font-size:12.5px}
  .home-selection .hs-pick-all{grid-column:1/-1;min-height:60px}
}
@media (max-width:400px){
  .home-selection .hs-photo-note{display:none}
}

@media (prefers-reduced-motion:reduce){
  .home-selection .hs-photo-frame img,.home-selection .hs-add,.home-selection .hs-pick-all svg{transition:none}
  .home-selection .hs-photo-frame:hover img,.home-selection .hs-add:hover{transform:none}
}
