/* =====================================================================
   Il Garage del Vino: sezioni costruite con i pattern (patterns/*.php).
   ---------------------------------------------------------------------
   Riferimento: mockups/index.html e mockups/style.css. Le classi gdv-*
   sono sui blocchi Gutenberg (Avanzate › Classi CSS aggiuntive) e sui
   blocchi WooCommerce "Product Collection". Caricato anche nell'editor.
   ===================================================================== */

:root {
  /* Larghezza dei contenuti = "Larghezza massima del sito" di Blocksy (Personalizza › Generale), 1440 px */
  --gdv-wrap: var(--theme-normal-container-max-width, 1440px);
  --gdv-gut: clamp(1rem, 3vw, 2rem);
  --gdv-section: clamp(3rem, 6vw, 5rem);

  /* Colori del vino ("Di che colore è la tua sete?") */
  --w-rosso: #812029;
  --w-bianco: #f1e7b4;
  --w-rosato: #f4c3bc;
  --w-orange: #eaa255;
  --w-bolle: #e8d47e;
  --w-dolce: #c98e34;

  --gdv-i-glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10l-.6 6.2a4.4 4.4 0 0 1-8.8 0z'/%3E%3Cpath d='M12 13.6V20M8.5 21h7'/%3E%3C/svg%3E");
  --gdv-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --gdv-i-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='4' rx='1'/%3E%3Cpath d='M5 12v8.5h14V12M12 8v12.5M12 8C10.5 4 6.5 4.5 7.3 6.6 8 8 12 8 12 8zm0 0c1.5-4 5.5-3.5 4.7-1.4C16 8 12 8 12 8z'/%3E%3C/svg%3E");
  --gdv-i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8 12 4l8.5 4v8L12 20l-8.5-4z'/%3E%3Cpath d='M3.5 8 12 12l8.5-4M12 12v8'/%3E%3C/svg%3E");
  --gdv-i-medal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='M8.6 13.4 7.5 21l4.5-2.5 4.5 2.5-1.1-7.6'/%3E%3C/svg%3E");
  --gdv-i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --gdv-i-prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E");
  --gdv-i-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
  --gdv-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
  --gdv-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");
}

.gdv-ico-medal { --gdv-icon: var(--gdv-i-medal); }
.gdv-ico-lock { --gdv-icon: var(--gdv-i-lock); }
.gdv-ico-box { --gdv-icon: var(--gdv-i-box); }
.gdv-ico-gift { --gdv-icon: var(--gdv-i-gift); }
.gdv-ico-pin { --gdv-icon: var(--gdv-i-pin); }
.gdv-ico-mail { --gdv-icon: var(--gdv-i-mail); }
.gdv-ico-phone { --gdv-icon: var(--gdv-i-phone); }
.gdv-ico-tag { --gdv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9v12l19 19 14-14L21 7H9a2 2 0 0 0-2 2z'/%3E%3Ccircle cx='15' cy='15' r='3'/%3E%3C/svg%3E"); }
.gdv-ico-doc { --gdv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5h17l9 9v29H12z'/%3E%3Cpath d='M29 5v9h9M18 24h14M18 30h14M18 36h9'/%3E%3C/svg%3E"); }
.gdv-ico-advice { --gdv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 5h6v7l3 4v4'/%3E%3Cpath d='M28 18c0 3-2 4-2 7'/%3E%3Cpath d='M11 22h16l-1.2 7.5a6.8 6.8 0 0 1-13.6 0z'/%3E%3Cpath d='M19 36.5V43M14 43h10'/%3E%3C/svg%3E"); }

/* ---------- Struttura comune ------------------------------------------ */
.entry-content > .gdv-section,
.entry-content > .gdv-impegni {
  margin-block: 0;
}
.gdv-section {
  padding-block: var(--gdv-section);
}
.gdv-section.gdv-section--tight {
  padding-top: 0;
}
/* Prima sezione della pagina (es. i banner in cima alla home): un po' di spazio sotto l'header */
.entry-content > .gdv-section--tight:first-child {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
/* Contenuto largo come i contenitori di Blocksy (90% della finestra, al massimo --gdv-wrap): allineato
   all'header, al catalogo e al titolo delle pagine a ogni larghezza */
.gdv-wrap {
  box-sizing: border-box;
  width: var(--theme-container-width, min(100%, 90vw));
  max-width: var(--gdv-wrap);
  margin-inline: auto;
}
/* Come nel mockup: niente margini automatici, li decide ogni sezione */
.gdv-section :is(p, h1, h2, h3, h4, figure, blockquote, ul),
.gdv-section .wp-block-group > *,
.gdv-section .wp-block-buttons,
.gdv-impegni :is(p, ul) {
  margin-block: 0;
}
.gdv-section img {
  display: block;
  max-width: 100%;
  height: auto;
}
.gdv-section h1,
.gdv-section h2,
.gdv-section h3 {
  color: var(--c-ink);
  line-height: 1;
}

/* Testi dei riquadri: lo stile non dipende solo dalle classi dei blocchi Paragrafo e Titolo. Se
   incollando un testo di più righe (o un titolo di un altro livello) l'editor ricrea i blocchi, la
   classe si perde: per questo nei riquadri a struttura fissa il sopratitolo è anche "il primo
   paragrafo subito prima del titolo" e il titolo è "qualsiasi titolo del riquadro". Le classi restano,
   e per i paragrafi nuovi ci sono gli stili "Sopratitolo", "Etichetta" e "Link «Scopri»" nella barra
   laterale dell'editor (inc/patterns.php). */

/* Sopratitolo con la linea: classe gdv-eyebrow o stile "Sopratitolo" */
.gdv-eyebrow,
.is-style-gdv-sopratitolo,
:is(.gdv-founder__text, .gdv-row__text, .gdv-contact__info, .gdv-treasure__text, .gdv-exclusive__card, .gdv-pro__intro) > p:first-child:has(+ :is(h1, h2, h3, h4, h5, h6, blockquote)) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem !important;
  color: var(--c-accent-text);
  font-family: var(--f-mono);
  font-size: 0.85rem;
}
.gdv-eyebrow::before,
.is-style-gdv-sopratitolo::before,
:is(.gdv-founder__text, .gdv-row__text, .gdv-contact__info, .gdv-treasure__text, .gdv-exclusive__card, .gdv-pro__intro) > p:first-child:has(+ :is(h1, h2, h3, h4, h5, h6, blockquote))::before {
  content: "";
  flex: none;
  width: 44px;
  height: 1px;
  background: currentColor;
}

/* Etichetta: testo piccolo in monospazio sopra un titolo (stile "Etichetta") */
.is-style-gdv-etichetta {
  margin-bottom: 0.4rem !important;
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.85rem;
}

.gdv-center-head {
  max-width: 720px;
  margin: 0 auto 2.25rem !important;
  text-align: center;
}
.gdv-center-head__pre,
.gdv-center-head > p:first-child:has(+ :is(h1, h2, h3, h4, h5, h6)) {
  margin-bottom: 0.35rem !important;
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.9rem;
}
.gdv-center-head > :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 0.6rem !important;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.gdv-section .gdv-center-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  text-align: center;
}
.gdv-link-more a,
.is-style-gdv-link a {
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-grey-2);
  text-underline-offset: 0.3em;
}
.gdv-link-more a:hover,
.is-style-gdv-link a:hover {
  color: var(--c-ink);
  text-decoration-color: currentColor;
}

/* Varianti dei pulsanti (classi sul blocco Pulsante) */
.gdv-btn-dark .wp-block-button__link {
  background: var(--c-ink);
}
.gdv-btn-dark .wp-block-button__link:hover {
  background: var(--c-ink-dark);
}
.gdv-btn-square .wp-block-button__link {
  border-radius: 0;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 500;
  padding-inline: 1.5rem;
}
.gdv-btn-arrow .wp-block-button__link::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-left: 0.6rem;
  background-color: currentColor;
  -webkit-mask: var(--gdv-i-arrow) center / contain no-repeat;
  mask: var(--gdv-i-arrow) center / contain no-repeat;
}
.gdv-btn-arrow .wp-block-button__link {
  display: inline-flex;
  align-items: center;
}
.gdv-buttons-block .wp-block-button,
.gdv-buttons-block .wp-block-button__link {
  width: 100%;
}

