/* ==========================================================================
   home.css · solo ciò che il catalogo (components.css) non copre, per la Home.
   Misure della demo (sito-demo/index.html, D20). Sezioni nell'ordine della pagina:
   hero · «Oggi al banco» · prodotti · torte · recensioni. Sala, ricorrenze e «Vieni a trovarci» sono condivise: components.css.
   ========================================================================== */

/* ---- Hero: testo 1.05fr, composizione .95fr; su telefono la composizione (330px) sta sopra il testo ---- */
.home-closures {
  color: var(--carta);
  background: var(--terracotta);
  border-bottom: 0.25rem solid var(--burro-calmo);
}

.home-closures__inner {
  display: grid;
  gap: 0.7rem var(--sp-4);
  align-items: center;
  padding-block: 1rem;
}

.home-closures .eyebrow { color: inherit; }
.home-closures h2 { font-size: var(--fs-title-s); }
.home-closures__dates { font-weight: 650; }
.home-closures__dates li + li { margin-top: 0.2rem; }
.home-closures__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tocco);
  color: inherit;
  font-weight: 700;
}

@media (min-width: 48em) {
  .home-closures__inner { grid-template-columns: minmax(15rem, 0.9fr) minmax(18rem, 1.2fr) auto; }
}

.hero {
  padding-block: 1.125rem 2.5rem;
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  gap: 0.375rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* L'occhiello sta DENTRO l'h1 (così l'h1 dice "Pasticceria", "Caffetteria" e "Lentate sul Seveso"): va sulla sua riga */
.hero__label {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.625rem;
  font-size: 0.6875rem;
}

.hero__label::after {
  align-self: center;
}

.hero__label .label__em {
  font-size: 1.5rem;
}

@media (max-width: 29.99em) {
  .hero__label {
    column-gap: 0.625rem;
    letter-spacing: 0.04em;
  }

  .hero__label .label__em {
    font-size: 1.25rem;
  }

  .hero__label::after {
    display: none;
  }
}

.hero__line {
  display: block;
  font-size: var(--fs-h1-home);
  line-height: 0.93;
}

.hero__line em {
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero__lead {
  margin-top: 0.875rem;
}

.hero__actions {
  display: flex;
  gap: 0.625rem;
  margin-block: 1.375rem 1.25rem;
}

.hero__actions .btn {
  flex: 1;
  min-height: 3.125rem;
  padding-inline: 0.75rem;
  font-size: var(--fs-small);
}

/* Prove: «4,5 ★★★★½ 1.046 recensioni su Google | Instagram @…». Ognuna è un link alla fonte */
.proof {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.78125rem;
  line-height: 1.45;
  color: var(--testo-2);
}

.proof__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--tocco);
  text-decoration: none;
}

.proof__item:hover .proof__text {
  text-decoration: underline;
}

.proof__social-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--terracotta);
}

.proof__social-icon--fill { fill: currentColor; stroke: none; }

.proof__value {
  font-family: var(--font-titoli);
  font-size: var(--fs-proof);
  line-height: 1;
  color: var(--testo);
}

.proof__value--s {
  display: block;
  font-size: 1.5rem;
}

.proof__text .stars {
  display: flex;
  margin-bottom: 0.125rem;
}

.proof__sep {
  flex: none;
  align-self: center;
  width: 0.0625rem;
  height: 1.875rem;
  background-color: var(--linea);
}

/* Telefono, e due colonne con la colonna del testo ancora stretta (900-1104 px): la valutazione a sinistra e, a destra, Instagram e Facebook
   come due tasti rotondi (il testo resta per chi usa lo screen reader). Così la riga sta sempre nella colonna e non finisce sotto la foto. */
@media (max-width: 47.99em), (min-width: 56.25em) and (max-width: 69em) {
  .proof {
    gap: 0.5rem;
  }

  .proof__sep {
    display: none;
  }

  .proof__item:not(.proof__item--social) {
    min-width: 0;
    margin-right: auto;
  }

  .proof__item--social {
    flex: none;
    justify-content: center;
    width: var(--tocco);
    height: var(--tocco);
    border: 0.0625rem solid var(--linea);
    border-radius: 50%;
  }

  .proof__item--social .proof__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .proof__social-icon {
    width: 1.375rem;
    height: 1.375rem;
  }
}

/* Composizione: disco rosa, arco, cerchio con il bordo carta, sigillo e didascalia (misure della demo) */
.hero__art {
  position: relative;
  order: -1;
  height: 20.625rem;
}

