/* ==========================================================================
   Caffè UNOGOLD — foglio di stile del tema
   I token ricalcano quelli dell'anteprima React, così il tema e la preview
   restano la stessa cosa vista da due motori diversi.
   ========================================================================== */

:root {
  --espresso: #12100e;
  --espresso-soft: #1c1815;
  --espresso-line: #2e2721;
  --gold: #c9a227;
  --gold-soft: #e0c264;
  --bruno: #6a2e17;
  --bruno-soft: #8c4423;
  --crema: #f5efe6;
  --crema-deep: #e9dfd0;
  --nebbia: #f7f7f7;
  --ink: #221c17;

  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 78rem;
  --header-h: 4.6rem;

  /* Quanto il chicco sporge sopra la banda marrone, dentro lo slider.
     Serve a due componenti: la banda come margine negativo, lo slider come
     spazio riservato in fondo, così il titolo non finisce sotto al chicco. */
  --bean-overhang: clamp(140px, 19vw, 280px);
}

/* --------------------------------------------------------------- reset --- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Niente ancoraggio dello scroll: le foto che si decodificano dopo il primo
   paint trascinavano la pagina verso il basso appena aperta una scheda. */
main { display: block; overflow-anchor: none; }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--bruno); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; font-weight: 600; line-height: 1.2; }
p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--bruno); color: var(--crema); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--espresso);
  padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* -------------------------------------------------------------- layout --- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .shell { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
.section--tight { padding-block: 4rem; }
.section--white { background: #fff; }
.section--nebbia { background: var(--nebbia); }
.section--crema { background: var(--crema); }
.section--bruno { background: var(--bruno); color: #fff; }
.section--espresso { background: var(--espresso); color: #fff; }

.grid { display: grid; gap: 1.5rem; align-items: stretch; }
/*
 * Le celle sono già alte quanto la riga: basta che la card dentro le riempia.
 * Il flex va solo sugli involucri di servizio marcati .grid-cell: applicarlo a
 * ogni figlio della griglia mandava di traverso i blocchi con un impianto
 * proprio, come le schede delle sedi o i punti con l'icona di fianco.
 */
.grid-cell { display: flex; }
.grid-cell > * { width: 100%; }
.grid > .card,
.grid > .product-card,
.grid > .formula,
.grid-cell > .card,
.grid-cell > .product-card,
.grid-cell > .formula,
.grid-cell > .post-card { height: 100%; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.text-center { text-align: center; }

/* ------------------------------------------------------------- tipografia */

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
}
.section-sub {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgb(34 28 23 / 0.55);
}
.section--bruno .section-title,
.section--espresso .section-title,
.is-dark .section-title { color: #fff; }
.section--bruno .section-sub,
.section--espresso .section-sub,
.is-dark .section-sub { color: rgb(255 255 255 / 0.65); }

.eyebrow {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bruno);
}
.eyebrow--gold { color: var(--gold); }

.lead { font-size: 0.95rem; line-height: 1.75; color: rgb(34 28 23 / 0.6); }

/* --------------------------------------------------------------- bottoni --- */

.btn,
.btn-bruno,
.btn-gold,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2px;
  padding: 0.875rem 2rem;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-bruno { background: var(--bruno); color: #fff; }
.btn-bruno:hover { background: var(--bruno-soft); color: #fff; }
.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold:hover { background: var(--gold-soft); color: var(--espresso); }
.btn-outline { border: 1px solid currentColor; background: transparent; }
.btn-outline--bruno { color: var(--bruno); }
.btn-outline--bruno:hover { background: var(--bruno); color: #fff; }
.btn-outline--white { color: #fff; }
.btn-outline--white:hover { background: #fff; color: var(--espresso); }
.btn--wide { width: 100%; }
.btn--sm { padding: 0.625rem 1.75rem; font-size: 0.8rem; }

.arrow { width: 14px; height: 14px; flex: none; }

/* ----------------------------------------------------------------- card --- */

.card {
  border: 1px solid var(--crema-deep);
  background: #fff;
  transition: box-shadow 0.3s var(--ease);
}
.card:hover { box-shadow: 0 18px 40px -28px rgb(34 28 23 / 0.45); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  flex: none;
  border-radius: 6px;
  background: var(--bruno);
  color: var(--crema);
}

.rule-tricolore {
  height: 1px;
  width: 100%;
  opacity: 0.45;
  background: linear-gradient(90deg, #0f8a4a 0 33.3%, #f5efe6 33.3% 66.6%, #c8332e 66.6% 100%);
}

.dots-deco {
  background-image: radial-gradient(currentColor 1.1px, transparent 1.1px);
  background-size: 14px 14px;
}

/* --------------------------------------------------------------- header --- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  background: transparent;
}
.site-header.is-scrolled,
body.has-solid-header .site-header {
  background: rgb(18 16 14 / 0.95);
  backdrop-filter: blur(18px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--header-h);
}
.site-brand { display: flex; align-items: center; gap: 0.625rem; flex: none; }
.site-brand img { height: 3rem; width: auto; }
.site-brand__text { display: none; line-height: 1; }
@media (min-width: 640px) { .site-brand__text { display: block; } }
.site-brand__name { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.site-brand__tag { display: block; margin-top: 2px; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.26em; color: var(--gold); }

.main-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1280px) { .main-nav { display: flex; } }
.main-nav a { font-size: 0.9rem; color: rgb(255 255 255 / 0.85); transition: color 0.3s var(--ease); }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-parent > a { color: var(--gold); }
.main-nav ul { display: flex; gap: 1.5rem; align-items: center; }
.main-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.cart-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: rgb(255 255 255 / 0.85);
  transition: color 0.3s var(--ease);
}
.cart-link:hover { color: var(--gold); }
@media (min-width: 1024px) { .cart-link { display: flex; } }

.cart-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  transition: color 0.3s var(--ease);
}
.cart-icon-btn:hover { color: var(--gold); }
@media (min-width: 1024px) { .cart-icon-btn { display: none; } }
.cart-icon-btn__count {
  position: absolute;
  top: 0; right: 0;
  display: grid;
  place-items: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--espresso);
  font-size: 0.6rem;
  font-weight: 600;
}

/* Il pannello a tutta pagina serve solo dove il menu in riga non c'è: da 1280px
   in su le voci sono già tutte visibili e l'hamburger sarebbe un doppione. */
.burger { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: #fff; transition: color 0.3s var(--ease); }
@media (min-width: 1280px) { .burger, .nav-panel { display: none; } }
.burger:hover { color: var(--gold); }
.burger span { display: grid; gap: 5px; }
.burger i { display: block; width: 1.5rem; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s linear; }
.burger[aria-expanded='true'] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta { display: none; padding: 0.75rem 1.5rem; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* pannello a scomparsa */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(18 16 14 / 0.97);
  backdrop-filter: blur(28px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.nav-panel.is-open { visibility: visible; opacity: 1; }
.nav-panel__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 0.25rem;
  padding-top: 5rem;
}
.nav-panel a.nav-panel__link {
  display: block;
  border-bottom: 1px solid var(--espresso-line);
  padding-block: 1rem;
  font-size: 1.875rem;
  font-weight: 500;
  color: #fff;
  transform: translateY(1.5rem);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.3s var(--ease);
}
@media (min-width: 640px) { .nav-panel a.nav-panel__link { font-size: 2.25rem; } }
.nav-panel.is-open a.nav-panel__link { transform: translateY(0); opacity: 1; }
.nav-panel a.nav-panel__link:hover,
.nav-panel .current-menu-item > a.nav-panel__link { color: var(--gold); }
.nav-panel__cta { margin-top: 2rem; align-self: flex-start; }

/* ----------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--espresso);
  padding-bottom: calc(var(--bean-overhang) + 6rem);
}
.hero__slide {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: unogold-kenburns 9s ease-out forwards; }
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before { background: rgb(18 16 14 / 0.55); }
.hero::after { background: linear-gradient(90deg, rgb(18 16 14 / 0.8), rgb(18 16 14 / 0.25) 55%, transparent); }

.hero__body { position: relative; width: 100%; padding-top: 6rem; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.hero__title {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.hero__sub { margin-top: 1.25rem; font-size: 1.02rem; line-height: 1.7; color: rgb(255 255 255 / 0.8); }
.hero__actions { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgb(255 255 255 / 0.7);
  transition: color 0.3s var(--ease);
}
.hero__arrow:hover { color: var(--gold); }
.hero__arrow--prev { left: 0.75rem; }
.hero__arrow--next { right: 0.75rem; }
@media (min-width: 640px) {
  .hero__arrow { display: grid; }
  .hero__arrow--prev { left: 1.5rem; }
  .hero__arrow--next { right: 1.5rem; }
}

@keyframes unogold-kenburns {
  from { transform: scale(1.12) translate3d(1.2%, 0.8%, 0); }
  to { transform: scale(1) translate3d(0, 0, 0); }
}

/* disco rotante */
.badge-spin {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: none;
}
.badge-spin__ring { position: absolute; inset: 0; animation: unogold-spin 20s linear infinite; }
.badge-spin__ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  font-size: 0.56rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.85);
}
.badge-spin__core {
  display: grid;
  place-items: center;
  width: 54%;
  height: 54%;
  border-radius: 999px;
  background: var(--bruno);
  color: #fff;
  transition: transform 0.5s var(--ease);
}
.badge-spin:hover .badge-spin__core { transform: scale(1.1); }
@keyframes unogold-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- fascia chicco --- */

.bean-band {
  position: relative;
  z-index: 20;
  display: flow-root; /* contiene il margine negativo senza ritagliare */
  background-color: var(--bruno);
  background-size: 120px 120px;
}
.bean-band__inner {
  position: relative;
  width: min(80vw, 690px);
  margin-inline: auto;
  margin-top: calc(var(--bean-overhang) * -1);
  padding-bottom: 3.5rem;
}
.bean-band__img { position: relative; z-index: 10; width: 100%; }

.smoke {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 0;
  height: clamp(240px, 40vw, 380px);
  transform: translateY(-55%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 100%);
}
.smoke i {
  position: absolute;
  bottom: 0;
  width: 165px;
  height: 100%;
  margin-left: -82px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 78%,
    rgb(255 255 255 / 0.97) 0%,
    rgb(255 255 255 / 0.62) 32%,
    rgb(255 255 255 / 0.24) 55%,
    transparent 74%
  );
  filter: blur(10px);
  will-change: transform, opacity;
  animation: unogold-smoke 6.5s ease-in-out infinite;
}
.smoke i:nth-child(1) { left: 36%; }
.smoke i:nth-child(2) { left: 47%; width: 140px; margin-left: -70px; animation-duration: 8.2s; animation-delay: -2.6s; }
.smoke i:nth-child(3) { left: 58%; width: 122px; margin-left: -61px; animation-duration: 7.4s; animation-delay: -4.8s; }
.smoke i:nth-child(4) { left: 68%; width: 104px; margin-left: -52px; animation-duration: 9s; animation-delay: -6.4s; }

@keyframes unogold-smoke {
  0% { transform: translate3d(0, 42%, 0) scale(0.75); opacity: 0; }
  18% { opacity: 1; }
  60% { opacity: 0.8; }
  100% { transform: translate3d(10%, -52%, 0) scale(1.45); opacity: 0; }
}

/* -------------------------------------------------------------- marquee --- */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--crema-deep);
  background: var(--crema);
  padding-block: 1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 2rem;
  white-space: nowrap;
  animation: unogold-marquee 38s linear infinite;
}
.marquee__track span {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bruno);
}
.marquee__track b { color: var(--gold); font-weight: 400; }
@keyframes unogold-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-33.333%, 0, 0); } }

/* ------------------------------------------------------------- carosello --- */

.carousel { position: relative; margin-top: 3rem; }
.carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
/* I riquadri prendono l'altezza della riga, non quella del proprio testo.
   Attenzione: un height:100% sulla card annullerebbe lo stretch, perché in
   flexbox un'altezza definita ha la precedenza sull'allineamento. */
.carousel__track { align-items: stretch; }
.carousel__track > * {
  flex: 0 0 85%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
@media (min-width: 640px) { .carousel__track > * { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (min-width: 1024px) { .carousel__track > * { flex-basis: calc((100% - 4.5rem) / 4); } }
.carousel__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.carousel__dots button {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
  transition: background-color 0.3s var(--ease), width 0.3s var(--ease);
}
.carousel__dots button.is-active { width: 1.5rem; background: var(--gold); }
.is-light .carousel__dots button { background: rgb(34 28 23 / 0.2); }
.is-light .carousel__dots button.is-active { background: var(--bruno); }

.service-card { display: flex; flex-direction: column; }
.service-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.service-card__body {
  display: flex; flex-direction: column; flex: 1;
  background: var(--espresso);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.service-card__icon { margin-inline: auto; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--gold); }
.service-card h3 { margin-top: 0.75rem; color: #fff; }
.service-card p { margin-top: 0.75rem; flex: 1; font-size: 0.875rem; color: rgb(255 255 255 / 0.65); }

.quote-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  text-align: center;
}
.quote-card p { flex: 1; font-size: 0.875rem; line-height: 1.75; color: rgb(34 28 23 / 0.7); }
.quote-card footer { margin-top: 1.5rem; }
.quote-card cite { display: block; font-style: normal; font-weight: 600; }
.quote-card small { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: rgb(34 28 23 / 0.45); }

/* ------------------------------------------------------- testata pagine --- */

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22rem;
  overflow: hidden;
  padding-top: 6rem;
  text-align: center;
}
.page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(106 46 23 / 0.82); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); color: #fff; }
.breadcrumb { margin-top: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgb(255 255 255 / 0.4); }
.breadcrumb .current { color: var(--gold); }

/* --------------------------------------------------- card info / valori --- */

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem;
  text-align: center;
  height: 100%;
}
.info-card h3 { margin-top: 1.25rem; }
.info-card p { margin-top: 0.75rem; flex: 1; font-size: 0.85rem; line-height: 1.7; color: rgb(34 28 23 / 0.55); }
.info-card .btn-bruno { margin-top: 1.5rem; }

.point { display: flex; gap: 1rem; }
.point__icon { margin-top: 0.25rem; flex: none; color: var(--bruno); }
.point h3 { font-size: 1rem; }
.point p { margin-top: 0.5rem; font-size: 0.84rem; line-height: 1.7; color: rgb(34 28 23 / 0.55); }

.stat { text-align: center; }
.stat__value { display: block; font-size: 3rem; font-weight: 600; color: var(--bruno); line-height: 1.1; }
.stat h3 { margin-top: 1rem; font-size: 1rem; }
.stat p { margin-top: 0.5rem; font-size: 0.82rem; color: rgb(34 28 23 / 0.5); }

/* --------------------------------------------------------- video block --- */

.video-block { position: relative; margin-top: 3rem; }
.video-block__deco { position: absolute; right: -0.5rem; top: 2.5rem; width: 8rem; height: 8rem; color: rgb(34 28 23 / 0.25); display: none; }
@media (min-width: 1024px) { .video-block__deco { display: block; } }
.video-block__frame { position: relative; max-width: 48rem; margin-inline: auto; }
.video-block__frame img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }

/* Filmato vero e proprio: parte solo al clic, senza audio. I comandi restano
   nascosti finché il tasto play non è stato premuto, così il riquadro è pulito. */
.video-block__frame--file { background: var(--nero, #221c17); }
.video-block__media { width: 100%; display: block; aspect-ratio: 1280 / 560; object-fit: contain; background: #221c17; }
.video-block__frame--file .video-block__media::-webkit-media-controls { display: none; }
.video-block__frame--file.is-playing .video-block__media::-webkit-media-controls { display: flex; }
.video-block__frame--file.is-playing .video-block__play { opacity: 0; visibility: hidden; pointer-events: none; }

.video-block__play {
  position: absolute;
  left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 5rem; height: 5rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgb(106 46 23 / 0.9);
  color: #fff;
  transition: transform 0.3s var(--ease);
}
.video-block__play:hover { transform: translate(-50%, -50%) scale(1.1); }
.video-block__play[disabled] { opacity: 0.55; cursor: default; }
.video-block__play[disabled]:hover { transform: translate(-50%, -50%); }
.video-block__note { margin-top: 1rem; text-align: center; font-size: 0.75rem; color: rgb(34 28 23 / 0.4); }

/* ----------------------------------------------------------- torna su --- */

/* Sta sotto al carrello a tendina (z-index 60) e sopra tutto il resto.
   Compare solo dopo cinquecento pixel di scorrimento, via classe dal JS. */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgb(201 162 39 / 0.45);
  border-radius: 999px;
  background: var(--bruno);
  color: var(--crema);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s,
    background-color 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--bruno-soft); }
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (min-width: 1024px) {
  .to-top { right: 1.75rem; bottom: 1.75rem; width: 3.25rem; height: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.2s linear, visibility 0.2s; transform: none; }
}

/* ------------------------------------------------------- riga di listino --- */

.menu-grid { display: grid; gap: 2rem 3.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: 1fr 1fr; } }

.menu-row { display: flex; align-items: center; gap: 1.25rem; }
.menu-row__img {
  width: 4rem; height: 4rem; flex: none;
  border-radius: 999px;
  background: var(--nebbia);
  object-fit: contain;
  padding: 0.5rem;
}
.menu-row__body { min-width: 0; flex: 1; }
.menu-row__name { display: block; font-weight: 600; transition: color 0.3s var(--ease); }
.menu-row:hover .menu-row__name { color: var(--bruno); }
.menu-row__desc { display: block; margin-top: 0.25rem; font-size: 0.82rem; line-height: 1.65; color: rgb(34 28 23 / 0.55); }
.menu-row__meta { display: block; margin-top: 0.25rem; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgb(34 28 23 / 0.35); }
.menu-row__price { flex: none; white-space: nowrap; font-size: 1.25rem; font-weight: 600; color: var(--bruno); }

/* ------------------------------------------------------- card categorie --- */

.blend-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 19rem;
  overflow: hidden;
  background: var(--nebbia);
  padding: 1.5rem;
}
.blend-card img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.25rem 1.25rem 8rem;
  transition: transform 1.1s var(--ease);
}
.blend-card:hover img { transform: scale(1.05); }
/* Il velo deve essere già pieno dove comincia la scritta, non solo sul fondo:
   con le buste chiare l'oro dell'occhiello spariva contro il bianco. */