/* ---------- Hero con il garage e gli adesivi --------------------------- */
.gdv-hero {
  overflow: hidden;
  background: var(--c-bg);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.gdv-hero__stage {
  position: relative;
  max-width: 760px;
  margin-inline: auto !important;
}
.gdv-hero__garage img {
  width: 100%;
}
.gdv-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gdv-sticker {
  position: absolute;
  width: clamp(84px, 11vw, 122px);
  aspect-ratio: 1;
  color: var(--c-accent-text);
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.4s ease;
}
.gdv-sticker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gdv-sticker text {
  font-family: var(--f-mono);
  font-size: 12.5px;
  fill: currentColor;
}
.gdv-sticker .gdv-sticker__bg {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
}
.gdv-sticker--solid {
  color: #fff;
}
.gdv-sticker--solid .gdv-sticker__bg {
  fill: var(--c-accent);
  stroke: var(--c-accent);
}
.gdv-sticker:hover {
  transform: rotate(-12deg) scale(1.06);
}
.gdv-sticker--1 { left: -2%; top: 8%; transform: rotate(-14deg); }
.gdv-sticker--2 { right: -1%; top: 0; transform: rotate(10deg); }
.gdv-sticker--3 { left: -9%; top: 58%; transform: rotate(8deg); }
.gdv-sticker--4 { right: -8%; top: 52%; transform: rotate(-8deg); }
.gdv-section .gdv-hero__title {
  max-width: 980px;
  margin: 1.75rem auto 0;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}

/* ---------- Di che colore è la tua sete? ------------------------------ */
.gdv-thirst {
  background: #fff;
  padding-block: 2.5rem 2.75rem;
}
.gdv-section .gdv-thirst__title {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}
.gdv-thirst__list.wp-block-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}
.gdv-thirst__list .wp-block-button {
  width: auto;
  margin: 0;
}
/* Colore e bicchiere di ogni tipologia: pulsanti qui sotto (gdv-w--*) e voci del mega menu
   (gdv-bicchiere--*, inc/menus.php, stile in theme.css) */
.gdv-w { --w: var(--w-rosso); --on: var(--c-ink); --gdv-bicchiere: url("../img/bicchieri/rosso.svg"); }
:is(.gdv-w--rosso, .gdv-bicchiere--rosso) { --w: var(--w-rosso); --on: #fff; --gdv-bicchiere: url("../img/bicchieri/rosso.svg"); }
:is(.gdv-w--bianco, .gdv-bicchiere--bianco) { --w: var(--w-bianco); --gdv-bicchiere: url("../img/bicchieri/bianco.svg"); }
:is(.gdv-w--rosato, .gdv-bicchiere--rosato) { --w: var(--w-rosato); --gdv-bicchiere: url("../img/bicchieri/rosato.svg"); }
:is(.gdv-w--orange, .gdv-bicchiere--orange) { --w: var(--w-orange); --gdv-bicchiere: url("../img/bicchieri/orange.svg"); }
:is(.gdv-w--bollicine, .gdv-bicchiere--bollicine) { --w: var(--w-bolle); --gdv-bicchiere: url("../img/bicchieri/bollicine.svg"); }
:is(.gdv-w--dolce, .gdv-bicchiere--dolce) { --w: var(--w-dolce); --on: #fff; --gdv-bicchiere: url("../img/bicchieri/dolce.svg"); }
.gdv-w .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 56px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r);
  background: var(--w);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  color: var(--on);
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Il bicchiere della tipologia in un cerchio bianco; al passaggio del mouse si inclina */
.gdv-w .wp-block-button__link::before {
  content: "";
  position: static;
  z-index: auto;
  display: block;
  opacity: 1;
  filter: none;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff var(--gdv-bicchiere) center / 38px no-repeat;
  transition: transform 0.2s ease;
}
.gdv-w .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.25);
  background: var(--w);
  color: var(--on);
}
.gdv-w .wp-block-button__link:hover::before {
  transform: rotate(-12deg);
}

/* ---------- Dalla nostra cantina (bottiglia rara) --------------------- */
.gdv-treasure__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.gdv-treasure h2 {
  margin-bottom: 1.5rem !important;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.gdv-treasure__name {
  color: var(--c-ink);
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.gdv-section .gdv-treasure__by {
  margin-top: 0.3rem;
  color: var(--c-text-soft);
}
.gdv-section hr.gdv-rule {
  width: 40px;
  height: 2px;
  margin: 1.25rem 0;
  border: 0;
  background: var(--c-accent);
  opacity: 1;
}
.gdv-section .gdv-treasure__lead {
  max-width: 44ch;
  margin-bottom: 1.75rem;
}
.gdv-treasure__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  border-bottom: 1.5px solid var(--c-ink);
}
.gdv-treasure__year {
  color: var(--c-accent-text);
  font-family: var(--f-display);
  font-size: clamp(9rem, 22vw, 17rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.02em;
  user-select: none;
}
.gdv-section .gdv-treasure__bottle {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  transform: translateX(-50%);
}
.gdv-section .gdv-treasure__bottle img {
  width: auto;
  height: 100%;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.25));
}

