/* Visit Montallegro – Guida
   Stile a cartolina: carta calce, colori del territorio, Fraunces + Hanken Grotesk.
   Tutto è dentro .vg, così non tocca il resto del sito. */

@font-face { font-family: "VG Fraunces"; src: url("fonts/fraunces.woff2") format("woff2-variations"), url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "VG Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2-variations"), url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "VG Hanken"; src: url("fonts/hanken-grotesk.woff2") format("woff2-variations"), url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

.vg {
	--abisso: #0A1D24;
	--mare: #0F6F7C;
	--mare-chiaro: #2A97A2;
	--tramonto: #EE7B45;
	--oro: #E9B14C;
	--pineta: #4F8A5B;
	--carta: #FBF8F1;
	--calce: #F3ECDF;
	--sabbia: #E9DDC8;
	--inchiostro: #12303A;
	--nebbia: #56707A;
	--linea: rgba(18, 48, 58, .12);
	--aperto: #1F7A4A;
	--chiuso: #A23B2A;
	--stagione: #8A6418;
	--c: var(--mare);
	--f-titoli: "VG Fraunces", "Fraunces", Georgia, "Times New Roman", serif;
	--f-testo: "VG Hanken", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ombra: 0 1px 2px rgba(10, 29, 36, .06), 0 16px 34px -24px rgba(10, 29, 36, .55);
	--ombra-su: 0 2px 4px rgba(10, 29, 36, .06), 0 26px 48px -26px rgba(10, 29, 36, .6);
	--curva: cubic-bezier(.2, .8, .2, 1);
	display: block;
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 0 48px;
	font-family: var(--f-testo);
	font-size: 16px;
	line-height: 1.55;
	color: var(--inchiostro);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.vg + .vg { margin-top: 24px; padding-top: 56px; border-top: 1px solid var(--linea); }

/* ---------- Reset dentro la guida (il tema non deve entrare) ---------- */
.vg *, .vg *::before, .vg *::after { box-sizing: border-box; }
/* Le regole di base hanno «html body» davanti: così battono quelle del tema e del kit di Elementor (es. .elementor-kit-6 h2). */
html body .vg h1, html body .vg h2, html body .vg h3, html body .vg h4, html body .vg p, html body .vg ul, html body .vg ol, html body .vg li, html body .vg figure, html body .vg dl, html body .vg dt, html body .vg dd, html body .vg table, html body .vg th, html body .vg td { margin: 0; padding: 0; border: 0; background: none; }
.vg ul, .vg ol { list-style: none; }
html body .vg h1, html body .vg h2, html body .vg h3, html body .vg h4 { font-family: var(--f-titoli); font-weight: 500; font-style: normal; letter-spacing: -.01em; line-height: 1.1; color: var(--abisso); text-transform: none; text-shadow: none; }
html body .vg a { color: inherit; text-decoration: none !important; box-shadow: none; font-family: inherit; }
html body .vg a:hover { color: inherit; text-decoration: none !important; box-shadow: none; }
html body .vg a:focus { text-decoration: none !important; box-shadow: none; }
.vg img { max-width: none; height: auto; border: 0; border-radius: 0; box-shadow: none; }
html body .vg button { -webkit-appearance: none; appearance: none; font: inherit; color: inherit; background: none; border: 0; border-radius: 0; margin: 0; padding: 0; min-height: 0; min-width: 0; width: auto; line-height: inherit; letter-spacing: inherit; text-transform: none; text-shadow: none; box-shadow: none; cursor: pointer; }
html body .vg button:hover { background: none; color: inherit; box-shadow: none; }
html body .vg button:focus { box-shadow: none; }
/* Quando un pulsante ha il focus (per esempio la X appena si apre la scheda) il tema non deve ricolorarlo. */
.vg .vg-chiudi:focus:not(:hover) { background: rgba(255, 255, 255, .95); color: var(--abisso); }
.vg .vg-galleria__freccia:focus:not(:hover) { background: rgba(255, 255, 255, .92); color: var(--abisso); }
.vg .vg-chip:focus:not(:hover), .vg .vg-azione:focus:not(:hover), .vg .vg-interruttore:focus:not(:hover), .vg .vg-bottone--chiaro:focus:not(:hover) { background: #fff; color: var(--inchiostro); }
.vg .vg-chip[aria-pressed="true"]:focus:not(:hover), .vg .vg-bottone:not(.vg-bottone--chiaro):focus:not(:hover), .vg .vg-pop__apri:focus:not(:hover) { background: var(--abisso); color: #FFF8EC; }
.vg .vg-azione--piena:focus:not(:hover) { background: var(--c); color: #fff; }
.vg .vg-segmenti button:focus:not(:hover) { background: none; color: var(--nebbia); }
.vg .vg-segmenti button[aria-pressed="true"]:focus:not(:hover) { background: #fff; color: var(--inchiostro); }
.vg .vg-vista button:focus:not(:hover) { background: none; color: rgba(255, 248, 236, .75); }
.vg .vg-vista button[aria-pressed="true"]:focus:not(:hover) { background: #FFF8EC; color: var(--abisso); }
.vg svg { overflow: hidden; }
.vg .vg-i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.vg :focus-visible { outline: 2.5px solid var(--tramonto); outline-offset: 3px; border-radius: 6px; }
.vg [hidden] { display: none !important; }
.vg .vg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.vg .vg-eyebrow { font: 700 12px/1.2 var(--f-testo); letter-spacing: .18em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: .7em; margin: 0; }
.vg .vg-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .8; }
.vg .vg-eyebrow--chiaro { color: #FFF4DE; }

/* ---------- Testata a cartolina ---------- */
.vg .vg-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(360px, 44vw, 540px); border-radius: 26px; overflow: hidden; background: var(--abisso); color: #fff; box-shadow: var(--ombra); }
.vg .vg-hero::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid rgba(255, 248, 232, .45); border-radius: 18px; z-index: 1; pointer-events: none; }
.vg .vg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 29, 36, .05) 25%, rgba(10, 29, 36, .28) 55%, rgba(10, 29, 36, .78) 100%); }
.vg .vg-hero__media { position: absolute; inset: 0; z-index: -2; }
.vg .vg-hero__img, .vg .vg-hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vg .vg-hero__testo { position: relative; z-index: 2; padding: clamp(28px, 5.5vw, 64px); max-width: 820px; }
.vg .vg-hero__titolo { font-family: var(--f-titoli); font-size: clamp(46px, 8.4vw, 104px); line-height: .94; font-weight: 500; letter-spacing: -.025em; color: #fff; margin: 14px 0 12px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); font-optical-sizing: auto; }
.vg .vg-hero__sotto { font-family: var(--f-titoli); font-style: italic; font-weight: 400; font-size: clamp(18px, 2.3vw, 25px); line-height: 1.35; color: #FFF1D9; max-width: 600px; text-shadow: 0 1px 16px rgba(0, 0, 0, .3); }
.vg .vg-bollo { position: absolute; z-index: 2; top: clamp(24px, 4vw, 44px); right: clamp(24px, 4vw, 48px); width: clamp(86px, 10vw, 124px); height: auto; color: rgba(255, 248, 232, .9); transform: rotate(-11deg); font-family: var(--f-testo); }
.vg .vg-bollo__ag { font-family: var(--f-titoli); font-style: italic; }

.vg .vg-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 34px 6px 8px; }
.vg .vg-intro > p { font-size: 17.5px; line-height: 1.6; color: #2B4650; max-width: 640px; }
.vg .vg-numeri { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.vg .vg-numeri li { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nebbia); }
.vg .vg-numeri strong { font: 500 40px/1 var(--f-titoli); letter-spacing: -.02em; color: var(--abisso); text-transform: none; }

.vg .vg-testata { padding: 0 6px 6px; max-width: 760px; }
.vg .vg-testata__titolo { font-size: clamp(34px, 5vw, 56px); margin: 12px 0 10px; }
.vg .vg-testata__sotto { color: #2B4650; font-size: 17px; }

/* ---------- Strumenti: ricerca, categorie, zona ---------- */
.vg .vg-strumenti { display: flex; flex-direction: column; gap: 14px; padding: 26px 0 8px; }
.vg .vg-cerca { position: relative; display: block; max-width: 520px; color: var(--nebbia); }
.vg .vg-cerca .vg-i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.vg .vg-cerca input { -webkit-appearance: none; appearance: none; width: 100%; height: 50px; margin: 0; padding: 0 18px 0 46px; border: 1.5px solid var(--linea); border-radius: 999px; background: #fff; font: 500 16px/1 var(--f-testo); color: var(--inchiostro); box-shadow: 0 1px 2px rgba(10, 29, 36, .04); transition: border-color .2s, box-shadow .2s; }
.vg .vg-cerca input::placeholder { color: #7D9098; opacity: 1; }
.vg .vg-cerca input:focus { outline: none; border-color: var(--mare); box-shadow: 0 0 0 4px rgba(15, 111, 124, .12); }

.vg .vg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vg .vg-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; color: var(--inchiostro); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .1s; }
.vg .vg-chip:hover { border-color: var(--c); background: #fff; color: var(--inchiostro); }
.vg .vg-chip:active { transform: scale(.97); }
.vg .vg-chip[aria-pressed="true"] { background: var(--abisso); border-color: var(--abisso); color: #FFF8EC; }
.vg .vg-chip[aria-pressed="true"]:hover { background: var(--abisso); color: #FFF8EC; }
.vg .vg-chip[aria-pressed="true"] .vg-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.vg .vg-chip__n { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--calce); color: var(--nebbia); }
.vg .vg-chip[aria-pressed="true"] .vg-chip__n { background: rgba(255, 255, 255, .16); color: #FFF8EC; }
.vg .vg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }

.vg .vg-strumenti__riga { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vg .vg-segmenti { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--calce); }
.vg .vg-segmenti button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--nebbia); white-space: nowrap; transition: background .2s, color .2s; }
.vg .vg-segmenti button:hover { color: var(--inchiostro); }
.vg .vg-segmenti button[aria-pressed="true"] { background: #fff; color: var(--inchiostro); box-shadow: 0 1px 3px rgba(10, 29, 36, .14); }

.vg .vg-interruttore { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 10px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-size: 14.5px; font-weight: 600; color: var(--inchiostro); }
.vg .vg-interruttore:hover { border-color: var(--aperto); background: #fff; }
.vg .vg-interruttore__leva { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #CBD5D8; transition: background .2s; }
.vg .vg-interruttore__leva::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--curva); }
.vg .vg-interruttore[aria-pressed="true"] { border-color: var(--aperto); }
.vg .vg-interruttore[aria-pressed="true"] .vg-interruttore__leva { background: var(--aperto); }
.vg .vg-interruttore[aria-pressed="true"] .vg-interruttore__leva::after { transform: translateX(14px); }

.vg .vg-vista { display: none; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--abisso); }
.vg .vg-vista button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; color: rgba(255, 248, 236, .75); font-size: 14px; font-weight: 600; }
.vg .vg-vista button:hover { color: #fff; }
.vg .vg-vista button[aria-pressed="true"] { background: #FFF8EC; color: var(--abisso); }

/* ---------- Elenco + mappa ---------- */
.vg .vg-corpo { display: block; padding-top: 10px; }
.vg .vg-corpo--mappa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: 28px; align-items: start; }
.vg .vg-conteggio { font-size: 14px; font-weight: 600; color: var(--nebbia); margin: 4px 2px 14px; }
.vg .vg-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; }
.vg .vg-mappa-box { position: sticky; top: 104px; }
.vg .vg-mappa { height: calc(100vh - 150px); min-height: 460px; max-height: 760px; border-radius: 22px; overflow: hidden; background: var(--calce); box-shadow: var(--ombra); z-index: 0; }
.vg .vg-mappa__nota { margin-top: 10px; font-size: 13px; color: var(--nebbia); text-align: center; }

.vg .vg-vuoto { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--linea); border-radius: 20px; background: rgba(255, 255, 255, .6); }
.vg .vg-vuoto p { margin-bottom: 14px; }

/* ---------- Card ---------- */
.vg .vg-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid rgba(18, 48, 58, .08); border-radius: 18px; overflow: hidden; box-shadow: var(--ombra); transition: transform .3s var(--curva), box-shadow .3s var(--curva); }
.vg .vg-card:hover, .vg .vg-card.is-attiva { transform: translateY(-4px); box-shadow: var(--ombra-su); }
.vg .vg-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--calce); }
.vg .vg-card__img, .vg .vg-card__media .vg-cover-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--curva); }
.vg .vg-card:hover .vg-card__img, .vg .vg-card:hover .vg-cover-svg { transform: scale(1.045); }
.vg .vg-card__corpo { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 18px 14px; }
.vg .vg-card__corpo::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; background: radial-gradient(circle at 7px 6px, #fff 3.2px, transparent 3.8px) 0 0 / 14px 12px repeat-x; pointer-events: none; }
.vg .vg-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nebbia); line-height: 1.3; }
.vg .vg-card__nome { font-family: var(--f-titoli); font-size: 23px; line-height: 1.12; font-weight: 500; color: var(--abisso); margin: 0; }
.vg .vg-card__link { color: inherit; }
.vg .vg-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vg .vg-card__link:focus-visible { outline: none; }
.vg .vg-card:focus-within { outline: 2.5px solid var(--tramonto); outline-offset: 3px; }
.vg .vg-card__gancio { font-size: 14.5px; line-height: 1.5; color: #4C6670; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vg .vg-card__piede { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--linea); }
.vg .vg-card__dati { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--nebbia); }
.vg .vg-card__dati .vg-prezzo { white-space: nowrap; }
.vg .vg-card__info { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vg .vg-prezzo { font-weight: 700; letter-spacing: .06em; color: var(--inchiostro); }
.vg .vg-card__azioni { display: inline-flex; gap: 6px; }
.vg .vg-mini { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--calce); color: var(--inchiostro); transition: background .2s, color .2s, transform .15s; }
.vg .vg-mini:hover { background: var(--c); color: #fff; }
.vg .vg-mini:active { transform: scale(.94); }
.vg .vg-mini .vg-i { width: 18px; height: 18px; }
.vg .vg-mini--apri { z-index: 0; background: var(--abisso); color: #FFF8EC; }
.vg .vg-card:hover .vg-mini--apri { background: var(--c); }
.vg .vg-card__premio { position: absolute; left: 12px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 29, 36, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #FFE7B0; font-size: 12px; font-weight: 700; }
.vg .vg-card__premio .vg-i { width: 14px; height: 14px; }

/* Stato aperto / chiuso */
.vg .vg-stato { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700; color: var(--inchiostro); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.vg .vg-stato::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nebbia); }
.vg .vg-stato[data-s="aperto"]::before { background: var(--aperto); box-shadow: 0 0 0 3px rgba(31, 122, 74, .18); }
.vg .vg-stato[data-s="chiuso"]::before { background: var(--chiuso); }
.vg .vg-stato[data-s="stagione"]::before { background: var(--oro); }
.vg .vg-stato--esteso { position: static; margin-top: 14px; background: #fff; border: 1px solid var(--linea); box-shadow: none; font-size: 14px; }

/* ---------- Copertine illustrate ---------- */
.vg .vg-cover-svg { display: block; width: 100%; height: 100%; font-family: var(--f-testo); }

/* ---------- Bottoni ---------- */
.vg .vg-bottone { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--abisso); color: #FFF8EC; font-weight: 700; font-size: 15px; }
.vg .vg-bottone:hover { background: var(--mare); color: #fff; }
.vg .vg-bottone--chiaro { background: #fff; color: var(--inchiostro); border: 1.5px solid var(--linea); }
.vg .vg-bottone--chiaro:hover { background: var(--calce); color: var(--inchiostro); }

.vg .vg-firma { margin-top: 30px; font-size: 13.5px; color: var(--nebbia); text-align: center; }
.vg .vg-firma a { color: var(--mare); text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Finestra della scheda ---------- */
.vg-bloccato, .vg-bloccato body { overflow: hidden !important; }
.vg .vg-dialog { position: fixed; inset: 0; margin: auto; width: min(980px, calc(100vw - 40px)); max-width: none; height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 26px; background: var(--carta); color: var(--inchiostro); box-shadow: 0 40px 120px -24px rgba(5, 18, 24, .65); overflow: hidden; }
.vg .vg-dialog[open] { display: block; animation: vg-entra .38s var(--curva); }
.vg .vg-dialog::backdrop { background: rgba(8, 24, 30, .58); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.vg .vg-dialog[open]::backdrop { animation: vg-sfuma .3s ease; }
@keyframes vg-entra { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes vg-sfuma { from { opacity: 0; } to { opacity: 1; } }
.vg .vg-dialog__scatola { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.vg .vg-chiudi { position: sticky; top: 14px; float: right; z-index: 6; display: grid; place-items: center; width: 46px; height: 46px; margin: 14px 14px -60px 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--abisso); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .45); transition: transform .15s, background .2s; }
.vg .vg-chiudi:hover { background: #fff; transform: rotate(90deg); color: var(--abisso); }
.vg .vg-chiudi .vg-i { width: 22px; height: 22px; }

/* Galleria */
.vg .vg-galleria { position: relative; background: var(--calce); }
.vg .vg-galleria__binario { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 7.4; }
.vg .vg-galleria__binario::-webkit-scrollbar { display: none; }
.vg .vg-galleria__foto { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.vg .vg-galleria__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vg .vg-galleria__cartolina { aspect-ratio: 2 / 1; overflow: hidden; }
.vg .vg-galleria__cartolina .vg-cover-svg { width: 100%; height: 100%; }
.vg .vg-galleria__freccia { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--abisso); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.vg .vg-galleria__freccia:hover { background: #fff; color: var(--abisso); }
.vg .vg-galleria__freccia--sx { left: 16px; }
.vg .vg-galleria__freccia--dx { right: 16px; }
.vg .vg-galleria__conta { position: absolute; right: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 29, 36, .7); color: #fff; font-size: 12.5px; font-weight: 700; }
.vg .vg-galleria__crediti { position: absolute; left: 16px; bottom: 14px; max-width: 60%; padding: 4px 10px; border-radius: 999px; background: rgba(10, 29, 36, .55); color: rgba(255, 255, 255, .9); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Testata della scheda */
.vg .vg-scheda__testa { padding: 30px 36px 6px; }
.vg .vg-scheda__nome { font-size: clamp(34px, 4.6vw, 52px); line-height: 1; margin: 12px 0 8px; letter-spacing: -.02em; }
.vg .vg-scheda__tipo { font-size: 16.5px; font-weight: 600; color: var(--nebbia); }

.vg .vg-azioni { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 36px 4px; }
.vg .vg-azione { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; color: var(--inchiostro); font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .1s; }
.vg .vg-azione:hover { border-color: var(--inchiostro); background: #fff; color: var(--inchiostro); }
.vg .vg-azione:active { transform: scale(.97); }
.vg .vg-azione .vg-i { width: 19px; height: 19px; }
.vg .vg-azione--piena { background: var(--c); border-color: var(--c); color: #fff; }
.vg .vg-azione--piena:hover { background: var(--abisso); border-color: var(--abisso); color: #fff; }

/* Corpo della scheda */
.vg .vg-scheda__griglia { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 30px; padding: 26px 36px 10px; }
.vg .vg-scheda__principale { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.vg .vg-scheda__lato { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vg .vg-scheda__gancio { font-family: var(--f-titoli); font-size: 22px; line-height: 1.35; font-style: italic; color: var(--abisso); }
.vg .vg-scheda__racconto p { font-size: 16.5px; line-height: 1.7; color: #2B4650; }
.vg .vg-scheda__racconto p + p { margin-top: 12px; }
.vg .vg-scheda__racconto strong { color: var(--abisso); }
.vg .vg-scheda__racconto a { color: var(--mare); text-decoration: underline !important; text-underline-offset: 3px; }

.vg .vg-premi { display: flex; flex-wrap: wrap; gap: 8px; }
.vg .vg-premi li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; background: #FFF4D6; color: #6B4A0E; font-size: 14px; font-weight: 700; }
.vg .vg-premi .vg-i { color: #C98A12; }

.vg .vg-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vg .vg-info > div { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--linea); }
.vg .vg-info dt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nebbia); }
.vg .vg-info dd { margin-top: 6px; font-family: var(--f-titoli); font-size: 18px; line-height: 1.25; color: var(--abisso); }

.vg .vg-blocco__titolo { display: flex; align-items: center; gap: 8px; font-family: var(--f-testo); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nebbia); margin-bottom: 12px; }
.vg .vg-blocco__titolo .vg-i { width: 17px; height: 17px; color: var(--c); }
.vg .vg-blocco--carta { padding: 18px 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--linea); }

.vg .vg-tag { display: flex; flex-wrap: wrap; gap: 8px; }
.vg .vg-tag li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); font-size: 14px; font-weight: 600; }
.vg .vg-tag .vg-i { width: 16px; height: 16px; color: var(--c); }
.vg .vg-sapere li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px dashed var(--linea); font-size: 15px; color: #2B4650; }
.vg .vg-sapere li:last-child { border-bottom: 0; }
.vg .vg-sapere li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.vg .vg-orari { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.vg .vg-orari th, .vg .vg-orari td { padding: 7px 8px; text-align: left; border-bottom: 1px dashed var(--linea); vertical-align: top; }
.vg .vg-orari tr:last-child th, .vg .vg-orari tr:last-child td { border-bottom: 0; }
.vg .vg-orari th { font-weight: 600; color: var(--nebbia); width: 42%; }
.vg .vg-orari td { font-weight: 600; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.vg .vg-orari tr.is-oggi th, .vg .vg-orari tr.is-oggi td { background: var(--calce); color: var(--abisso); font-weight: 800; }
.vg .vg-orari tr.is-oggi th { border-radius: 10px 0 0 10px; }
.vg .vg-orari tr.is-oggi td { border-radius: 0 10px 10px 0; }
.vg .vg-nota { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--nebbia); }
.vg .vg-indirizzo { font-weight: 600; margin-bottom: 10px; }
.vg .vg-minimappa { height: 190px; border-radius: 14px; overflow: hidden; background: var(--calce); margin-bottom: 10px; z-index: 0; }
.vg .vg-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--mare); }
.vg .vg-link:hover { color: var(--abisso); }
.vg .vg-contatti li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 600; word-break: break-word; }
.vg .vg-contatti .vg-i { color: var(--c); }
.vg .vg-contatti a { color: var(--inchiostro); border-bottom: 1px solid var(--linea); }
.vg .vg-contatti a:hover { color: var(--mare); border-color: var(--mare); }

.vg .vg-vicini { margin: 8px 36px 0; padding: 22px 0 6px; border-top: 1px solid var(--linea); }
.vg .vg-vicini ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vg .vg-vicini a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 13px 15px; border-radius: 16px; background: #fff; border: 1px solid var(--linea); transition: border-color .2s, transform .2s var(--curva); }
.vg .vg-vicini a:hover { border-color: var(--c); transform: translateY(-2px); }
.vg .vg-vicini b { font-family: var(--f-titoli); font-weight: 500; font-size: 17.5px; color: var(--abisso); line-height: 1.2; }
.vg .vg-vicini span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--nebbia); }
.vg .vg-scheda__piede { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 20px 36px 30px; font-size: 13px; color: var(--nebbia); }
.vg .vg-scheda__piede a { color: var(--mare); text-decoration: underline !important; text-underline-offset: 3px; }

/* Pagina singola della scheda */
.vg.vg--pagina { max-width: 1000px; padding-top: 8px; }
.vg .vg-scheda--pagina { background: var(--carta); border-radius: 26px; overflow: hidden; box-shadow: var(--ombra); border: 1px solid rgba(18, 48, 58, .06); }

/* ---------- Segnaposto e finestre della mappa ---------- */
.vg-pin { position: relative; width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c, #0F6F7C); border: 2.5px solid #fff; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); display: grid; place-items: center; transition: transform .2s var(--curva, ease); }
.vg-pin svg { width: 18px; height: 18px; transform: rotate(45deg); color: #fff; }
.vg-pin.is-attivo, .leaflet-marker-icon:hover .vg-pin { transform: rotate(-45deg) scale(1.22); }
.leaflet-marker-icon.vg-pin-box { background: none; border: 0; }
.vg .leaflet-container { font-family: var(--f-testo); background: #E8E4DA; }
.vg .leaflet-tile-pane { filter: saturate(.6) sepia(.1) brightness(1.03) contrast(.97); }
.vg .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .45); }
.vg .leaflet-popup-content { margin: 14px 16px; min-width: 190px; }
.vg .vg-pop__cat { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nebbia); }
.vg .vg-pop__nome { display: block; margin: 4px 0 10px; font-family: var(--f-titoli); font-size: 19px; line-height: 1.15; color: var(--abisso); }
.vg .vg-pop__apri { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--abisso); color: #FFF8EC; font-size: 13px; font-weight: 700; }
.vg .vg-pop__apri:hover { background: var(--mare); color: #fff; }
.vg .leaflet-control-attribution { font-size: 10.5px; background: rgba(255, 255, 255, .8); }
.vg .leaflet-control-zoom a { color: var(--abisso); }

/* Avviso «link copiato» */
.vg-avviso { position: fixed; left: 50%; bottom: 28px; z-index: 100000; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: #0A1D24; color: #FFF8EC; font: 700 14px/1 "VG Hanken", system-ui, sans-serif; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; pointer-events: none; }
.vg-avviso.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Schermi medi e piccoli ---------- */
@media (max-width: 1099px) {
	.vg .vg-corpo--mappa { display: block; }
	.vg .vg-vista { display: inline-flex; }
	.vg .vg-mappa-box { display: none; position: static; }
	.vg.is-mappa .vg-mappa-box { display: block; }
	.vg.is-mappa .vg-lista { display: none; }
	.vg .vg-mappa { height: 72vh; height: 72dvh; min-height: 420px; }
}
@media (max-width: 820px) {
	.vg { padding-top: 12px; }
	.vg .vg-intro { grid-template-columns: 1fr; gap: 18px; padding-top: 26px; }
	.vg .vg-numeri { justify-content: flex-start; gap: 8px 22px; }
	.vg .vg-numeri strong { font-size: 32px; }
	.vg .vg-scheda__griglia { grid-template-columns: 1fr; padding: 22px 22px 6px; }
	.vg .vg-scheda__testa { padding: 24px 22px 4px; }
	.vg .vg-azioni { padding: 16px 22px 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.vg .vg-azioni::-webkit-scrollbar { display: none; }
	.vg .vg-vicini { margin: 8px 22px 0; }
	.vg .vg-scheda__piede { padding: 18px 22px 30px; }
	.vg .vg-galleria__binario { aspect-ratio: 4 / 3; }
	.vg .vg-galleria__cartolina { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
	.vg .vg-hero { border-radius: 20px; min-height: 420px; }
	.vg .vg-hero::before { inset: 9px; border-radius: 14px; }
	.vg .vg-bollo { width: 78px; top: 22px; right: 22px; }
	.vg .vg-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
	.vg .vg-chips::-webkit-scrollbar { display: none; }
	.vg .vg-strumenti__riga { gap: 10px; }
	.vg .vg-segmenti { order: -1; width: 100%; }
	.vg .vg-interruttore { height: 40px; }
	.vg .vg-vista { margin-left: auto; }
	.vg .vg-segmenti { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
	.vg .vg-griglia { grid-template-columns: 1fr; gap: 18px; }
	.vg .vg-dialog { width: 100vw; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border-radius: 0; }
	.vg .vg-dialog__scatola { max-height: 100vh; max-height: 100dvh; height: 100%; }
	.vg .vg-dialog[open] { animation: vg-sale .4s var(--curva); }
	.vg .vg-scheda__nome { font-size: 34px; }
	.vg .vg-galleria__freccia { width: 38px; height: 38px; }
	.vg .vg-chiudi { top: 12px; margin: 12px 12px -58px 0; }
}
@keyframes vg-sale { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.vg *, .vg *::before, .vg *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