.blend-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: -1;
  height: 55%;
  background: linear-gradient(
    to top,
    var(--espresso) 0%,
    var(--espresso) 34%,
    rgb(18 16 14 / 0.86) 58%,
    transparent 100%
  );
}
.blend-card__blend { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); }
.blend-card__name { display: block; margin-top: 0.25rem; font-weight: 600; color: #fff; }
.blend-card__more { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }

/* ------------------------------------------------------------ prodotti --- */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--crema-deep);
  background: #fff;
  transition: box-shadow 0.3s var(--ease);
}
.product-card:hover { box-shadow: 0 18px 40px -28px rgb(34 28 23 / 0.45); }
.product-card__media { position: relative; display: block; overflow: hidden; background: var(--nebbia); }
.product-card__media img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 1.1s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badge {
  position: absolute;
  left: 0; top: 1rem;
  background: var(--gold);
  color: var(--espresso);
  padding: 0.375rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.25rem 1.25rem; text-align: center; }
.product-card__format { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgb(34 28 23 / 0.4); }
.product-card__blend { margin-top: 0.25rem; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgb(106 46 23 / 0.7); }
.product-card__title { margin-top: 0.5rem; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.product-card__title a:hover { color: var(--bruno); }
.product-card__excerpt { margin-top: 0.75rem; flex: 1; font-size: 0.82rem; line-height: 1.7; color: rgb(34 28 23 / 0.55); }
.product-card__price { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; color: var(--bruno); }
.product-card__price del { opacity: 0.45; font-weight: 400; margin-right: 0.375rem; }
.product-card__price ins { text-decoration: none; }
.product-card .btn-bruno { margin-top: 1.25rem; }

/* barra filtri dello shop */
.shop-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--crema-deep);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(18px);
}
.shop-bar__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-block: 1rem; }
@media (min-width: 1280px) { .shop-bar__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* I filtri vanno a capo e restano centrati: la striscia che scorreva in
   orizzontale su telefono non si vedeva che c'era. */
.shop-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
@media (min-width: 1280px) { .shop-tabs { justify-content: flex-start; } }

/* Le ancore del listino: stesso trattamento, senza il riquadro. */
.anchor-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
.anchor-tabs a { font-size: 0.8rem; color: rgb(34 28 23 / 0.6); }
.anchor-tabs a:hover { color: var(--bruno); }
.shop-tabs a {
  flex: none;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  color: rgb(34 28 23 / 0.65);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.shop-tabs a:hover { border-color: var(--bruno); color: var(--bruno); }
.shop-tabs a.is-active { border-color: var(--bruno); background: var(--bruno); color: #fff; }
.shop-sort { display: flex; align-items: center; gap: 0.75rem; flex: none; font-size: 0.78rem; color: rgb(34 28 23 / 0.45); }
.shop-sort select { border: 1px solid var(--crema-deep); border-radius: 2px; background: #fff; padding: 0.5rem 0.75rem; color: var(--ink); }
.shop-sort select:focus { border-color: var(--bruno); outline: none; }
.shop-count { text-align: center; font-size: 0.875rem; color: rgb(34 28 23 / 0.5); }

/* scheda prodotto */
.product-detail { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.product-gallery__main { position: relative; overflow: hidden; background: var(--nebbia); }
.product-gallery__main img { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; padding: 2rem; }
.product-gallery__thumbs { display: flex; gap: 0.75rem; margin-top: 1rem; }
.product-gallery__thumbs button {
  width: 5rem; height: 5rem;
  overflow: hidden;
  border: 1px solid var(--crema-deep);
  transition: border-color 0.3s var(--ease);
}
.product-gallery__thumbs button.is-active { border-color: var(--bruno); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; background: var(--nebbia); padding: 0.375rem; }

.product-detail h1 { margin-top: 0.75rem; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; }
.product-detail .product-detail__excerpt { margin-top: 1.25rem; line-height: 1.75; color: rgb(34 28 23 / 0.65); }
.note-list { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.note-list span {
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  padding: 0.375rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(34 28 23 / 0.55);
}
.price-row { margin-top: 2rem; display: flex; align-items: baseline; gap: 1rem; }
.price-row .price { font-size: 2rem; font-weight: 600; color: var(--bruno); }
.price-row small { font-size: 0.75rem; color: rgb(34 28 23 / 0.45); }

.accordion { margin-top: 2rem; border-top: 1px solid var(--crema-deep); }
.accordion__item { border-bottom: 1px solid var(--crema-deep); }
.accordion__head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding-block: 1rem;
  text-align: left;
  font-weight: 500;
}
.accordion__head:hover { color: var(--bruno); }
.accordion__sign { color: var(--bruno); font-size: 1.125rem; }
.accordion__body { display: none; padding-bottom: 1rem; font-size: 0.9rem; line-height: 1.75; color: rgb(34 28 23 / 0.6); }
.accordion__item.is-open .accordion__body { display: block; }

.notice-box {
  margin-top: 1.75rem;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  background: var(--nebbia);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: rgb(34 28 23 / 0.5);
}

/* --------------------------------------------------------------- blog --- */

.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__media { overflow: hidden; }
.post-card__media img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.25rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgb(34 28 23 / 0.4); }
.post-card__meta span:first-child { color: var(--bruno); }
.post-card h3 { margin-top: 0.75rem; font-size: 1.05rem; line-height: 1.4; }
.post-card h3 a:hover { color: var(--bruno); }
.post-card p { margin-top: 0.75rem; flex: 1; font-size: 0.85rem; line-height: 1.7; color: rgb(34 28 23 / 0.55); }
.post-card__more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; color: var(--bruno); }

.entry-content { max-width: 46rem; margin-inline: auto; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content p, .entry-content li { line-height: 1.8; color: rgb(34 28 23 / 0.72); }
.entry-content h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.entry-content h3 { margin-top: 2rem; font-size: 1.25rem; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.25rem; }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  font-style: italic;
  color: rgb(34 28 23 / 0.7);
}
.entry-content a { color: var(--bruno); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { margin-inline: auto; }
.entry-content code { background: var(--nebbia); padding: 0.125rem 0.375rem; font-size: 0.9em; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--crema-deep);
  padding-inline: 0.5rem;
  font-size: 0.85rem;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { border-color: var(--bruno); background: var(--bruno); color: #fff; }

/* --------------------------------------------------------------- form --- */

.field {
  width: 100%;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  background: #fff;
  padding: 0.875rem 1rem;
  transition: border-color 0.3s var(--ease);
}
.field:focus { border-color: var(--bruno); outline: none; }
textarea.field { resize: vertical; min-height: 9rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.form-note { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: rgb(34 28 23 / 0.45); }

/* -------------------------------------------------------------- footer --- */

.site-footer { background: var(--bruno); color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 0.85fr 1.5fr 1fr; gap: 4rem; } }
.site-footer__brand { text-align: center; }
@media (min-width: 1024px) { .site-footer__brand { text-align: left; } }
.site-footer__brand img { height: 5rem; width: auto; margin-inline: auto; }
@media (min-width: 1024px) { .site-footer__brand img { margin-inline: 0; } }
.site-footer__brand p { margin: 1.25rem auto 0; max-width: 16rem; font-size: 0.875rem; line-height: 1.7; color: rgb(255 255 255 / 0.75); }
@media (min-width: 1024px) { .site-footer__brand p { margin-inline: 0; } }
.social { margin-top: 1.5rem; display: flex; justify-content: center; gap: 0.75rem; }
@media (min-width: 1024px) { .social { justify-content: flex-start; } }
.social a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social a:hover { border-color: var(--gold); }

.site-footer__mission { text-align: center; }
.site-footer__mission h2 { font-size: 1.5rem; }
.site-footer__mission p { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.75; color: rgb(255 255 255 / 0.75); }
.site-footer__mission a { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--gold); }

.contact-list { display: grid; gap: 1.5rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; }
.contact-list__icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; flex: none;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-list a:hover .contact-list__icon { border-color: var(--gold); color: var(--gold); }
.contact-list__label { display: block; font-size: 0.75rem; color: rgb(255 255 255 / 0.6); }
.contact-list__value { display: block; font-weight: 600; }

.site-footer__legal { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: rgb(255 255 255 / 0.7); }
.site-footer__note { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; line-height: 1.7; color: rgb(255 255 255 / 0.45); }

/* ------------------------------------------------------------ sedi/mappa --- */

.location-card { padding: 2rem 1.75rem; }
.location-card h3 { margin-top: 0.5rem; font-size: 1.25rem; }
.location-card address { margin-top: 1rem; font-style: normal; line-height: 1.75; color: rgb(34 28 23 / 0.6); }
.location-card__note { margin-top: 0.75rem; font-size: 0.875rem; color: rgb(34 28 23 / 0.4); }
.location-card__links { margin-top: 1.25rem; display: grid; gap: 0.375rem; font-size: 0.875rem; }
.location-card__links a { color: rgb(34 28 23 / 0.7); }
.location-card__links a.is-wa { color: rgb(34 28 23 / 0.5); }
.map-embed { width: 100%; height: 26rem; border: 0; display: block; }

/* --------------------------------------------------------- franchising --- */

.step-list { margin-top: 1.75rem; display: grid; gap: 1.5rem; }
.step-list li { display: flex; gap: 1rem; }
.step-list__n {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; flex: none;
  border-radius: 999px;
  background: var(--bruno);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}
.step-list p { font-size: 0.9rem; line-height: 1.75; color: rgb(34 28 23 / 0.65); }

.badge-60 {
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bruno);
  color: #fff;
  padding: 1.25rem 1.75rem;
}
.badge-60 b { display: block; font-size: 1.5rem; font-weight: 600; }
.badge-60 small { font-size: 0.75rem; color: rgb(255 255 255 / 0.7); }

.formula {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  background: #fff;
  padding: 2.25rem;
  text-align: center;
  transition: transform 0.5s var(--ease);
  height: 100%;
}
.formula:hover { transform: translateY(-6px); }
.formula--featured { border-color: var(--bruno); background: var(--bruno); color: #fff; }
.formula__flag {
  position: absolute;
  top: -0.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--espresso);
  padding: 0.25rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.formula__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgb(34 28 23 / 0.4); }
.formula--featured .formula__label { color: rgb(255 255 255 / 0.6); }
.formula h3 { margin-top: 0.5rem; font-size: 1.875rem; text-transform: uppercase; }
.formula__range { margin-top: 1.75rem; font-size: 1.5rem; font-weight: 600; color: var(--bruno); }
.formula--featured .formula__range { color: var(--gold); }
.formula__sub { margin-top: 0.25rem; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgb(34 28 23 / 0.4); }
.formula--featured .formula__sub { color: rgb(255 255 255 / 0.55); }
.formula__area { margin-top: 1.5rem; flex: 1; font-size: 0.88rem; line-height: 1.75; color: rgb(34 28 23 / 0.6); }
.formula--featured .formula__area { color: rgb(255 255 255 / 0.75); }
.formula .btn-bruno, .formula .btn-gold { margin-top: 2rem; }

.check-list { display: grid; gap: 1rem 2.5rem; max-width: 56rem; margin: 3rem auto 0; }
@media (min-width: 640px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-list svg { margin-top: 0.25rem; flex: none; color: var(--bruno); }
.check-list span { font-size: 0.88rem; line-height: 1.75; color: rgb(34 28 23 / 0.65); }

.doc-list { display: grid; gap: 0 3rem; margin-top: 3rem; }
@media (min-width: 640px) { .doc-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .doc-list { grid-template-columns: repeat(3, 1fr); } }
.doc-list li { display: flex; gap: 1rem; border-bottom: 1px solid var(--crema-deep); padding-block: 1.25rem; }
.doc-list b { color: var(--bruno); }
.doc-list span { font-size: 0.86rem; line-height: 1.75; color: rgb(34 28 23 / 0.65); }

.tip { text-align: center; }
.tip__icon { margin-inline: auto; display: grid; place-items: center; width: 3rem; height: 3rem; color: var(--gold); }
.tip p { margin-top: 1rem; font-size: 0.88rem; line-height: 1.75; color: rgb(255 255 255 / 0.75); }

/* ------------------------------------------------------------- squadra --- */

.member { text-align: center; }
.member img { margin-inline: auto; aspect-ratio: 1 / 1; width: 11rem; border-radius: 999px; object-fit: cover; }
.member h3 { margin-top: 1.25rem; color: #fff; }
.member p { margin-top: 0.25rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.65); }

/* -------------------------------------------------- sezione con sfondo --- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 6rem;
}
/* z-index -2: a parità di livello lo pseudo-elemento ::before è il primo figlio
   e sarebbe finito sotto alla foto, lasciando il testo senza velo. */
.band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Il velo era troppo leggero: su una foto chiara il sottotitolo e il claim si
   perdevano. Doppio strato, più scuro al centro dove cade il testo. */
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgb(18 16 14 / 0.93) 0%, rgb(18 16 14 / 0.89) 55%, rgb(18 16 14 / 0.84) 100%);
}
.band--bruno::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgb(106 46 23 / 0.93) 0%, rgb(18 16 14 / 0.88) 70%);
}
.band .section-sub,
.band .tip p { color: rgb(255 255 255 / 0.86); }
.band__claim { color: var(--gold-soft); }
.band__claim { margin-top: 2rem; font-size: 1.125rem; font-style: italic; color: rgb(201 162 39 / 0.85); text-align: center; }