/* ---------- Card prodotto (blocco Product Collection) ----------------- */
.gdv-products .wc-block-product-template.wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gdv-products .wc-block-product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  margin: 0;
  text-align: center;
}
.gdv-pcard__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-pcard__media .wc-block-components-product-image {
  margin: 0 !important;
}
/* Stesso riquadro delle card del catalogo (shop.css, dove c'è il perché): 3/4, bottiglie scontornate con
   il margine (padding della foto, posizionata sopra il riquadro), foto verticali (gdv-foto-intera) a tutto
   riquadro */
.gdv-pcard__media .wc-block-components-product-image a {
  --gdv-card-pad-b: 3.9rem;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  padding: 0;
}
.gdv-pcard__media .wc-block-components-product-image img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100% !important;
  padding: 1rem 1rem var(--gdv-card-pad-b);
  object-fit: contain;
}
.gdv-pcard__media .wc-block-components-product-image img.gdv-foto-intera {
  padding: 0;
  object-fit: cover;
}
.gdv-pcard__media .wc-block-components-product-sale-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  right: auto;
  z-index: 2;
  margin: 0;
  padding: 0.15rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: lowercase;
}
.gdv-pcard__btn {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  margin: 0 !important;
}
.gdv-pcard__btn .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: var(--r);
  background: var(--c-ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.gdv-pcard__btn .wp-block-button__link:hover {
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.gdv-pcard__btn .added_to_cart {
  display: none;
}
.gdv-section .gdv-pcard__producer {
  margin-top: 0.9rem;
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}
.gdv-pcard__producer a {
  color: inherit;
  text-decoration: none;
}
.gdv-pcard__producer a:hover {
  color: var(--c-accent-text);
  text-decoration: underline;
}
.gdv-section .gdv-pcard__name {
  margin-top: 0.3rem;
  font-size: 1.25rem;
  line-height: 1.05;
}
.gdv-pcard__name a {
  color: var(--c-ink);
  text-decoration: none;
}
.gdv-pcard__name a:hover {
  color: var(--c-accent-text);
}
.gdv-section .gdv-pcard__price {
  margin-top: 0.5rem;
  color: var(--c-ink);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gdv-pcard__price del {
  margin-right: 0.35rem;
  color: var(--c-text-soft);
  font-size: 0.85rem;
  font-weight: 400;
}
.gdv-pcard__price ins {
  text-decoration: none;
}

/* Carosello orizzontale (classe gdv-rail sul blocco Product Collection) */
.gdv-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem !important;
}
.gdv-section .gdv-section-title,
.gdv-section .gdv-section-head > :is(h1, h2, h3) {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}
.gdv-rail {
  --per: 4;
}
/* "I vini di …" dentro un articolo del blog (migrazione 047): sezione nel testo, tre card per volta */
.entry-content .gdv-section.gdv-post-wines {
  margin-block: 2.5rem 0;
  padding-block: 0;
}
.gdv-post-wines .gdv-rail {
  --per: 3;
}
.gdv-products.gdv-rail .wc-block-product-template.wc-block-product-template {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * 1.5rem) / var(--per));
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--c-ink) var(--c-line);
}
.gdv-rail .wc-block-product {
  scroll-snap-align: start;
}
.gdv-rail-nav {
  display: flex;
  gap: 0.5rem;
}
.gdv-rail-nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  cursor: pointer;
}
.gdv-rail-nav button:hover {
  background: var(--c-accent-hover);
}
.gdv-rail-nav button::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--gdv-i-next) center / contain no-repeat;
  mask: var(--gdv-i-next) center / contain no-repeat;
}
.gdv-rail-nav button[data-dir="-1"]::before {
  -webkit-mask-image: var(--gdv-i-prev);
  mask-image: var(--gdv-i-prev);
}

/* ---------- Newsletter (fascia scura) --------------------------------- */
.gdv-newsletter {
  background: var(--c-ink);
  color: #fff;
  padding-block: 2.75rem 3rem;
  text-align: center;
}
.gdv-section.gdv-newsletter h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}
.gdv-newsletter .gdv-wrap > p {
  margin-top: 0.4rem;
  color: var(--c-on-dark-soft);
}
.gdv-nl-form,
.gdv-nl-form.tnp-subscription {
  width: auto;
  max-width: 760px;
  margin: 1.75rem auto 0;
  text-align: left;
}
.gdv-section .gdv-nl-form input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--r);
  background: #fff;
  color: var(--c-ink);
}
.gdv-section .gdv-nl-form input[type="email"]:focus {
  outline: 3px solid var(--c-accent);
  outline-offset: 0;
}
/* Modulo del plugin Newsletter ([newsletter_form ajax="1" class="gdv-nl-form"], migrazione 042):
   email e pulsante affiancati, casella della privacy sotto; dopo l'invio il plugin mette il suo
   messaggio al posto dei campi. Selettori con .tnp-subscription per battere lo stile del plugin. */
.gdv-nl-form.tnp-subscription form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}
.gdv-nl-form.tnp-subscription div.tnp-field {
  margin: 0;
}
.gdv-nl-form.tnp-subscription .tnp-field-button {
  grid-area: 1 / 2;
}
.gdv-nl-form.tnp-subscription .tnp-privacy-field,
.gdv-nl-form.tnp-subscription form > :not(.tnp-field) {
  grid-column: 1 / -1;
}
.gdv-nl-form.tnp-subscription .tnp-field-email label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gdv-nl-form.tnp-subscription input.tnp-submit {
  width: 100%;
  min-height: 50px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--r);
  background-color: var(--theme-button-background-initial-color);
  color: var(--theme-button-text-initial-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s, opacity 0.12s;
}
.gdv-nl-form.tnp-subscription input.tnp-submit:hover {
  background-color: var(--theme-button-background-hover-color);
  color: var(--theme-button-text-hover-color);
}
.gdv-nl-form.tnp-subscription input.tnp-submit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.gdv-nl-form.tnp-subscription form.is-sending input.tnp-submit {
  opacity: 0.6;
  pointer-events: none;
}
.gdv-nl-form.tnp-subscription .tnp-privacy-field label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  color: var(--c-on-dark-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}
.gdv-nl-form.tnp-subscription input.tnp-privacy {
  flex: none;
  width: 18px;
  max-width: none;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-accent);
}
.gdv-nl-form .tnp-privacy-field a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gdv-nl-form .tnp-privacy-field a:hover {
  color: #fff;
}
.gdv-section .gdv-nl-form.tnp-subscription form > p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-align: center;
}
/* Pagina /newsletter/ del plugin (link delle email): "Disiscriviti", "Re-iscrizione" e il salvataggio
   del profilo come i pulsanti del sito, al posto del grigio del plugin */