.hero__art::before {
  content: "";
  position: absolute;
  top: 0.625rem;
  right: -2.5rem;
  width: 16.25rem;
  aspect-ratio: 1;
  background-color: var(--rosa);
  border-radius: 50%;
}

.hero__arch {
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: 13.75rem;
  height: 18.75rem;
  aspect-ratio: auto;
  border-radius: 6.875rem 6.875rem 0.625rem 0.625rem;
}

.hero__circle {
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  width: 8.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--crema);
  border: 0.4375rem solid var(--carta);
  border-radius: 50%;
  box-shadow: 0 1.5625rem 3.125rem -1.5625rem rgb(46 29 20 / 0.55);
}

.hero__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 48em) and (max-width: 56.249em) {
  .hero__art {
    justify-self: center;
    width: 23rem;
    max-width: 100%;
    height: 17.75rem;
  }

  .hero__art::before {
    right: -1.5rem;
    width: 15rem;
  }

  .hero__arch {
    right: 0.5rem;
    width: 12.25rem;
    height: 16.75rem;
  }

  .hero__circle {
    left: 3rem;
    bottom: 0;
    width: 8.25rem;
  }
}

@media (min-width: 56.25em) {
  .hero {
    padding-block: 3.5rem 4.75rem;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
  }

  .hero__label {
    margin-bottom: 1.625rem;
    font-size: var(--fs-label);
  }

  .hero__lead {
    margin-top: 1.75rem;
    font-size: 1.1875rem;
  }

  .hero__actions {
    gap: 0.75rem;
    margin-block: 2.25rem 2.125rem;
  }

  .hero__actions .btn {
    flex: none;
    min-height: 3.25rem;
    padding-inline: 1.75rem;
    font-size: var(--fs-btn);
  }

  .proof {
    gap: 0.875rem;
    font-size: var(--fs-small);
  }

  .proof__value--s {
    font-size: 1.5rem;
  }

  .hero__art {
    order: 0;
    height: clamp(29rem, 50vw, 40rem);
  }

  .hero__art::before {
    top: 1.25rem;
    right: -3.75rem;
    width: 29.375rem;
  }

  .hero__arch {
    right: 2.5rem;
    width: min(25rem, calc(100% - 2.5rem));
    height: auto;
    aspect-ratio: 5 / 7;
    border-radius: 12.5rem 12.5rem 0.875rem 0.875rem;
  }

  .hero__circle {
    bottom: 0.625rem;
    left: 1.25rem;
    width: clamp(9rem, 18vw, 14.375rem);
    border-width: 0.625rem;
  }

}

/* ---- 02 · Torte: il foglietto a destra, largo come la colonna (su telefono a tutta larghezza) ---- */
.home-cake__slip {
  width: 100%;
}

.home-cake .slip-row__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--tocco);
  padding: 0 0.25rem;
  font-family: var(--font-titoli);
  font-size: var(--fs-value);
  font-style: italic;
  line-height: 1.3;
  text-align: right;
  color: var(--cioccolato);
  background: transparent;
  border: 0;
  border-radius: var(--raggio);
}

.home-cake textarea.slip-row__input {
  width: 100%;
  height: var(--tocco);
  resize: vertical;
}

.home-cake .slip-row__input:hover,
.home-cake .slip-row__input:focus-visible {
  background-color: var(--carta);
}

.home-cake .slip-row__input::placeholder {
  color: var(--caramello-scuro);
  opacity: 0.85;
}

@media (min-width: 64em) {
  .home-cake .split {
    gap: 5rem;
  }
}

/* ---- 03 · Recensioni: tutto centrato tranne la riga delle tre colonne ---- */
.home-reviews .container {
  text-align: center;
}

.home-reviews__label {
  justify-content: center;
}

.home-reviews__quote .quote__text {
  margin-inline: auto;
}

.home-reviews__note {
  margin: 1.625rem auto 0;
  font-size: var(--fs-label);
}

/* Senza recensioni verificate la sezione resta un invito compatto, non un blocco vuoto. */
.home-reviews--compact {
  --testo-2: var(--cioccolato-2);
  background-color: var(--salvia);
  padding-block: 2.25rem;
}

.home-reviews--compact .label__num {
  color: var(--caramello-scuro);
}

.home-reviews--compact .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 2rem;
}

.home-reviews--compact .home-reviews__label,
.home-reviews__source {
  margin: 0;
}

@media (min-width: 48em) {
  .home-reviews--compact {
    padding-block: 2.75rem;
  }
}