/* --------------------------------------------------------- rivelazioni --- */

.reveal-armed [data-reveal] { opacity: 0; }
[data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-armed [data-reveal='up'] { transform: translateY(42px); }
.reveal-armed [data-reveal='scale'] { transform: scale(1.06); }
[data-reveal].is-in { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  .reveal-armed [data-reveal] { opacity: 1 !important; transform: none !important; }
  .smoke i { animation: none; opacity: 0.55; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================ WooCommerce */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 3px solid var(--bruno);
  background: var(--nebbia);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
}
.woocommerce-error { border-top-color: #c8332e; }
.woocommerce-message .button,
.woocommerce-info .button { float: right; }

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 2px;
  background: var(--bruno);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.3s var(--ease);
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--bruno-soft); color: #fff; }
.woocommerce .button.disabled,
.woocommerce .button:disabled { opacity: 0.5; cursor: not-allowed; }

.woocommerce .quantity .qty {
  width: 4.5rem;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--crema-deep);
  margin-bottom: 2rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--crema-deep);
  padding: 1rem;
  text-align: left;
  vertical-align: middle;
}
.woocommerce table.shop_table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgb(34 28 23 / 0.5); }
.woocommerce table.shop_table img { width: 4rem; height: auto; }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading { font-size: 1.25rem; margin-bottom: 1rem; }