.tnp-button-form button.tnp-submit,
form.tnp-profile input.tnp-submit {
  min-height: 46px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--r);
  background-color: var(--theme-button-background-initial-color);
  color: var(--theme-button-text-initial-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}
.tnp-button-form button.tnp-submit:hover,
form.tnp-profile input.tnp-submit:hover {
  background-color: var(--theme-button-background-hover-color);
  color: var(--theme-button-text-hover-color);
}
/* Modulo segnaposto, finché la migrazione 042 non lo sostituisce (serve il plugin Newsletter attivo) */
.gdv-nl-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gdv-nl-form button {
  min-height: 50px;
}
.gdv-nl-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  color: var(--c-on-dark-soft);
  font-size: 0.85rem;
}
.gdv-nl-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-accent);
}
.gdv-section .gdv-nl-form__msg {
  margin-top: 0.9rem;
  color: #fff;
  font-weight: 600;
}

/* ---------- La cantina del mese (card divisa) -------------------------- */
.gdv-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  padding: 10px;
}
.gdv-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.75rem, 5vw, 4.5rem);
}
.gdv-split__text > p:not(.gdv-split__date):not(:has(+ :is(h1, h2, h3, h4, h5, h6))) {
  max-width: 52ch;
  margin-bottom: 1.5rem !important;
}
.gdv-section .gdv-split__date,
.gdv-section .gdv-split__text > p:first-child:has(+ :is(h1, h2, h3, h4, h5, h6)) {
  margin-bottom: 0.5rem;
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 0.9rem;
}
.gdv-split__text > :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 1rem !important;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.gdv-section .gdv-split__img {
  margin: 0.75rem;
  min-height: 420px;
}
.gdv-split__img img {
  width: 100%;
  height: 100% !important;
  border-radius: var(--r-lg);
  object-fit: cover;
}
/* Logo della cantina sotto il testo, su fondo chiaro */
.gdv-section .gdv-split__logo {
  max-width: 300px;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r);
  background: var(--c-paper);
}
.gdv-split__logo img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
/* I vini della cantina in carosello, a destra */
.gdv-split__wines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--c-paper);
}
/* Titolo della colonna ("I vini di …"), non i nomi dei vini delle card (anche loro h3) */
.gdv-section .gdv-split__wines h3:not(.gdv-pcard__name) {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.gdv-split__wines .gdv-rail {
  --per: 2;
}

/* ---------- Gastronomia (fascia color salvia con la card divisa) ------ */
.gdv-food {
  background: var(--c-sage);
}
.gdv-food .gdv-split__wines {
  background: var(--c-sage-soft);
}
.gdv-section.gdv-food .gdv-split__text > p:first-child {
  color: var(--c-sage-ink);
}

/* ---------- Tre banner sotto la hero (uno grande e due piccoli) -------- */
.gdv-banners__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: clamp(480px, 44vw, 620px);
}
.gdv-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-ink);
  isolation: isolate;
}
.gdv-banner--big {
  grid-row: 1 / 3;
}
.gdv-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}
.gdv-section .gdv-banner__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.gdv-banner__img img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gdv-banner:hover .gdv-banner__img img {
  transform: scale(1.04);
}
.gdv-banner__text {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: #fff;
}
/* Testi del banner: paragrafi bianchi; il paragrafo prima del titolo è il sopratitolo, qualsiasi
   titolo (H2, H3...) ha lo stile del titolo del banner */
.gdv-section .gdv-banner__text > p {
  max-width: 40ch;
  margin-bottom: 1rem;
  color: #fff;
}
.gdv-section .gdv-banner__text > p.gdv-banner__pre,
.gdv-section .gdv-banner__text > p:first-child:has(+ :is(h1, h2, h3, h4, h5, h6)) {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--f-mono);
  font-size: 0.85rem;
}
.gdv-section .gdv-banner__text > :is(h1, h2, h3, h4, h5, h6) {
  max-width: 18ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}
.gdv-section .gdv-banner--big .gdv-banner__text > :is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
/* Tutto il riquadro porta al link del pulsante */
.gdv-banner .wp-block-buttons,
.gdv-banner .wp-block-button,
.gdv-banner .wp-block-button__link {
  position: static;
}
.gdv-banner .wp-block-button__link {
  background: #fff;
  color: var(--c-ink);
}
.gdv-banner .wp-block-button__link::before {
  display: none;
}
.gdv-banner .wp-block-button__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* Nell'editor il collegamento esteso coprirebbe foto e testi (cliccandoli si selezionerebbe il
   pulsante): lì resta solo sul pulsante, e la foto non si ingrandisce al passaggio del mouse */
.editor-styles-wrapper .gdv-banner .wp-block-button__link::after {
  content: none;
}
.editor-styles-wrapper .gdv-banner:hover .gdv-banner__img img {
  transform: none;
}
.gdv-banner:hover .wp-block-button__link {
  background: var(--c-accent);
  color: var(--c-on-accent);
}

