/* ============================================================
   Elicandra — Homepage (redesign 08/10/2026)
   Hero + collezione. Misure dal design (1672px), colori campionati.
   Tutto sotto .hm-root; unità in px (il sito usa html{font-size:62.5%}).
   ============================================================ */
.hm-root {
  --hm-bg: var(--sito-bg);          /* sfondo hero */
  --hm-bg-2: var(--sito-bg);       /* sfondo collezione */
  --hm-verde: #08221B;
  --hm-bronzo: #826442;      /* testo bronzo */
  --hm-bronzo-2: #B08D57;    /* linee, decorazioni */
  --hm-testo: #111111;
  --hm-grigio: #565655;
  --hm-hair: #E5DFD5;
  --hm-serif: 'Cormorant Garamond', Georgia, serif;
  --hm-sans: 'Inter', sans-serif;
  font-family: var(--hm-sans);
  letter-spacing: 0;
  color: var(--hm-testo);
}
.hm-root, .hm-root *, .hm-root *::before, .hm-root *::after { box-sizing: border-box; }
.hm-root h1, .hm-root h2, .hm-root h3, .hm-root p, .hm-root ul { margin: 0; padding: 0; }
.hm-root ul { list-style: none; }
.hm-root a { text-decoration: none; }

/* ── Eyebrow ───────────────────────────────────────────── */
.hm-root .hm-eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--hm-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--hm-bronzo); line-height: 1.4;
}
.hm-eyebrow i { display: block; width: 43px; height: 1px; background: var(--hm-bronzo-2); flex-shrink: 0; }
.hm-eyebrow--center { justify-content: center; }
.hm-eyebrow--center::before, .hm-eyebrow--center::after { content: ''; width: 28px; height: 1px; background: var(--hm-bronzo-2); }