.woocommerce form .form-row { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.woocommerce form .form-row label { font-size: 0.8rem; color: rgb(34 28 23 / 0.6); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
  width: 100%;
  border: 1px solid var(--crema-deep) !important;
  border-radius: 2px;
  background: #fff;
  padding: 0.75rem 1rem;
  height: auto !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { border-color: var(--bruno) !important; outline: none; }

.woocommerce-checkout .col2-set { display: grid; gap: 2rem; }
@media (min-width: 900px) { .woocommerce-checkout .col2-set { grid-template-columns: 1fr 1fr; } }
.woocommerce-checkout #order_review { margin-top: 2rem; }
.woocommerce-checkout-review-order-table { width: 100%; }
#payment { background: var(--nebbia); padding: 1.5rem; margin-top: 1rem; }
#payment ul.payment_methods { list-style: none; padding: 0; margin-bottom: 1rem; }
#payment .payment_box { background: #fff; padding: 1rem; font-size: 0.85rem; }

/* La disposizione vera è più in basso, nel blocco «totali e coupon». */

.woocommerce ul.products { display: grid; gap: 1.5rem; grid-template-columns: 1fr; list-style: none; padding: 0; }
@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }

.woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering { display: none; }

.woocommerce div.product .stock { font-size: 0.8rem; color: rgb(34 28 23 / 0.5); }
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.woocommerce-account .woocommerce-MyAccount-navigation a { font-size: 0.85rem; color: rgb(34 28 23 / 0.6); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { color: var(--bruno); font-weight: 600; }

/* WooCommerce mostra i suoi blocchi dentro il nostro guscio: niente doppio padding */
.woo-wrap { padding-block: 4rem; }

/* WooCommerce porta con sé un impianto a float con larghezze in percentuale:
   dentro le nostre griglie va neutralizzato, altrimenti la colonna dei dati
   della scheda prodotto resta larga il 48% di una colonna già dimezzata. */
.woocommerce div.product div.summary,
.woocommerce div.product div.images,
.woocommerce-page div.product div.summary,
.woocommerce-page div.product div.images {
  width: 100%;
  float: none;
  margin: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100%;
  float: none;
  margin: 0;
  clear: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce div.product::before,
.woocommerce div.product::after { content: none; }

.woocommerce #content div.product div.summary,
.woocommerce div.product .woocommerce-tabs { width: 100%; float: none; }

/* Riga sotto alla tabella del carrello: coupon a sinistra, aggiorna a destra.
   Senza questo l'input del coupon resta largo quanto la parola "Codice". */
/* La cella dei pulsanti resta una cella: mettendole display:flex usciva dal
   calcolo delle colonne della tabella e il colspan non valeva più nulla. */
.woocommerce table.shop_table td.actions { padding-block: 1.25rem; }
.woocommerce table.shop_table td.actions .coupon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: min(30rem, 100%);
  vertical-align: middle;
}
.woocommerce table.shop_table td.actions .button[name='update_cart'] { float: right; }
.woocommerce table.shop_table td.actions .coupon .input-text {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  padding: 0.75rem 1rem;
}


.woocommerce .cart_totals table.shop_table { width: 100%; border: 1px solid var(--crema-deep); }
.woocommerce .cart_totals th { width: 40%; }
.woocommerce .wc-proceed-to-checkout { margin-top: 1.25rem; }
.woocommerce .wc-proceed-to-checkout .button { width: 100%; }

.woocommerce-cart-form { margin-bottom: 2rem; }
.woocommerce a.remove {
  display: inline-grid;
  place-items: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 999px;
  color: var(--bruno);
  font-size: 1.1rem;
  line-height: 1;
}
.woocommerce a.remove:hover { background: var(--bruno); color: #fff; }

/* Il modulo di pagamento di WooCommerce è costruito a float con larghezze in
   percentuale: dentro il nostro impianto a griglia i campi finivano stretti e
   spostati verso il centro. Qui il float viene disinnescato e le coppie
   nome/cognome tornano affiancate con una griglia a due colonne. */
.woocommerce .col2-set,
.woocommerce-page .col2-set { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .woocommerce .col2-set,
  .woocommerce-page .col2-set { grid-template-columns: 1fr 1fr; }
}
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 { width: 100%; float: none; }

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.woocommerce form .form-row {
  grid-column: 1 / -1;
  width: 100%;
  float: none;
  padding: 0;
}
.woocommerce form .form-row-first { grid-column: 1; }
.woocommerce form .form-row-last { grid-column: 2; }
@media (max-width: 599px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last { grid-column: 1; }
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle { margin-bottom: 1.5rem; }
.woocommerce #payment #place_order { width: 100%; margin-top: 1rem; }
.woocommerce .woocommerce-checkout-review-order-table th,
.woocommerce .woocommerce-checkout-review-order-table td:last-child { text-align: right; }
.woocommerce .woocommerce-checkout-review-order-table th:first-child,
.woocommerce .woocommerce-checkout-review-order-table td:first-child { text-align: left; }

/* Le colonne vanno inchiodate esplicitamente: annullare il float non basta,
   perché WooCommerce dà a #customer_details una larghezza in percentuale e
   manda i dati di fatturazione a destra dei campi aggiuntivi. */
.woocommerce-checkout form.checkout,
.woocommerce-checkout #customer_details { width: 100%; float: none; }
.woocommerce .col2-set > .col-1,
.woocommerce-page .col2-set > .col-1 { grid-column: 1; }
.woocommerce .col2-set > .col-2,
.woocommerce-page .col2-set > .col-2 { grid-column: 2; }
@media (max-width: 899px) {
  .woocommerce .col2-set > .col-1,
  .woocommerce .col2-set > .col-2,
  .woocommerce-page .col2-set > .col-1,
  .woocommerce-page .col2-set > .col-2 { grid-column: 1; }
}

/* Contenitore delle pagine di WooCommerce dentro page.php: larghezza piena. */
.woocommerce-page-wrap { width: 100%; }

/* ====================================================== carrello a tendina */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.cart-drawer.is-open { visibility: visible; pointer-events: auto; }

.cart-drawer__veil {
  position: absolute;
  inset: 0;
  background: rgb(18 16 14 / 0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cart-drawer.is-open .cart-drawer__veil { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  display: flex;
  flex-direction: column;
  width: min(26rem, 100%);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  box-shadow: -20px 0 60px -30px rgb(18 16 14 / 0.6);
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--crema-deep);
}
.cart-drawer__head h2 { font-size: 1.05rem; }
.cart-drawer__close {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  font-size: 1.25rem;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cart-drawer__close:hover { background: var(--bruno); color: #fff; }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-drawer__empty { text-align: center; color: rgb(34 28 23 / 0.55); font-size: 0.9rem; }
.cart-drawer__empty .btn-bruno { margin-top: 1.5rem; }

.drawer-line { display: flex; gap: 1rem; padding-bottom: 1.25rem; }
.drawer-line + .drawer-line { border-top: 1px solid var(--crema-deep); padding-top: 1.25rem; }
.drawer-line__img {
  width: 4.5rem; height: 4.5rem; flex: none;
  object-fit: contain;
  background: var(--nebbia);
  padding: 0.375rem;
}
.drawer-line__body { flex: 1; min-width: 0; }
.drawer-line__name { display: block; font-size: 0.9rem; font-weight: 500; line-height: 1.35; }
.drawer-line__name:hover { color: var(--bruno); }
.drawer-line__meta { display: block; margin-top: 0.25rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgb(34 28 23 / 0.4); }
.drawer-line__qty { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--bruno); font-weight: 600; }
.drawer-line__remove { flex: none; color: rgb(34 28 23 / 0.35); font-size: 1.1rem; line-height: 1; }
.drawer-line__remove:hover { color: var(--bruno); }

.cart-drawer__foot { border-top: 1px solid var(--crema-deep); padding: 1.25rem 1.5rem; }
.cart-drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
}
.cart-drawer__total span:last-child { color: var(--bruno); }
.cart-drawer__note { margin-top: 0.375rem; font-size: 0.72rem; color: rgb(34 28 23 / 0.45); }
/* I due pulsanti impilati, come chiesto: prima il carrello, poi il pagamento. */
.cart-drawer__actions { display: grid; gap: 0.625rem; margin-top: 1.25rem; }
.cart-drawer__actions > * { width: 100%; }

body.cart-drawer-open { overflow: hidden; }

/* ============================================ avvisi di WooCommerce (fix) */

/* L'icona di WooCommerce è un ::before in posizione assoluta: con il nostro
   padding finiva sopra alla prima parola. Qui l'avviso diventa una riga flex
   e l'icona un elemento vero, con il suo spazio. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 1rem 1.25rem;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  position: static;
  flex: none;
  top: auto; left: auto;
  margin: 0;
  line-height: 1;
}
.woocommerce-message > .button,
.woocommerce-info > .button,
.woocommerce-error > .button { margin-left: auto; float: none; }
.woocommerce-error { flex-direction: column; align-items: flex-start; }
.woocommerce-error li { display: flex; gap: 0.5rem; }

/* Firma dello studio, sulla stessa riga del copyright. */
.site-footer__by { display: inline-block; margin-left: 0.5rem; }
.site-footer__by a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__by a:hover { color: var(--gold); }

.site-footer__legal-nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.65);
}
.site-footer__legal-nav a:hover { color: var(--gold); }

/* Frecce del carosello: i pallini da soli non bastavano a far capire che la
   fascia scorre, e con quattro schede visibili su cinque il salto era minimo. */
.carousel__nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.carousel__arrow {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.carousel__arrow:hover { border-color: var(--gold); color: var(--gold); }
.carousel__arrow[disabled] { opacity: 0.3; cursor: default; }
.is-light .carousel__arrow { border-color: var(--crema-deep); color: var(--ink); }
.is-light .carousel__arrow:hover { border-color: var(--bruno); background: var(--bruno); color: #fff; }
.carousel__dots { margin-top: 0; }

/* --------------------------------------------- tabella del carrello */

/* Senza larghezze esplicite la colonna della miniatura si prendeva mezzo
   tavolo e l'intestazione "Prodotto" restava sospesa sul vuoto. */
/* Larghezze indicative, non fisse: con table-layout:fixed la riga dei pulsanti,
   che è una cella sola con colspan, si ritrovava larga quanto la prima colonna. */
.woocommerce table.shop_table.cart { table-layout: auto; }
.woocommerce table.cart td.product-remove,
.woocommerce table.cart th.product-remove { width: 3rem; text-align: center; padding-inline: 0.5rem; }
.woocommerce table.cart td.product-thumbnail,
.woocommerce table.cart th.product-thumbnail { width: 6rem; padding-right: 0; }
.woocommerce table.cart td.product-thumbnail img { width: 4.5rem; object-fit: contain; background: var(--nebbia); padding: 0.25rem; }
.woocommerce table.cart th.product-name,
.woocommerce table.cart td.product-name { text-align: left; }
.woocommerce table.cart td.product-name a { font-weight: 500; }
.woocommerce table.cart th.product-price,
.woocommerce table.cart td.product-price,
.woocommerce table.cart th.product-subtotal,
.woocommerce table.cart td.product-subtotal { width: 7rem; text-align: right; white-space: nowrap; }
.woocommerce table.cart th.product-quantity,
.woocommerce table.cart td.product-quantity { width: 7rem; text-align: center; }
.woocommerce table.cart td.product-subtotal { font-weight: 600; color: var(--bruno); }

@media (max-width: 767px) {
  .woocommerce table.shop_table.cart { table-layout: auto; }
  .woocommerce table.cart thead { display: none; }
  .woocommerce table.cart tr { display: grid; grid-template-columns: 4.5rem 1fr 2rem; gap: 0.25rem 1rem; padding: 1rem 0; }
  .woocommerce table.cart td { border: 0; padding: 0; }
  .woocommerce table.cart td.product-thumbnail { grid-row: span 3; width: auto; }
  .woocommerce table.cart td.product-remove { grid-column: 3; grid-row: 1; }
  .woocommerce table.cart td.actions { grid-column: 1 / -1; }
  .woocommerce table.cart td.product-price,
  .woocommerce table.cart td.product-quantity,
  .woocommerce table.cart td.product-subtotal { grid-column: 2; text-align: left; width: auto; }
}

.woocommerce table.shop_table td.actions .coupon .input-text { min-width: 9rem; }

/* Il richiamo al catalogo chiude la pagina, sotto ai totali. */
.unogold-cart-aside { align-self: start; }
.unogold-cart-aside h2 { font-size: 1.05rem; }
.unogold-cart-aside p { margin-top: 0.75rem; font-size: 0.88rem; line-height: 1.75; color: rgb(34 28 23 / 0.6); }
.unogold-cart-aside .btn-outline { margin-top: 1.25rem; }

/* "Leggi tutto" è un link vero, non una decorazione. */
.post-card__more { align-self: flex-start; }
.post-card__more:hover { color: var(--bruno-soft); }

/* -------------------------------------------- totali e coupon del carrello */

/* I totali stanno in orizzontale sotto al carrello, a tutta larghezza: in una
   colonna stretta il rigo della spedizione andava a capo tre volte. Le righe
   della tabella diventano riquadri affiancati, e su schermo stretto si
   impilano da sole per via del wrap. */
.woocommerce .cart-collaterals {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.woocommerce .cart-collaterals .cart_totals { order: 1; width: 100%; }
.woocommerce .cart-collaterals .unogold-cart-aside { order: 2; }

.woocommerce .cart_totals table.shop_table {
  display: block;
  width: 100%;
  border: 0;
}
.woocommerce .cart_totals table.shop_table tbody {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.woocommerce .cart_totals table.shop_table tbody tr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 14rem;
  min-width: 0;
  border: 1px solid var(--crema-deep);
  background: var(--nebbia);
  padding: 1.25rem 1rem;
}
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
  display: block;
  width: auto;
  border: 0;
  padding: 0;
  text-align: center;
}
.woocommerce .cart_totals table.shop_table th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(34 28 23 / 0.55);
}
.woocommerce .cart_totals .cart-subtotal td,
.woocommerce .cart_totals .order-total td {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bruno);
}
.woocommerce .cart_totals .order-total { background: var(--crema); border-color: var(--bruno); }
.woocommerce .cart_totals .order-total td { font-size: 1.75rem; }

/* La riga della spedizione porta dentro una lista e un link: va rimessa in
   riga per non ereditare il corpo grande dei totali. */
.woocommerce .cart_totals .shipping td { font-size: 0.9rem; line-height: 1.6; }
.woocommerce .cart_totals .shipping ul#shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.woocommerce .cart_totals .shipping ul#shipping_method li { margin: 0; }
.woocommerce .cart_totals .shipping .woocommerce-shipping-destination { margin: 0.35rem 0 0; }
.woocommerce .cart_totals .shipping .shipping-calculator-button { display: inline-block; margin-top: 0.35rem; }
.woocommerce .cart_totals .shipping .shipping-calculator-form { text-align: left; margin-top: 0.75rem; }

/* Il tasto per procedere resta centrato sotto ai riquadri. */
.woocommerce .cart_totals .wc-proceed-to-checkout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0;
  text-align: center;
}
.woocommerce .cart_totals .wc-proceed-to-checkout > * { margin: 0; }

/* Il modulo del coupon di WooCommerce è nascosto e viene rivelato al clic:
   senza stili proprî si apriva come un blocco slegato in mezzo alla pagina. */
.woocommerce form.checkout_coupon,
.woocommerce-form-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  background: var(--nebbia);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.woocommerce form.checkout_coupon p,
.woocommerce-form-coupon p { margin: 0; }
.woocommerce form.checkout_coupon .form-row,
.woocommerce-form-coupon .form-row { width: auto; margin: 0; }
.woocommerce form.checkout_coupon .input-text,
.woocommerce-form-coupon .input-text {
  min-width: 14rem;
  border: 1px solid var(--crema-deep);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  background: #fff;
}
.woocommerce form.checkout_coupon p:first-child,
.woocommerce-form-coupon p:first-child { flex: 1 1 100%; font-size: 0.85rem; color: rgb(34 28 23 / 0.6); }

/* ============================================================ manutenzione */

.unogold-maintenance { background: var(--espresso); }
.maintenance {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 3rem 1.25rem;
  background-color: var(--espresso);
  background-size: 120px 120px;
  color: #fff;
  text-align: center;
}
.maintenance::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgb(106 46 23 / 0.55) 0%, transparent 70%);
}
.maintenance__panel { width: min(38rem, 100%); }
.maintenance__logo { width: 9rem; height: auto; margin: 0 auto 2rem; }
.maintenance__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.maintenance h1 {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.15;
}
.maintenance__body { margin-top: 1.25rem; line-height: 1.8; color: rgb(255 255 255 / 0.75); }
.maintenance__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.maintenance__contacts {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}
.maintenance__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.85);
  transition: color 0.3s var(--ease);
}
.maintenance__contacts a:hover { color: var(--gold); }