/* ---------- Bollicine (fascia color champagne con il carosello) -------- */
.gdv-bubbles {
  background: color-mix(in srgb, var(--w-bolle) 22%, #fff);
}
.gdv-section .gdv-section-head__text > p {
  margin-bottom: 0.3rem !important;
}
.gdv-section .gdv-section-head__text > :is(h1, h2, h3) {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

/* ---------- La cantina in esclusiva (foto con la scheda sovrapposta) -- */
.gdv-exclusive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
}
.gdv-section .gdv-exclusive__img {
  margin: 0;
}
.gdv-exclusive__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  object-fit: cover;
}
.gdv-exclusive__card {
  position: relative;
  z-index: 1;
  margin-left: -12%;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.3);
}
.gdv-section .gdv-exclusive__card > :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
}
.gdv-exclusive__card > p:not(:first-child) {
  max-width: 52ch;
  margin-bottom: 1.5rem !important;
}
/* I vini della cantina sotto, in carosello */
.gdv-section-head.gdv-exclusive__head {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.gdv-section .gdv-exclusive__head > :is(h2, h3, h4) {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

/* ---------- Tasting Box (foto + card con fisarmonica) ----------------- */
.gdv-box__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.gdv-box__img img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-lg);
  object-fit: cover;
}
.gdv-box__card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--c-paper);
}
.gdv-box__pre,
.gdv-box__card > p:first-child:has(+ :is(h1, h2, h3, h4, h5, h6)) {
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.85rem;
}
.gdv-box__card > :is(h1, h2, h3, h4, h5, h6) {
  margin: 0.3rem 0 1.25rem !important;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
}
.gdv-acc {
  border-top: 1px solid var(--c-ink);
}
.gdv-acc .wp-block-details {
  margin: 0 !important;
  border-bottom: 1px solid var(--c-ink);
}
.gdv-acc summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  color: var(--c-ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.gdv-acc summary::-webkit-details-marker {
  display: none;
}
.gdv-acc summary::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background-color: var(--c-accent);
  -webkit-mask: var(--gdv-icon, var(--gdv-i-gift)) center / contain no-repeat;
  mask: var(--gdv-icon, var(--gdv-i-gift)) center / contain no-repeat;
}
.gdv-acc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.gdv-acc details[open] summary::after {
  transform: rotate(-135deg);
}
.gdv-acc-gift { --gdv-icon: var(--gdv-i-gift); }
.gdv-acc-box { --gdv-icon: var(--gdv-i-box); }
.gdv-acc-truck { --gdv-icon: var(--gdv-i-truck); }
.gdv-acc details p {
  padding: 0 0 1rem 2.2rem;
  font-size: 0.95rem;
}
.gdv-box__card .gdv-buttons-block {
  margin-top: 1.5rem !important;
}

/* ---------- Blog -------------------------------------------------------- */
/* Card come quelle della pagina Blog (blog.css): riquadro bianco con la foto da bordo a bordo,
   categoria, titolo, estratto e data in fondo sopra una riga. */
.gdv-posts .wp-block-post-template {
  gap: 2rem 1.5rem;
  margin: 0;
  padding: 0;
}
.gdv-posts .wp-block-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 1.5rem 1.4rem;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(47, 58, 41, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gdv-posts .wp-block-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -22px rgba(47, 58, 41, 0.45);
}
.gdv-section .gdv-posts .wp-block-post-featured-image {
  width: calc(100% + 3rem);
  max-width: none;
  margin: 0 -1.5rem 1.25rem;
  overflow: hidden;
}
.gdv-posts .wp-block-post-featured-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}
.gdv-posts .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}
.gdv-section .gdv-posts .wp-block-post-terms {
  margin: 0 0 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
}
.gdv-posts .wp-block-post-terms a {
  color: var(--c-accent-text);
  text-decoration: none;
}
.gdv-section .gdv-posts .wp-block-post-title {
  margin: 0 0 0.6rem;
  font-size: 1.65rem;
  line-height: 1.02;
}
.gdv-posts .wp-block-post-title a {
  color: var(--c-ink);
  text-decoration: none;
}
.gdv-posts .wp-block-post-title a:hover {
  color: var(--c-accent-text);
}
.gdv-section .gdv-posts .wp-block-post-excerpt {
  margin: 0 0 1.1rem;
}
.gdv-posts .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.gdv-posts .wp-block-post-excerpt__more-text {
  display: none;
}
.gdv-section .gdv-post-meta {
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gdv-post-meta > * + *::before {
  content: ", ";
}
.gdv-posts__empty {
  text-align: center;
  color: var(--c-text-soft);
}

/* ---------- Due consulenze --------------------------------------------- */
.gdv-advice__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.gdv-section hr.gdv-advice__sep {
  width: 1px;
  height: auto;
  margin: 0;
  border: 0;
  background: var(--c-ink);
  opacity: 1;
}
.gdv-advice__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.gdv-advice__item::before {
  width: 34px;
  height: 34px;
  background-color: var(--c-accent);
}
.gdv-advice__item h2 {
  font-size: 1.9rem;
  text-decoration: underline;
  text-decoration-color: var(--c-accent-text);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}
.gdv-advice__item p:not(.gdv-link-more) {
  max-width: 46ch;
  color: var(--c-ink);
  font-weight: 500;
}

/* ---------- Fascia degli impegni (a scorrimento) ------------------------ */
.gdv-impegni {
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
}
.gdv-impegni .gdv-marquee {
  gap: 3rem;
  padding: 1.1rem 1.5rem;
  font-weight: 500;
  list-style: none;
}
.gdv-impegni .gdv-marquee li {
  margin: 0;
}
.gdv-impegni .gdv-marquee-track {
  animation-duration: calc(46s * var(--gdv-marquee-n, 1));
}

/* ---------- Le nostre cantine (nuvola) --------------------------------- */
.gdv-producers__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-producers__card h2 {
  margin-bottom: 1rem !important;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.gdv-producers__text > p {
  margin-bottom: 1.5rem !important;
}
.gdv-section .gdv-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 1.2rem;
  text-align: center;
}
.gdv-cloud a {
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}
.gdv-cloud a:hover {
  color: var(--c-accent-text);
}

/* ---------- Chi c'è dietro il garage ------------------------------------ */
.gdv-founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.gdv-founder__img img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--r-lg);
  object-fit: cover;
}
.gdv-section .gdv-founder__quote {
  margin: 0;
  padding: 0;
  border: 0;
}
.gdv-founder__quote p {
  color: var(--c-ink);
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  font-style: normal;
  line-height: 1.05;
}
.gdv-founder__text > p:not(.gdv-eyebrow):not(.gdv-founder__cite):not(:first-child:has(+ :is(h1, h2, h3, h4, h5, h6, blockquote))) {
  max-width: 60ch;
  margin-top: 1.25rem !important;
}
.gdv-section .gdv-founder__cite {
  margin-top: 1.25rem;
  color: var(--c-accent-text);
  font-family: var(--f-mono);
  font-size: 0.9rem;
}
/* "Leggi di più" (theme.js): del testo resta in vista il primo paragrafo, gli altri si aprono */
.gdv-founder__text.is-collapsed > .gdv-founder__more {
  display: none;
}
.gdv-section .gdv-founder__toggle {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

/* ---------- Responsive -------------------------------------------------- */
/* ---------- Pagine informative (patterns/pagina-*.php) ------------------ */
/* Intestazione con foto e titolo al centro: "Titolo della pagina" Type 2 di Blocksy (migrazione 012).
   Foto = immagine in evidenza, sottotitolo = riassunto della pagina; qui solo lo stile. */
.page .hero-section[data-type="type-2"] {
  --min-height: clamp(260px, 30vw, 420px);
  --container-padding: 3rem 0;
  background-color: var(--c-ink);
}
.page .hero-section[data-type="type-2"] > figure > .ct-media-container::after {
  background: linear-gradient(180deg, rgba(31, 39, 27, 0.3) 0%, rgba(31, 39, 27, 0.62) 100%);
}
.page .hero-section[data-type="type-2"] > figure img {
  width: 100%;
  object-fit: cover;
}
.page .hero-section[data-type="type-2"] .page-title {
  margin: 0;
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  text-wrap: balance;
}
.page .hero-section[data-type="type-2"] .page-description {
  max-width: 640px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
}
.page .hero-section[data-type="type-2"] .page-description p {
  margin: 0;
}
/* Blocksy nasconde il sottotitolo su mobile (con !important): qui resta (es. la citazione di Chi siamo) */
@media (max-width: 689.98px) {
  .page .hero-section[data-type="type-2"] .page-description.ct-hidden-sm {
    display: block !important;
    font-size: 0.95rem;
  }
}
/* Sotto l'intestazione con la foto, la prima sezione ha di nuovo lo spazio sopra */
.page:has(.hero-section[data-type="type-2"]) .entry-content > .gdv-section--tight:first-child {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Foto a tutta larghezza con la citazione sopra (Chi siamo) */
.gdv-section.gdv-quote-hero {
  padding-block: 0;
}
.gdv-quote-hero {
  position: relative;
  display: grid;
  min-height: clamp(320px, 42vw, 520px);
  overflow: hidden;
  background: var(--c-ink);
}
.gdv-quote-hero > * {
  grid-area: 1 / 1;
}
.gdv-section .gdv-quote-hero__img {
  position: relative;
  height: 100%;
}
.gdv-section .gdv-quote-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gdv-quote-hero__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}
.gdv-section .gdv-quote-hero__quote {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  max-width: 900px;
  margin: 0;
  padding: 2rem var(--gdv-gut);
  border: 0;
  color: #fff;
  text-align: center;
}
.gdv-quote-hero__quote p {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}
.gdv-quote-hero__quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  font-style: normal;
}