/* ── Pulsanti ──────────────────────────────────────────── */
.hm-root .hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--hm-verde);
  background: var(--hm-verde); color: #F6F2EA;
  font-family: var(--hm-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; white-space: nowrap;
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s, color .3s, box-shadow .3s;
}
.hm-root .hm-btn:hover { transform: translateY(-2px); background: #0d3327; }
.hm-root .hm-btn--ghost { background: transparent; color: var(--hm-verde); }
.hm-root .hm-btn--ghost:hover { background: var(--hm-verde); color: #F6F2EA; }
.hm-root .hm-link {
  display: inline-block; padding: 14px 0 5px; border-bottom: 1px solid #b7b0a4;
  font-size: 15px; font-weight: 500; color: #161717; letter-spacing: 0;
}
.hm-root .hm-link:hover { border-color: var(--hm-bronzo-2); }
.hm-root a:focus-visible, .hm-root button:focus-visible, .hm-root select:focus-visible, .hm-root input:focus-visible {
  outline: 2px solid #966E46; outline-offset: 3px;
}

/* ── HERO ──────────────────────────────────────────────── */
.hm-hero { position: relative; overflow: hidden; background: var(--hm-bg); display: flex; flex-direction: column; }
.hm-hero__inner { order: 1; }
.hm-hero__media { order: 2; }
.hm-hero__inner { position: relative; z-index: 2; padding: 40px 24px 48px; }
.hm-hero__content { max-width: 560px; }
.hm-root .hm-hero__title {
  margin: 20px 0 0; font-family: var(--hm-serif); font-weight: 500;
  font-size: clamp(44px, 12.4vw, 56px); line-height: 0.96; letter-spacing: -0.012em; color: #060606;
}
.hm-hero__title span { display: block; }
.hm-root .hm-hero__text { margin-top: 22px; max-width: 30em; font-size: 16.5px; line-height: 1.55; color: var(--hm-grigio); }
.hm-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; margin-top: 28px; }
.hm-root .hm-points { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 34px; }
.hm-points li { display: flex; align-items: center; gap: 14px; color: #765734; }
.hm-points span { font-family: var(--hm-serif); font-size: 17px; line-height: 1.2; font-weight: 500; color: #5c5a57; }
.hm-points svg { flex-shrink: 0; }

.hm-hero__media { position: relative; z-index: 1; height: 300px; margin-top: 0; background: #d9cdbb; }
.hm-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hm-hero__ph { position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 70% 40%, #efe6d8 0%, #d9ccb7 55%, #c4b49b 100%); }
.hm-hero__ph svg { position: absolute; right: 6%; top: 50%; width: 62%; max-width: 340px; transform: translateY(-50%); color: rgba(var(--hm-bronzo-rgb, 130, 100, 66), 0.45); }
.hm-hero__stamp { position: absolute; left: 14px; top: 14px; width: 92px; height: 92px; color: #fff; }  /* telefono: in alto a sinistra, libera l'orologio */
.hm-hero__stamp text { font-family: var(--hm-sans); font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; fill: currentColor; }

/* ── COLLEZIONE ────────────────────────────────────────── */
.hm-collection { background: var(--hm-bg-2); padding: 46px 0 70px; }
.hm-collection__head { padding: 0 24px; text-align: center; }
.hm-root .hm-collection__head h2 { margin-top: 10px; font-family: var(--hm-serif); font-weight: 500; font-size: clamp(40px, 11vw, 52px); line-height: 1.05; letter-spacing: -0.005em; color: #080808; }
#cat-root { max-width: 1520px; margin: 0 auto; padding: 30px 24px 0; scroll-margin-top: 20px; }

.hm-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; margin-bottom: 26px; }
.hm-field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #918b85; }
.hm-select { position: relative; }
.hm-select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid #3a3733; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.hm-select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 36px 0 14px;
  border: 1px solid var(--hm-hair); border-radius: 6px; background: #fff; color: #1b1b1b;
  font-family: var(--hm-sans); font-size: 14px; letter-spacing: 0; cursor: pointer;
}
.hm-search { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: #fff; border: 1px solid var(--hm-hair); border-radius: 6px; color: #5f5b55; }
.hm-search svg { flex-shrink: 0; }
.hm-search input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent; font-family: var(--hm-sans); font-size: 14px; color: #1b1b1b; letter-spacing: 0; box-shadow: none; outline-offset: 6px; -webkit-appearance: none; appearance: none; }
.hm-search input::placeholder { color: #a4a4a1; }
.hm-search input::-webkit-search-cancel-button { display: none; }
.hm-root .hm-count { font-size: 14px; color: #515151; align-self: center; }
.hm-views { display: flex; gap: 6px; justify-self: end; }
.hm-view { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--hm-hair); background: #fff; color: #1b1b1b; cursor: pointer; padding: 0; }
.hm-view.is-active { background: #071a14; border-color: #071a14; color: #fff; }

/* Griglia schede */
.hm-root .cat-grid { display: grid; grid-template-columns: 1fr; gap: 30px 20px; }
.cat-item { display: flex; }
/* ── Scheda orologio — aspetto "card" stile Apple (ritocco R1, 08/10/2026) ──
   Fondo appena più chiaro della pagina, angoli arrotondati, ombra quasi impercettibile,
   bordo di 1px molto tenue. Font di sistema (SF su Mac/iPhone, Inter altrove). */
.cat-card {
  --card-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; width: 100%; color: inherit; overflow: hidden;
  font-family: var(--card-font); -webkit-font-smoothing: antialiased;
  background: #FFFEFC; border: 1px solid rgba(60, 45, 30, 0.07); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(30, 20, 10, 0.04), 0 8px 24px -14px rgba(30, 20, 10, 0.12);
}
.cat-card__media { position: relative; display: block; aspect-ratio: 1.725 / 1; overflow: hidden; background: #e9e2d6; }
.cat-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* Passaggio del mouse (solo dispositivi con mouse): ombra più ampia; sollevamento e zoom solo senza prefers-reduced-motion */
@media (hover: hover) {
  .cat-card { transition: box-shadow .35s ease, border-color .35s ease; }
  .cat-card:hover { border-color: rgba(60, 45, 30, 0.1); box-shadow: 0 2px 4px rgba(30, 20, 10, 0.05), 0 20px 38px -18px rgba(30, 20, 10, 0.22); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cat-card { transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .35s ease; }
  .cat-card:hover { transform: translateY(-3px); }
  .cat-card__media img { transition: transform .8s cubic-bezier(.22,1,.36,1); }
  .cat-card:hover .cat-card__media img { transform: scale(1.025); }
}
.cat-card__ph { position: absolute; inset: 0; background: linear-gradient(135deg, #ddd3c2, #c9bba3); }
.cat-card__badge {
  position: absolute; left: 16px; top: 16px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.94); color: #2a2723; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
}
.cat-card__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.cat-card__text { display: block; min-width: 0; }
.cat-card__name { display: block; font-family: var(--card-font); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -0.014em; color: #1d1d1f; }
.cat-card__ref { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; line-height: 1.3; letter-spacing: -0.006em; color: #86868b; }
.cat-card__price { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 12px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: #1d1d1f; }
.cat-card__cur { margin-right: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: #836a52; }
.cat-card__arrow { color: #796145; transition: transform .3s; }
.cat-card:hover .cat-card__arrow { transform: translateX(4px); }
/* nome+referenza e prezzo in colonna (griglia): il prezzo resta sempre in basso, allineato tra schede della stessa riga */
.cat-card__body { flex: 1; flex-direction: column; align-items: stretch; gap: 0; }
.cat-card__price { margin-top: auto; padding-top: 12px; }
.cat-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: #73716e; }

/* Vista a elenco */
.cat-grid[data-view="list"] { grid-template-columns: 1fr; gap: 12px; }
.cat-grid[data-view="list"] .cat-card { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 10px; }
.cat-grid[data-view="list"] .cat-card__media { flex: 0 0 104px; width: 104px; border-radius: 10px; }
.cat-grid[data-view="list"] .cat-card__badge { left: 6px; top: 6px; padding: 4px 8px; font-size: 8.5px; letter-spacing: 0.1em; }
.cat-grid[data-view="list"] .cat-card__body { flex: 1; min-width: 0; padding: 0 6px 0 0; }
.cat-grid[data-view="list"] .cat-card__name { font-size: 17px; }
.cat-grid[data-view="list"] .cat-card__price { margin-top: 6px; padding-top: 0; justify-content: flex-start; gap: 14px; }

.cat-more { margin-top: 44px; text-align: center; }
.cat-more[hidden] { display: none; }
.cat-grid.is-loading { opacity: 0.45; transition: opacity .2s; }

@media (min-width: 560px) {
  .hm-root .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid[data-view="list"] { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .hm-root .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid[data-view="list"] { grid-template-columns: 1fr; }
  .cat-grid[data-view="list"] .cat-card { padding: 12px 14px 12px 12px; }
  .cat-grid[data-view="list"] .cat-card__media { flex-basis: 190px; width: 190px; border-radius: 12px; }
  .cat-grid[data-view="list"] .cat-card__badge { left: 10px; top: 10px; padding: 6px 11px; font-size: 10px; }
  .cat-grid[data-view="list"] .cat-card__body { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .cat-grid[data-view="list"] .cat-card__price { width: auto; margin-top: 0; padding-top: 0; flex-shrink: 0; }
  .cat-grid[data-view="list"] .cat-card__name { font-size: 19px; }
}
@media (min-width: 1280px) {
  .hm-root .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid[data-view="list"] { grid-template-columns: 1fr; }
}

/* ── DESKTOP ≥ 960px: hero a due colonne con foto a destra ── */
@media (min-width: 960px) {
  .hm-hero { min-height: 545px; display: flex; align-items: center; }
  .hm-hero__inner { width: 100%; max-width: 1568px; margin: 0 auto; padding: 56px 7.4vw 56px; }
  .hm-hero__content { max-width: min(680px, 46vw); }
  .hm-root .hm-hero__title { margin-top: 30px; font-size: clamp(42px, 4.28vw, 74px); line-height: 0.93; }
  .hm-hero__title span { white-space: nowrap; }
  .hm-root .hm-hero__text { margin-top: 26px; font-size: clamp(15px, 1.08vw, 18px); max-width: 26em; }
  .hm-hero__ctas { margin-top: 34px; }
  .hm-root .hm-hero__ctas .hm-btn { min-height: 48px; }
  .hm-root .hm-points { grid-template-columns: repeat(3, auto); gap: 0; margin-top: 40px; width: max-content; max-width: 46vw; }
  .hm-points li { padding: 0 22px; border-left: 1px solid var(--hm-hair); }
  .hm-points li:first-child { padding-left: 0; border-left: none; }
  .hm-points span { font-size: clamp(14px, 0.95vw, 16px); }
  .hm-hero__media {
    position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 57%; height: auto; margin: 0;
  }
  .hm-hero__media::before { /* sfumatura: la foto si fonde nel crema a sinistra */
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--hm-bg) 0%, rgba(250,248,244,0.75) 8%, rgba(250,248,244,0) 34%);
  }
  .hm-hero__media img { object-position: 50% 50%; }
  .hm-hero__ph svg { right: 12%; width: 34%; max-width: 380px; }
  .hm-hero__stamp { z-index: 2; left: auto; right: 5%; top: 14%; width: 9.8vw; max-width: 170px; height: auto; aspect-ratio: 1; min-width: 120px; }
  .hm-hero__stamp text { font-size: 10px; }

  .hm-collection { padding: 44px 0 90px; }
  #cat-root { padding: 38px 6.4vw 0; }
  .hm-toolbar { grid-template-columns: 250px 235px minmax(260px, 1fr) auto auto; gap: 30px; margin: 0 1.2vw 36px; }
  .hm-search { grid-column: auto; height: 44px; max-width: 580px; }
  .hm-views { justify-self: end; }
  .hm-root .hm-count { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .hm-toolbar { grid-template-columns: 1fr 1fr; margin: 0 0 30px; }
  .hm-search { grid-column: 1 / -1; max-width: none; }
  .hm-toolbar .hm-count { grid-column: 1 / 2; }
  .hm-toolbar .hm-views { grid-column: 2 / 3; }
}

/* Mobile: risultati e pulsanti vista sulla stessa riga */
@media (max-width: 959px) {
  .hm-toolbar .hm-count { grid-column: 1 / 2; }
  .hm-toolbar .hm-views { grid-column: 2 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-root * { transition-duration: 0.01ms !important; }
  .hm-root, html:has(.hm-root) { scroll-behavior: auto; }
}
html:has(.hm-root) { scroll-behavior: smooth; }

/* ═══ RITOCCHI ESTETICI (08/10/2026) ═══
   Ogni blocco R… è indipendente: per toglierlo basta cancellarlo. */
/* R2 — sfumatura leggera dello sfondo della collezione: crema → bianco caldo */
.hm-collection { background: var(--sito-bg); }
/* R3 — filetto sottile tra hero e collezione */
.hm-collection { border-top: 1px solid var(--hm-hair); }
/* R4 — ombra morbida su filtri, ricerca e pulsanti vista */
.hm-select select, .hm-search, .hm-view { box-shadow: 0 1px 2px rgba(30, 20, 10, 0.05); }
/* R5 — pulsanti: ombra leggera, più ampia al passaggio del mouse */
.hm-root .hm-btn { box-shadow: 0 1px 2px rgba(8, 34, 27, 0.14), 0 6px 14px -8px rgba(8, 34, 27, 0.35); }
.hm-root .hm-btn:hover { box-shadow: 0 2px 4px rgba(8, 34, 27, 0.16), 0 12px 22px -10px rgba(8, 34, 27, 0.45); }
.hm-root .hm-btn--ghost { box-shadow: none; }
.hm-root .hm-btn--ghost:hover { box-shadow: 0 2px 4px rgba(8, 34, 27, 0.14), 0 10px 20px -10px rgba(8, 34, 27, 0.4); }

/* Titoli grandi su telefono/tablet: interlinea più larga perché le righe non si tocchino (it/fr/de hanno parole più lunghe) */
@media (max-width: 959px) {
  .hm-root .hm-hero__title { line-height: 1.1; }
  .hm-root .hm-collection__head h2 { line-height: 1.12; }
  .hm-root .hm-hero__title, .hm-root .hm-collection__head h2 { hyphens: auto; overflow-wrap: break-word; }
  /* tedesco/francese: parole lunghe ("Aussergewöhnliche") non devono uscire dallo schermo */
  html[lang='de'] .hm-root .hm-hero__title { font-size: clamp(32px, 10.2vw, 46px); }
  html[lang='fr'] .hm-root .hm-hero__title { font-size: clamp(36px, 11vw, 50px); }
}