.maintenance__social { margin-top: 2rem; justify-content: center; }
.maintenance__rule { margin-top: 2.5rem; opacity: 0.35; }
.maintenance__legal { margin-top: 1.25rem; font-size: 0.78rem; color: rgb(255 255 255 / 0.45); }

/* L'errore del coupon lo stampa WooCommerce dentro la stessa riga dei campi:
   senza una riga sua finiva schiacciato fra il bottone e il bordo, a due
   parole per riga. Va a capo, a tutta larghezza, sotto ai campi. */
.woocommerce table.shop_table td.actions .coupon { flex-wrap: wrap; }
.woocommerce .coupon .coupon-error-notice {
  flex: 1 1 100%;
  order: 3;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #c8332e;
}
.woocommerce .coupon .input-text.has-error { border-color: #c8332e; }
.woocommerce table.shop_table td.actions .coupon .button { white-space: nowrap; }

/* ======================================================= modulo di recesso */

.recesso-intro {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  text-align: center;
}
.recesso-intro p { font-size: 0.9rem; line-height: 1.8; color: rgb(34 28 23 / 0.6); }
.recesso-intro p + p { margin-top: 0.75rem; }

.recesso-alert { max-width: 56rem; margin: 2rem auto 0; }

.recesso { max-width: 56rem; margin: 2.5rem auto 0; }
.recesso-trap { position: absolute; left: -9999px; }

.steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  counter-reset: step;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--crema-deep);
  transition: border-color 0.3s var(--ease);
}
.steps__item.is-current,
.steps__item.is-done { border-bottom-color: var(--bruno); }
.steps__n {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  flex: none;
  border-radius: 999px;
  background: var(--crema-deep);
  color: rgb(34 28 23 / 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.steps__item.is-current .steps__n,
.steps__item.is-done .steps__n { background: var(--bruno); color: #fff; }
.steps__label { font-size: 0.85rem; color: rgb(34 28 23 / 0.55); }
.steps__item.is-current .steps__label { color: var(--ink); font-weight: 500; }

.recesso__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.recesso__legend {
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.recesso__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .recesso__grid { grid-template-columns: 1fr 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 0.375rem; }
.field-group--wide { grid-column: 1 / -1; }
.field-group > span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(34 28 23 / 0.5);
}
.recesso input[type='file'].field { padding: 0.625rem 0.75rem; font-size: 0.85rem; }
.recesso__hint { margin-top: 0.5rem; font-size: 0.78rem; line-height: 1.6; color: rgb(34 28 23 / 0.45); }

.recesso__files {
  margin-top: 0.625rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgb(34 28 23 / 0.6);
}
.recesso__files li::before { content: '· '; color: var(--gold); }

.recesso__checks { margin-top: 1.75rem; display: grid; gap: 0.875rem; }
.check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.85rem; line-height: 1.6; color: rgb(34 28 23 / 0.7); }
.check input { margin-top: 0.2rem; width: 1rem; height: 1rem; flex: none; accent-color: var(--bruno); }
.check a { color: var(--bruno); text-decoration: underline; text-underline-offset: 3px; }

.recesso__nav {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}
.recesso__nav [data-step-prev] { margin-right: auto; }

.recesso-done {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: 3rem 2rem;
  text-align: center;
}
.recesso-done__mark {
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: var(--bruno);
  color: #fff;
}
.recesso-done h2 { font-size: 1.5rem; }
.recesso-done p { margin-top: 1rem; line-height: 1.8; color: rgb(34 28 23 / 0.65); }
.recesso-done__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ------------------------------------------------- foto dell'articolo --- */

.post-cover { margin-bottom: 2.5rem; }
.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-cover figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgb(34 28 23 / 0.45);
}

/* --------------------------------------------------------- footer (fix) --- */

/* Niente sottolineature nel piede: i link si distinguono già al passaggio. */
.site-footer a,
.site-footer__by a { text-decoration: none; }
.site-footer__by { margin-left: 0; }