/* Testo e foto affiancati; nelle consulenze le righe si alternano */
.gdv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.gdv-row.gdv-row--top {
  align-items: start;
}
.gdv-row--reverse .gdv-row__img {
  order: -1;
}
.gdv-rows .gdv-row + .gdv-row {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.gdv-section .gdv-row__text > :is(h1, h2, h3, h4):is(:first-child, :first-child + *) {
  margin-bottom: 1.1rem;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}
.gdv-section .gdv-row__text p + p,
.gdv-section .gdv-row__text p + .wp-block-buttons,
.gdv-section .gdv-row__text p + .wp-block-html,
.gdv-section .gdv-row__text p + .gdv-pay {
  margin-top: 1rem;
}
.gdv-row__text > p:not(.gdv-eyebrow):not(:first-child:has(+ :is(h1, h2, h3, h4, h5, h6))) {
  line-height: 1.7;
}
.gdv-section .gdv-row__text .wp-block-buttons {
  margin-top: 1.75rem;
}
.gdv-section .gdv-row__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  object-fit: cover;
}

/* Le due consulenze (Chi siamo) */
.gdv-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.gdv-service {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-section .gdv-service__img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gdv-service > :not(figure) {
  padding-inline: 1.5rem;
}
.gdv-section .gdv-service h3 {
  margin-top: 1.4rem;
  font-size: 1.9rem;
}
.gdv-service h3 a {
  color: inherit;
  text-decoration: none;
}
.gdv-service h3 a:hover {
  color: var(--c-accent-text);
}
.gdv-section .gdv-service p {
  margin-top: 0.6rem;
}
.gdv-section .gdv-service .gdv-link-more {
  margin-block: 1rem 1.6rem;
}

/* Fascia scura "Parliamone" con Contattaci e WhatsApp */
.gdv-contact-band {
  background: var(--c-ink);
  color: var(--c-on-dark-soft);
}
.gdv-contact-band__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.gdv-section.gdv-contact-band h2 {
  margin-bottom: 0.6rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}
.gdv-contact-band__text {
  max-width: 640px;
}
.gdv-contact-band__actions.wp-block-buttons {
  gap: 0.75rem;
}
.gdv-contact-band .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
}
.gdv-contact-band .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Tre punti chiave con icona (Spedizioni) */
.gdv-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gdv-feature {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.2rem 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-feature[class*="gdv-ico-"]::before {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  color: var(--c-accent-text);
}
.gdv-section .gdv-feature h3 {
  font-size: 1.45rem;
}
.gdv-section .gdv-feature p {
  color: var(--c-text-soft);
  font-size: 0.95rem;
}

/* Coordinate del bonifico (Pagamenti) */
.gdv-bank {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-bank[class*="gdv-ico-"]::before {
  width: 30px;
  height: 30px;
  color: var(--c-accent-text);
}
.gdv-bank > * {
  grid-column: 2;
}
.gdv-bank > :first-child {
  grid-row: 1;
}
.gdv-section .gdv-bank h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.gdv-section .gdv-bank__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gdv-bank__list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-line);
  overflow-wrap: anywhere;
}
.gdv-bank__list strong {
  display: block;
  color: var(--c-text-soft);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
}
.gdv-section .gdv-bank > p {
  margin-top: 1rem;
  color: var(--c-text-soft);
  font-size: 0.9rem;
}
.gdv-pay.gdv-pay--large {
  gap: 0.5rem;
}
.gdv-pay.gdv-pay--large li {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Testi legali leggibili (righe di 820px, allineate a sinistra); nei Termini con l'indice a lato */
.gdv-legal-text > * {
  max-width: 820px;
}
.gdv-legal-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.gdv-section .gdv-legal-text h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  scroll-margin-top: 1.5rem;
}
.gdv-section .gdv-legal-text > h2:first-child {
  margin-top: 0;
}
.gdv-section .gdv-legal-text p,
.gdv-section .gdv-legal-text li {
  line-height: 1.75;
}
.gdv-section .gdv-legal-text p + p,
.gdv-section .gdv-legal-text p + ol,
.gdv-section .gdv-legal-text ol + p {
  margin-top: 0.9rem;
}
.gdv-section .gdv-legal-text ol {
  padding-left: 1.4rem;
}
.gdv-legal-text li + li {
  margin-top: 0.5rem;
}
.gdv-legal-text a {
  color: var(--c-accent-text);
}
/* Modulo da copiare (Resi e recesso): riquadro bianco con la riga rossa */
.gdv-section .gdv-legal-text .gdv-legal-form {
  margin: 1rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 0;
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r);
  background: #fff;
  font-style: normal;
}
.gdv-section .gdv-legal-text .gdv-legal-form p {
  font-size: 0.95rem;
}
.gdv-toc {
  position: sticky;
  top: calc(var(--admin-bar, 0px) + var(--gdv-header-h, 0px) + 1.5rem);
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-section .gdv-toc__title {
  margin-bottom: 0.6rem;
  color: var(--c-accent-text);
  font-family: var(--f-mono);
  font-size: 0.82rem;
}
.gdv-section .gdv-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gdv-toc li + li {
  margin-top: 0.45rem;
}
.gdv-toc a {
  color: var(--c-ink);
  font-size: 0.92rem;
  text-decoration: none;
}
.gdv-toc a:hover {
  color: var(--c-accent-text);
  text-decoration: underline;
}

/* Contatti: dati dell'azienda su fondo scuro e modulo di Contact Form 7 (pattern pagina-contatti,
   modulo creato dalla migrazione 016 con le classi gdv-form) */
.gdv-contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.gdv-contact__info,
.gdv-contact__form {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--r-lg);
}
.gdv-contact__info {
  background: var(--c-ink);
  color: var(--c-on-dark-soft);
}
.gdv-contact__form {
  background: #fff;
}
.gdv-section .gdv-contact h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}
.gdv-section .gdv-contact__info > :is(h1, h2, h3, h4):is(:first-child, :first-child + *) {
  margin-bottom: 1.25rem;
  color: #fff;
}
.gdv-contact__info .gdv-eyebrow,
.gdv-contact__info > p:first-child:has(+ :is(h1, h2, h3, h4, h5, h6)) {
  color: var(--c-on-dark-soft);
}
.gdv-contact__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.2rem 0.9rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.gdv-contact__item[class*="gdv-ico-"]::before {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  color: #fff;
}
.gdv-section .gdv-contact__item h3 {
  margin: 0;
  color: var(--c-on-dark-soft);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.gdv-section .gdv-contact__item p {
  margin: 0;
  color: #fff;
  line-height: 1.5;
}
.gdv-contact__item a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}
.gdv-contact__item a:hover {
  text-decoration-color: #fff;
}
.gdv-contact__form > p {
  color: var(--c-text-soft);
}
.gdv-contact .wpcf7 {
  margin-top: 1.5rem;
}

