/* De'Gaeta: componenti degli shortcode. Colori e caratteri sono quelli gia usati dal sito. */
:root {
	--dg-tortora: #7a6f68;
	--dg-tortora-scuro: #574e49;
	--dg-rosso: #9e2023;
	--dg-rosso-scuro: #6f1417;
	--dg-testo: #363636;
	--dg-inchiostro: #2e2521;
	--dg-chiaro: #efece9;
	--dg-titoli: "Barlow Condensed", sans-serif;
	--dg-corsivo: "Ibarra Real Nova", Georgia, serif;
	/* Carta da etichetta: grana finissima e una luce morbida al centro, nessun disegno */
	--dg-carta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .34 0 0 0 0 .3 0 0 0 0 .27 0 0 0 .17 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, .6), transparent 68%), var(--dg-chiaro);
	--dg-grana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .34 0 0 0 0 .3 0 0 0 0 .27 0 0 0 .17 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
	/* Stessa grana in chiaro, per le fasce tortora */
	--dg-cuoio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .94 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .05), transparent 70%), #71665f;
}

/* ---------- Bottoni: il colore entra da sinistra ---------- */
.dg-bottone {
	display: inline-block;
	padding: 13px 28px;
	border: 1px solid var(--dg-rosso);
	border-radius: 3px;
	background: linear-gradient(90deg, var(--dg-rosso-scuro), var(--dg-rosso)) no-repeat left / 0 100%;
	color: var(--dg-rosso);
	font: 600 18px/1.2 var(--dg-titoli);
	letter-spacing: .03em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-size .45s cubic-bezier(.2, .7, .2, 1), color .25s;
}
.dg-bottone:hover, .dg-bottone:focus-visible { background-size: 100% 100%; color: #fff; }
.dg-bottone.dg-pieno { background-color: var(--dg-rosso); color: #fff; }
.dg-bottone:focus-visible, .dgp :focus-visible, .dgs :focus-visible, .dgv :focus-visible, .dg-carrello:focus-visible { outline: 2px solid currentColor !important; outline-offset: 3px; }

/* ---------- Premi ---------- */
.dgp {
	position: relative;
	width: 100%;
	padding: 48px 0 40px;
	color: var(--dg-inchiostro);
	text-align: center;
}
.brxe-section:has(.dgp) { overflow-x: clip; padding-top: 0 !important; padding-bottom: 0 !important; background: var(--dg-carta) !important; }
.brxe-container:has(> .dgp), .brxe-container:has(> .brxe-shortcode > .dgp) { height: auto !important; }
.brxe-shortcode:has(> .dgp), .brxe-shortcode:has(> .dgs), .brxe-shortcode:has(> .dgv), .brxe-shortcode:has(> .dga) { width: 100%; }
.dgp-titolo { margin: 0 0 28px; color: var(--dg-inchiostro); font: 500 50px/1 var(--dg-titoli); letter-spacing: 2px; text-transform: uppercase; }
.dgp-palco { display: flex; gap: 32px; margin: 0; padding: 0 0 16px; list-style: none; overflow-x: auto; }
.dgp-premio { flex: 0 0 240px; }
.dgp-medaglia img { display: block; width: 200px; height: 200px; margin: 0 auto; border-radius: 50%; }
.dgp-testo p { margin: 0; }
.dgp-testo .dgp-ente { margin-top: 24px; font: 500 28px/1.15 var(--dg-titoli); letter-spacing: .02em; }
.dgp-testo .dgp-risultato { margin-top: 4px; font: italic 500 24px/1.3 var(--dg-corsivo); }
.dgp-testo .dgp-vino { margin-top: 8px; font: 400 19px/1.35 var(--dg-titoli); letter-spacing: .02em; }
.dgp-testo .dgp-link { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.dgp-link a { color: var(--dg-inchiostro); font: 600 18px/1.6 var(--dg-titoli); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.dgp-link a:hover { text-decoration-thickness: 2px; }

.dgp-vivo .dgp-palco { position: relative; display: block; height: 370px; padding: 0; overflow: visible; touch-action: pan-y; user-select: none; cursor: grab; }
.dgp-vivo .dgp-premio { position: absolute; top: 0; left: 50%; width: 560px; margin-left: -280px; pointer-events: none; }
.dgp-vivo .dgp-medaglia {
	--passo: clamp(84px, 12.5vw, 180px);
	width: 170px;
	margin: 0 auto;
	border-radius: 50%;
	transform: translateX(calc(var(--d) * var(--passo))) scale(calc(1 - var(--a) * .17));
	pointer-events: auto;
	cursor: pointer;
}
.dgp-vivo .dgp-medaglia img { width: 170px; height: 170px; box-shadow: 0 10px 22px rgba(43, 33, 28, .24); }
.dgp-vivo .dgp-medaglia::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dg-chiaro); opacity: calc(var(--a) * .17); pointer-events: none; }
.dgp-vivo .dgp-fuori .dgp-medaglia { opacity: 0; visibility: hidden; pointer-events: none; }
.dgp-vivo .dgp-testo { opacity: 0; }
.dgp-vivo .dgp-ora .dgp-testo { opacity: 1; pointer-events: auto; }
.dgp-pronto .dgp-medaglia { transition: transform .6s cubic-bezier(.2, .75, .2, 1), opacity .4s, visibility .4s; }
.dgp-pronto .dgp-medaglia::after { transition: opacity .6s; }
.dgp-pronto .dgp-ora .dgp-testo { transition: opacity .35s .2s; }
.dgp-comandi { position: relative; z-index: 30; display: flex; justify-content: center; gap: 12px; }
.dgp-comandi[hidden] { display: none; }
.dgp-freccia { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--dg-tortora-scuro); border-radius: 3px; background: none; color: var(--dg-inchiostro); cursor: pointer; transition: background-color .2s, color .2s; }
.dgp-freccia:hover { background: var(--dg-inchiostro); color: #fff; }
.dgp-freccia svg, .dg-attestato svg, .dg-carrello svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 767px) {
	.dgp-titolo { font-size: 38px; }
	.dgp-vivo .dgp-premio { width: 92vw; margin-left: -46vw; }
	.dgp-vivo .dgp-medaglia, .dgp-vivo .dgp-medaglia img { width: 150px; height: 150px; }
	.dgp-vivo .dgp-palco { height: 375px; }
}

.dg-attestato { max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(35, 28, 25, .92); }
.dg-attestato[open] { display: grid; place-items: center; }
.dg-attestato::backdrop { background: none; }
.dg-attestato img { max-width: 92vw; max-height: 86dvh; object-fit: contain; }
.dg-attestato button { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }

/* ---------- Scheda vino ---------- */
.dgs-pagina, .brxe-section:has(.dgs) { overflow-x: clip; }
.dgs-pagina > .dgs, .dgs-pagina > .woocommerce-notices-wrapper { width: min(95%, 1440px); margin: 0 auto; }
.brxe-section:has(.dgs) { margin-top: 0 !important; }
.dgs { width: 100%; padding-bottom: 80px; color: var(--dg-testo); font: 400 19px/1.55 var(--dg-titoli); }
.dgs p, .dgs dl, .dgs dd { margin: 0; }
.dgs h2 { margin: 0 0 16px; color: var(--dg-tortora-scuro); font: 500 38px/1.1 var(--dg-titoli); }
.dgs [hidden] { display: none !important; }

.dgs-testa { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6%; align-items: center; padding: 56px 0; color: var(--dg-inchiostro); isolation: isolate; }
.dgs-testa::before { content: ""; position: absolute; z-index: -2; inset: 0 calc(50% - 50vw); background: var(--dg-carta); }
.dgs-bottiglia { position: relative; display: grid; place-items: center; height: min(640px, 78vh); min-height: 480px; isolation: isolate; }
.dgs-bottiglia img { width: auto; height: min(640px, 78vh); min-height: 480px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(43, 33, 28, .24)); }
.dgs h1.dgs-nome { margin: 0; color: var(--dg-inchiostro); font: 500 clamp(38px, 4.2vw, 64px)/1.02 var(--dg-titoli); text-wrap: balance; }
.dgs-annate { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.dgs-annate button { min-width: 80px; padding: 8px 16px; border: 1px solid var(--dg-tortora-scuro); border-radius: 3px; background: none; color: var(--dg-inchiostro); font: 500 26px/1.2 var(--dg-titoli); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.dgs-annate button:hover { background: rgba(255, 255, 255, .5); }
.dgs-annate button[aria-selected="true"] { border-color: var(--dg-rosso); background: var(--dg-rosso); color: #fff; }
.dgs-denominazione { font-size: 24px; font-weight: 500; line-height: 1.3; }
.dgs .dgs-racconto { margin-top: 8px; font: italic 500 24px/1.45 var(--dg-corsivo); }
.dgs-breve { display: grid; grid-template-columns: auto auto minmax(0, 1.6fr); gap: 16px 40px; margin-top: 20px !important; }
.dgs-breve dt, .dgs-dati dt { font-size: 16px; line-height: 1.4; }
.dgs-breve dd { font-size: 21px; font-weight: 500; line-height: 1.3; }
.dgs .dgs-contatto { margin-top: 32px; }
.dgs-acquisto { display: grid; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(87, 78, 73, .35); }
.dgs-costo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.dgs-prezzo { font-size: 54px; font-weight: 500; line-height: 1; }
.dgs-litro { color: var(--dg-tortora-scuro); font-size: 18px; }
.dgs-esaurito { color: var(--dg-rosso); font-size: 22px; font-weight: 600; }
.dgs-modulo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.dgs-scelte { display: flex; border: 1px solid rgba(87, 78, 73, .5); border-radius: 3px; }
.dgs-scelte button { display: grid; place-items: center; flex: 1 1 0; min-height: 50px; padding: 4px 8px; border: 0; border-left: 1px solid rgba(87, 78, 73, .3); background: none; color: var(--dg-inchiostro); font: 500 18px/1.2 var(--dg-titoli); cursor: pointer; transition: background-color .2s, color .2s; }
.dgs-scelte button:first-child { border-left: 0; }
.dgs-scelte button:hover { background: rgba(87, 78, 73, .1); }
.dgs-scelte button[aria-pressed="true"] { background: var(--dg-tortora-scuro); color: #fff; }
.dgs-modulo .dg-bottone { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; font-size: 22px; }
.dgs-totale { font-weight: 500; }
.dgs-quanti { display: flex; border: 1px solid rgba(87, 78, 73, .5); border-radius: 3px; }
.dgs-quanti button { display: grid; place-items: center; width: 46px; min-height: 46px; padding: 0; border: 0; background: none; color: var(--dg-testo); font-size: 24px; line-height: 1; cursor: pointer; }
.dgs-quanti input { width: 48px; padding: 0; border: 0; background: none; font: 600 20px/1 var(--dg-titoli); text-align: center; appearance: textfield; }
.dgs-quanti input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.dgs-calice, .dgs-premi, .dgs-colonne { margin-top: 72px; }
.dgs-calice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 6%; }
.dgs-calice > :not(h2) { grid-column: 2; }
.dgs-calice h2 { grid-row: 1 / span 2; }
.dgs-assaggio, .dgs-assaggio p { font: 500 28px/1.45 var(--dg-corsivo); }
.dgs .dgs-tavola { margin-top: 20px; font-size: 21px; }
.dgs-premi ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.dgs-premi li > a, .dgs-premi li:not(:has(> a)) { display: flex; align-items: center; gap: 18px; color: inherit; font-size: 20px; line-height: 1.25; text-decoration: none; }
.dgs-premi li a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.dgs-premi li img { flex: none; width: 104px; height: 104px; border-radius: 50%; }
.dgs-premi li span, .dgs-premi li strong { display: block; }
.dgs-premi-testo { margin-top: 12px; }
.dgs-premi-testo a { color: var(--dg-rosso); font-size: 22px; text-underline-offset: 4px; }
.dgs-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 6%; }
.dgs-dati > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #ddd8d5; }
.dgs-dati dt { color: var(--dg-tortora-scuro); font-size: 18px; }
.dgs-dati dd { font-weight: 500; line-height: 1.35; }
.dgs .dgs-allergeni { margin-top: 20px; }
.dgs .dgs-pdf { margin-top: 32px; }
.dgs-ambiente { margin-top: 64px; border-top: 1px solid var(--dg-tortora); border-bottom: 1px solid var(--dg-tortora); }
.dgs-ambiente summary { padding: 14px 0; color: var(--dg-tortora-scuro); font-size: 24px; font-weight: 500; cursor: pointer; }
.dgs-ambiente table { width: 100%; margin-bottom: 20px; border-collapse: collapse; font-size: 17px; line-height: 1.3; }
.dgs-ambiente th, .dgs-ambiente td { padding: 8px; border-bottom: 1px solid #ddd8d5; text-align: left; overflow-wrap: anywhere; }
.dgs-ambiente td:first-child { font-weight: 600; }
.dgs-ambiente td.Raccolta { color: #fff; background: #6d6d6d; }
.dgs-ambiente td.Raccolta.vetro { background: #0f7a3a; }
.dgs-ambiente td.Raccolta.alluminio { background: #1f7389; }
.dgs-altri { margin-top: 72px; }
.dgs-altri h2 { margin-bottom: 32px; text-align: center; }
.dgs-altri .dgv-bottiglia, .dgs-altri .dgv-bottiglia img { height: 300px; }
@media (max-width: 900px) {
	.dgs-testa, .dgs-calice, .dgs-colonne { grid-template-columns: minmax(0, 1fr); }
	.dgs-testa { gap: 28px; padding: 28px 0 36px; }
	.dgs-bottiglia, .dgs-bottiglia img { height: 400px; min-height: 0; }
	.dgs-calice > :not(h2) { grid-column: 1; }
	.dgs-calice h2 { grid-row: auto; }
	.dgs-calice, .dgs-premi, .dgs-colonne, .dgs-altri { margin-top: 48px; }
	.dgs-assaggio, .dgs-assaggio p { font-size: 23px; }
	.dgs h2 { font-size: 32px; }
}
@media (max-width: 520px) {
	.dgs-breve { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
	.dgs-breve > :nth-child(3) { grid-column: 1 / -1; }
	.dgs-modulo { grid-template-columns: minmax(0, 1fr); }
	.dgs-quanti { justify-content: space-between; }
	.dgs-prezzo { font-size: 46px; }
	.dgs-dati > div { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ---------- Elenco vini ---------- */
/* Pagine senza foto in alto: testata piena, altrimenti il menu bianco sparisce sul fondo bianco */
body:has(.dgs) #brx-header { position: relative; z-index: 60; background: var(--dg-cuoio) !important; }
#brxe-xggeoy, #brxe-lgeapu, #brxe-lgeapv, #brxe-pgchsz { background: var(--dg-cuoio) !important; }
.dgv-pagina { width: 100%; padding-bottom: 80px; color: var(--dg-testo); font: 400 19px/1.5 var(--dg-titoli); }
.brxe-shortcode:has(> .dgv-pagina) { width: 100%; }
.brxe-section:has(.dgv-pagina) { margin-top: 0 !important; padding-top: 0 !important; overflow-x: clip; }
body:has(.dgv-foto) #brx-header { position: relative; z-index: 60; background: linear-gradient(rgba(25, 19, 16, .78), rgba(25, 19, 16, .58) 72%, rgba(25, 19, 16, 0)); }
.dgv-foto { display: block; background: #d9d3ce; width: 100vw; max-width: none; height: 50vh; min-height: 380px; margin: -140px calc(50% - 50vw) 0; object-fit: cover; object-position: 50% 62%; }
.dgv-apertura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 6%; align-items: baseline; padding: 56px 0 112px; }
.dgv-apertura h1 { margin: 0; color: var(--dg-testo); font: 500 50px/1 var(--dg-titoli); letter-spacing: 2px; text-transform: uppercase; }
.dgv-apertura p { margin: 0; font: italic 500 25px/1.45 var(--dg-corsivo); }

/* Una scheda per vino: carta appena tinta del colore del vino, la bottiglia esce dal bordo in alto */
.dgc-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 112px 32px; margin: 0; padding: 0; list-style: none; }
.dgc { --tinta: #f2edea; position: relative; display: grid; grid-template-columns: 34% minmax(0, 1fr); align-items: end; border-radius: 4px; background: var(--dg-grana), var(--tinta); }
.dgc-rosato { --tinta: #f9eeeb; }
.dgc-bianco { --tinta: #f8f4e9; }
.dgc-bottiglia { display: flex; justify-content: center; height: 400px; margin-bottom: 28px; pointer-events: none; }
.dgc-bottiglia img { width: auto; height: 460px; max-width: none; margin-top: -60px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(43, 33, 28, .24)); transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.dgc:hover .dgc-bottiglia img { transform: translateY(-10px); }
.dgc-testi { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; padding: 36px 36px 36px 0; }
.dgc h2 { margin: 0; font: 500 34px/1.08 var(--dg-titoli); text-wrap: balance; }
.dgc h2 a { color: var(--dg-inchiostro); text-decoration: none; }
.dgc h2 a::after { content: ""; position: absolute; z-index: 1; inset: 0; } /* tutta la scheda e cliccabile */
.dgc h2 a:focus-visible { outline: none !important; }
.dgc:has(a:focus-visible) { outline: 2px solid var(--dg-rosso); outline-offset: 3px; }
.dgc p, .dgc dl, .dgc dd { margin: 0; }
.dgc .dgc-frase { margin-top: 12px; font: italic 500 20px/1.4 var(--dg-corsivo); }
.dgc-dati { margin-top: 18px !important; }
.dgc-dati > div { margin-bottom: 8px; line-height: 1.3; }
.dgc-dati dt { color: var(--dg-tortora-scuro); font-size: 16px; }
.dgc-dati dd { font-weight: 500; }
.dgc .dgc-piede { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; padding: 12px 0 18px; font-size: 22px; font-weight: 500; }
.dgc-anni { color: var(--dg-rosso); }
.dgc:hover .dg-bottone { background-size: 100% 100%; color: #fff; }
/* Numero dispari di vini: il primo prende tutta la riga */
@media (min-width: 901px) {
	.dgc:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
	.dgc:first-child:nth-last-child(odd) .dgc-bottiglia { height: 460px; }
	.dgc:first-child:nth-last-child(odd) .dgc-bottiglia img { height: 540px; margin-top: -80px; }
	.dgc:first-child:nth-last-child(odd) h2 { font-size: 50px; }
	.dgc:first-child:nth-last-child(odd) .dgc-frase { max-width: 34em; font-size: 24px; }
	.dgc:first-child:nth-last-child(odd) .dgc-dati { display: flex; flex-wrap: wrap; gap: 8px 48px; }
}
@media (max-width: 900px) {
	.dgv-apertura { grid-template-columns: minmax(0, 1fr); padding: 36px 0 88px; }
	.dgc-lista { grid-template-columns: minmax(0, 1fr); gap: 84px; }
}
@media (max-width: 520px) {
	.dgv-foto { height: 42vh; min-height: 300px; margin-top: -100px; }
	.dgv-apertura h1 { font-size: 38px; }
	.dgv-apertura p { font-size: 21px; }
	.dgc-bottiglia { height: 330px; margin-bottom: 20px; }
	.dgc-bottiglia img { height: 370px; margin-top: -40px; }
	.dgc-testi { padding: 22px 18px 22px 4px; }
	.dgc h2 { font-size: 28px; }
	.dgc .dgc-frase { font-size: 18px; }
}
.dgv { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 56px 24px; width: 100%; margin: 0; padding: 0; list-style: none; }
.dgv a { display: flex; flex-direction: column; align-items: center; color: var(--dg-testo); font: 400 18px/1.3 var(--dg-titoli); text-align: center; text-decoration: none; }
.dgv-bottiglia { position: relative; display: grid; place-items: center; width: 100%; height: 400px; margin-bottom: 16px; isolation: isolate; }
.dgv-nome { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.dgv a:hover .dgv-nome, .dgv a:focus-visible .dgv-nome { text-decoration: underline; }
.dgv-bottiglia img { width: auto; height: 400px; max-width: 100%; object-fit: contain; }
.dgv-nome { font-size: 23px; font-weight: 500; line-height: 1.15; }
.dgv-anni { margin-top: 4px; color: var(--dg-tortora-scuro); }
.dgv-prezzo { margin-top: 4px; font-size: 20px; font-weight: 600; }
@media (max-width: 520px) {
	.dgv { grid-template-columns: 1fr 1fr; gap: 40px 12px; }
	.dgv-bottiglia, .dgv-bottiglia img { height: 280px; }
}

/* ---------- Apertura della home ---------- */
.dga { position: relative; display: flex; align-items: center; width: 100%; height: 75vh; min-height: 560px; padding: 150px 2.5% 40px; overflow: hidden; background: #0f1112; color: #fff; }
.dga-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.dga-testi { position: relative; width: min(44%, 620px); margin-left: max(0px, calc((95vw - 1440px) / 2)); }
.dga h1 { margin: 0; color: #fff; font: 500 clamp(38px, 4.4vw, 68px)/1.02 var(--dg-titoli); text-wrap: balance; }
.dga blockquote { margin: 20px 0 28px; padding: 0; border: 0; font: italic 500 clamp(19px, 1.5vw, 24px)/1.45 var(--dg-corsivo); }
.dga blockquote p { margin: 0; }
.dga blockquote footer { margin-top: 6px; font: 400 18px/1.4 var(--dg-titoli); }
.brxe-section:has(.dga) { height: auto !important; margin-bottom: -140px; z-index: 0 !important; }
#brx-header:has(~ main .dga), #brx-header:has(~ #brx-content .dga) { position: relative; z-index: 60; }
@media (max-width: 767px) {
	.dga { align-items: flex-end; height: auto; min-height: 88svh; padding: 130px 6% 36px; }
	.dga-foto { height: 62%; object-position: 62% 50%; }
	.dga-testi { width: 100%; }
	.dga::before { content: ""; position: absolute; z-index: 1; inset: 25% 0 0; background: linear-gradient(transparent, #0f1112 42%); }
	.dga-testi { z-index: 2; }
}

/* ---------- Torna su ---------- */
.dg-su { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 3px; background: var(--dg-tortora-scuro); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.dg-su-visibile { opacity: 1; visibility: visible; transform: none; }
.dg-su:hover { background: var(--dg-rosso); }
.dg-su:focus-visible { outline: 2px solid var(--dg-rosso) !important; outline-offset: 3px; }
.dg-su svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Home: Chi siamo sulla stessa carta dei premi ---------- */
#brxe-zknzav { background: var(--dg-carta) !important; }

/* ---------- Territorio: foto alte in proporzione alla quota ---------- */
#brxe-igujms:has(#brxe-ukluah), main:has(.dgt) #brxe-plbcgo:not(:has(.dgt)) { display: none !important; }
#brxe-plbcgo:has(.dgt) { height: auto !important; background: none !important; }
.dgt { width: 100%; background: var(--dg-carta); color: var(--dg-inchiostro); font: 400 20px/1.5 var(--dg-titoli); }
.dgt-dentro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 6%; align-items: end; width: min(95%, 1440px); margin: 0 auto; padding: 72px 0; }
.dgt p, .dgt ul { margin: 0; padding: 0; }
.dgt h2 { margin: 0 0 16px; font: 500 50px/1.05 var(--dg-titoli); text-wrap: balance; }
.dgt-testi p { font: italic 500 24px/1.45 var(--dg-corsivo); }
.dgt-testi .dgt-nota { margin-top: 20px; font: 400 20px/1.5 var(--dg-titoli); }
.dgt ul { --metro: .74px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; list-style: none; }
.dgt-quota { font-size: 46px; font-weight: 500; line-height: 1; }
.dgt-luogo { margin-top: 6px !important; font-weight: 600; line-height: 1.2; }
.dgt .dgt-uva { margin-bottom: 14px; line-height: 1.3; }
.dgt img { display: block; background: #d9d3ce; width: 100%; height: calc(var(--quota) * var(--metro)); object-fit: cover; border-radius: 4px; }

/* ---------- Contatti ---------- */
.dgk { display: flex; flex-direction: column; width: 100%; height: 100%; color: var(--dg-testo); font: 400 20px/1.4 var(--dg-titoli); }
.dgk p { margin: 0; }
.dgk-mappa { position: relative; background: #d9d3ce; flex: 1 1 auto; min-height: 380px; border-radius: 4px; overflow: hidden; }
.dgk-mappa img, .dgk-mappa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.dgk-mappa .dg-bottone { position: absolute; left: 20px; bottom: 20px; }
.dgk-dati { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 48px; margin-top: 24px; }
.dgk-dati span { display: block; color: var(--dg-tortora-scuro); font-size: 17px; }
.dgk-dati p { font-size: 22px; font-weight: 500; }
.dgk-dati a { color: inherit; text-underline-offset: 4px; }
.dgk .dgk-vai { margin-top: 24px; }
#brxe-sehwuo:has(.dgk) { align-items: stretch; column-gap: 6%; padding-bottom: 40px; }
#brxe-sehwuo:has(.dgk) #brxe-rkbgdz { width: 100%; }
#brxe-sehwuo:has(.dgk) #brxe-cgufvv { width: 100%; }
#brxe-sehwuo:has(.dgk) #brxe-cgufvv textarea { min-height: 190px; }
@media (max-width: 900px) {
	.dgt-dentro { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 0; }
}
@media (max-width: 520px) {
	.dgt h2 { font-size: 38px; }
	.dgt-testi p { font-size: 21px; }
	.dgt ul { --metro: .42px; gap: 10px; font-size: 17px; }
	.dgt-quota { font-size: 30px; }
	.dgk-mappa { flex: none; height: 320px; min-height: 0; }
	.dgk-dati { grid-template-columns: minmax(0, 1fr); }
	.dg-su { right: 14px; bottom: 14px; }
}

/* ---------- Carrello in testata ---------- */
.dg-carrello { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; color: #fff; }
.dg-carrello span { position: absolute; top: 2px; right: 0; min-width: 19px; padding: 0 5px; border-radius: 10px; background: var(--dg-rosso); font: 600 13px/19px var(--dg-titoli); text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.dg-bottone, .dg-su, .dgp *, .dgp *::after, .dgc * { transition: none !important; }
}