.gdv-form {
  --theme-form-field-height: 50px;
  --theme-form-field-border-radius: var(--r);
  --theme-form-field-border-initial-color: var(--c-grey-2);
  --theme-form-field-border-focus-color: var(--c-ink);
  --theme-form-field-background-initial-color: #fff;
  --theme-form-field-background-focus-color: #fff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}
.gdv-form p {
  margin: 0;
}
.gdv-form__field--wide,
.gdv-form__note,
.gdv-form__submit {
  grid-column: 1 / -1;
}
.gdv-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.gdv-form__optional {
  margin-left: 0.25rem;
  color: var(--c-text-soft);
  font-weight: 400;
}
.gdv-form .wpcf7-form-control-wrap {
  display: block;
}
.gdv-form textarea {
  min-height: 170px;
  resize: vertical;
}
.gdv-form input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--c-grey-2);
  border-radius: var(--r);
  background: var(--c-paper);
  color: var(--c-text-soft);
  font-size: 0.9rem;
}
.gdv-form input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: var(--r);
  background: var(--c-ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.gdv-form .wpcf7-not-valid {
  --theme-form-field-border-initial-color: var(--c-accent);
  border-color: var(--c-accent);
}
.gdv-form .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: var(--c-accent-text);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
}
.gdv-form__note {
  color: var(--c-text-soft);
  font-size: 0.88rem;
}
.gdv-form__note a {
  color: var(--c-accent-text);
}
.gdv-form__submit,
.gdv-form__submit > p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gdv-form .wpcf7-submit {
  min-width: 170px;
  min-height: 50px;
}
.gdv-form .wpcf7-spinner {
  margin: 0;
}
:is(.gdv-contact, .gdv-pro-area) .wpcf7 form .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--c-accent);
  border-radius: var(--r);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-style: normal;
  font-weight: 600;
}
:is(.gdv-contact, .gdv-pro-area) .wpcf7 form.sent .wpcf7-response-output {
  border-color: #2f7d4f;
  background: #e8f3ec;
  color: #1f5a37;
}

/* Aziende e professionisti (pattern pagina-professionisti; accesso, richiesta e messaggi dallo
   shortcode [gdv_area_professionisti] di inc/professionals.php) */
.gdv-pro__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-section .gdv-pro__intro > :is(h1, h2, h3) {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}
.gdv-section .gdv-pro__intro > p:last-child {
  margin: 0;
}
.gdv-pro__perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
/* Icona su un cerchio chiaro, come nel mockup: il cerchio è lo sfondo del riquadro */
.gdv-pro__perk {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  column-gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: radial-gradient(circle at calc(0.9rem + 26px) calc(0.9rem + 26px), var(--c-accent-soft) 25.5px, transparent 26px) var(--c-paper);
}
/* Con un numero dispari di vantaggi l'ultimo prende tutta la riga */
.gdv-pro__perk:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.gdv-pro__perk[class*="gdv-ico-"]::before {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  margin: 11px;
  color: var(--c-accent-text);
}
.gdv-section .gdv-pro__perk > :is(h2, h3, h4) {
  grid-column: 2;
  margin: 0.15rem 0 0.2rem;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}
.gdv-section .gdv-pro__perk > p {
  grid-column: 2;
  margin: 0;
  color: var(--c-text-soft);
  font-size: 0.875rem;
  line-height: 1.45;
}
.gdv-section ol.gdv-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: gdv-step;
}
.gdv-section .gdv-steps li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  background: #fff;
  color: var(--c-ink);
  counter-increment: gdv-step;
}
.gdv-steps li::before {
  content: counter(gdv-step);
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.gdv-pro-auth {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}
.gdv-pro-box {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: #fff;
}
.gdv-pro-box--single {
  max-width: 900px;
  margin-inline: auto;
}
.gdv-section .gdv-pro-box h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}
.gdv-section .gdv-pro-box__lead {
  margin: 0 0 1.25rem;
  color: var(--c-text-soft);
  font-size: 0.92rem;
}
/* Accesso: modulo di WooCommerce con i campi uno sotto l'altro, come nel mockup */
.gdv-pro-area .woocommerce-form-login {
  --theme-form-field-height: 50px;
  --theme-form-field-border-radius: var(--r);
  --theme-form-field-border-initial-color: var(--c-grey-2);
  --theme-form-field-border-focus-color: var(--c-ink);
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.gdv-pro-area .woocommerce-form-login .clear {
  display: none;
}
.gdv-pro-area .woocommerce-form-login .form-row {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.gdv-pro-area .woocommerce-form-login .form-row > label:not(.woocommerce-form-login__rememberme) {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.gdv-pro-area .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.gdv-pro-area .woocommerce-form-login__submit.button {
  width: 100%;
  min-height: 50px;
}
.gdv-section .gdv-pro-area .lost_password {
  margin: 0;
  font-size: 0.88rem;
}
.gdv-pro-area .lost_password a {
  color: var(--c-accent-text);
}
.gdv-section .gdv-pro-form h3 {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.gdv-section .gdv-pro-form h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
/* Caselle "privacy" e "offerte" (acceptance di Contact Form 7) */
.gdv-pro-check {
  grid-column: 1 / -1;
}
.gdv-pro-check .wpcf7-list-item {
  margin: 0;
}
.gdv-form .gdv-pro-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  color: var(--c-text);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}
.gdv-pro-check input {
  flex: none;
  margin-top: 0.15rem;
}
.gdv-pro-check a {
  color: var(--c-accent-text);
}
.gdv-pro-check small {
  color: var(--c-text-soft);
}
/* Chi ha già un account: l'email è quella dell'account e la password c'è già */
.gdv-pro-area--account :is(.gdv-pro-form__email, .gdv-pro-form__new) {
  display: none;
}
.gdv-pro-state {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.gdv-section .gdv-pro-state > p {
  color: var(--c-text-soft);
}
.gdv-section .gdv-pro-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
.gdv-pro-state__alt.button {
  --theme-button-background-initial-color: transparent;
  --theme-button-text-initial-color: var(--c-ink);
  box-shadow: inset 0 0 0 1px var(--c-ink);
}
.gdv-pro-staff {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--c-accent);
  background: #fff;
  font-size: 0.92rem;
}
.gdv-section p.gdv-pro__help {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg);
  background: #fff;
  font-size: 0.95rem;
}
.gdv-pro__help a {
  color: var(--c-accent-text);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .gdv-thirst__list.wp-block-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gdv-products .wc-block-product-template.wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gdv-rail { --per: 3; }
}

@media (max-width: 860px) {
  .gdv-exclusive__grid { grid-template-columns: minmax(0, 1fr); }
  .gdv-exclusive__card { margin: -3rem 1rem 0; }
  .gdv-sticker { width: 78px; }
  .gdv-sticker--3 { left: -3%; top: 64%; }
  .gdv-sticker--4 { right: -3%; top: 60%; }
  .gdv-treasure__grid,
  .gdv-split,
  .gdv-box__grid,
  .gdv-producers__card,
  .gdv-founder__grid { grid-template-columns: 1fr; }
  .gdv-treasure__visual { min-height: 320px; }
  .gdv-section .gdv-split__img { order: -1; min-height: 260px; }
  .gdv-advice__grid { grid-template-columns: 1fr; }
  .gdv-section hr.gdv-advice__sep { width: 60%; height: 1px; margin: 0 auto; }
  .gdv-products .wc-block-product-template.wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .gdv-rail { --per: 2.2; }
  .gdv-products.gdv-rail .wc-block-product-template.wc-block-product-template { grid-template-columns: none; gap: 1rem; grid-auto-columns: calc((100% - 1.2rem) / 2.2); }
  .gdv-nl-form__row,
  .gdv-nl-form.tnp-subscription form { grid-template-columns: 1fr; }
  .gdv-nl-form.tnp-subscription .tnp-field-button { grid-area: auto; }
  /* Come la pagina Blog sul tablet: due card per riga; l'ultima, se resterebbe da sola, non si mostra */
  .gdv-posts .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gdv-posts .wp-block-post:last-child:nth-child(odd) { display: none; }
  .gdv-row,
  .gdv-services,
  .gdv-features,
  .gdv-legal-page,
  .gdv-contact,
  .gdv-pro__hero,
  .gdv-pro-auth,
  .gdv-section ol.gdv-steps { grid-template-columns: minmax(0, 1fr); }
  .gdv-row .gdv-row__img { order: -1; }
  .gdv-toc { position: static; }
  .gdv-banners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; }
  .gdv-banner--big { grid-column: 1 / -1; grid-row: auto; min-height: 400px; }
  .gdv-banner:not(.gdv-banner--big) { min-height: 280px; }
}

@media (max-width: 560px) {
  .gdv-thirst__list.wp-block-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gdv-w .wp-block-button__link { gap: 0.45rem; padding-inline: 0.5rem; line-height: 1.15; }
  .gdv-w .wp-block-button__link::before { width: 34px; height: 34px; background-size: 34px; }
  .gdv-section .gdv-hero__title { font-size: 1.65rem; }
  .gdv-pcard__btn { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .gdv-pcard__btn .wp-block-button__link { min-height: 36px; padding: 0.35rem 0.4rem; font-size: 0.78rem; white-space: nowrap; }
  .gdv-pcard__media .wc-block-components-product-image a { --gdv-card-pad-b: 3.3rem; }
  .gdv-form { grid-template-columns: minmax(0, 1fr); }
  .gdv-pro__perks { grid-template-columns: minmax(0, 1fr); }
  .gdv-banners__grid { grid-template-columns: minmax(0, 1fr); }
  .gdv-banner--big { min-height: 360px; }
  .gdv-banner:not(.gdv-banner--big) { min-height: 240px; }
  .gdv-posts .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
  .gdv-posts .wp-block-post:last-child:nth-child(odd) { display: flex; }
  /* La nuvola usa dimensioni in linea (blocco Nuvola di tag): su mobile si riduce tutta insieme */
  .gdv-section .gdv-cloud { zoom: 0.72; }
  /* Gastronomia e cantina del mese: un vino per volta, con un pezzo del successivo che invita a scorrere */
  .gdv-split__wines .gdv-products.gdv-rail .wc-block-product-template.wc-block-product-template { grid-auto-columns: 80%; }
}
