/* Il Borgo · Menu — pagina pubblica. Colori e caratteri del sito (Cinzel + Saira Extra Condensed). */
.ibm {
	--ibm-accent: #780002;
	--ibm-gold: #a29279;
	--ibm-rosa: #f1dae2;
	--ibm-text: #6a6a6a;
	--ibm-ink: #333;
	--ibm-paper: #fff;
	--ibm-line: #e7dfd3;
	--ibm-head: "Cinzel", "Trajan Pro", Georgia, serif;
	--ibm-body: "Saira Extra Condensed", "Saira Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
	--ibm-top: 0px;
	font-family: var(--ibm-body);
	color: var(--ibm-ink);
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
}
.ibm *, .ibm *::before, .ibm *::after { box-sizing: border-box; }
.ibm ul, .ibm ol { list-style: none; margin: 0; padding: 0; }
.ibm h2, .ibm h3, .ibm p, .ibm figure { margin: 0; }
.ibm button { font: inherit; color: inherit; cursor: pointer; }
.ibm [hidden] { display: none !important; }

/* ---------- Barra delle sezioni ---------- */
.ibm-nav {
	position: sticky;
	top: var(--ibm-top);
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--ibm-line);
}
.ibm-nav-in {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 16px;
}
.ibm-chips {
	display: flex;
	gap: 6px;
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.ibm-chips::-webkit-scrollbar { display: none; }
.ibm-chips a, .ibm-vchip {
	flex: none;
	font-family: var(--ibm-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ibm-gold);
	padding: 7px 12px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: none;
	white-space: nowrap;
	transition: color .2s, border-color .2s, background .2s;
}
.ibm-chips a:hover, .ibm-chips a.is-on { color: var(--ibm-accent); border-color: var(--ibm-rosa); background: #fff; }
.ibm-chips a.is-on { background: var(--ibm-rosa); }
.ibm-fbtn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid var(--ibm-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--ibm-accent);
	font-size: 17px;
	line-height: 1;
}
.ibm-fbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ibm-fbtn[aria-expanded="true"], .ibm-fbtn.is-active { background: var(--ibm-accent); color: #fff; }
.ibm-fcount {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #fff;
	color: var(--ibm-accent);
	font-size: 13px;
	line-height: 20px;
	text-align: center;
}

/* ---------- Pannello filtri ---------- */
.ibm-filter {
	max-width: 1180px;
	margin: 0 auto;
	padding: 4px 16px 16px;
	max-height: calc(100vh - var(--ibm-top) - 80px);
	overflow-y: auto;
}
.ibm-ftitle { font-size: 18px; color: var(--ibm-text); margin-bottom: 8px; }
.ibm-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ibm-fchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--ibm-line);
	border-radius: 999px;
	background: #fff;
	font-size: 17px;
	line-height: 1;
	transition: background .15s, border-color .15s;
}
.ibm-fchip b {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ibm-rosa);
	color: var(--ibm-accent);
	font-family: var(--ibm-head);
	font-size: 11px;
}
.ibm-fchip[aria-pressed="true"] { background: var(--ibm-accent); border-color: var(--ibm-accent); color: #fff; text-decoration: line-through; text-decoration-thickness: 1px; }
.ibm-fchip[aria-pressed="true"] b { background: #fff; }
.ibm-fveg { padding-left: 12px; }
.ibm-fveg[aria-pressed="true"] { background: #4d6b3c; border-color: #4d6b3c; text-decoration: none; }
.ibm-factions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.ibm-fstatus { flex: 1; color: var(--ibm-text); font-size: 17px; }
.ibm-freset, .ibm-fclose { border: 0; background: none; font-size: 17px; color: var(--ibm-accent); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }

/* ---------- Sezioni con quadro e piatto ---------- */
.ibm-sec { display: grid; grid-template-columns: minmax(0, 1fr); scroll-margin-top: calc(var(--ibm-top) + 70px); }
.ibm-sec + .ibm-sec { margin-top: 56px; }
.ibm-menu > .ibm-sec:first-of-type, .ibm-nav + .ibm-sec { margin-top: 40px; }
.ibm-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.ibm-head { text-align: center; margin-bottom: 22px; }
.ibm-h2 {
	font-family: var(--ibm-head) !important;
	font-size: clamp(26px, 3vw, 30px) !important;
	font-weight: 600 !important;
	letter-spacing: -.04em;
	text-transform: uppercase;
	color: var(--ibm-gold) !important;
	line-height: 1.15 !important;
}
.ibm-h3 {
	font-family: var(--ibm-head);
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ibm-gold);
	margin-bottom: 14px;
	text-align: center;
}
.ibm-nota { margin-top: 4px; font-size: 17px; color: var(--ibm-text); font-style: italic; }

.ibm-art { position: relative; overflow: hidden; background: #f4efe8; }
.ibm .ibm-art .ibm-art-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ibm-art figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 12px 8px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
	color: #fff;
	font-size: 14px;
	font-style: italic;
	letter-spacing: .02em;
}

@media (min-width: 1025px) {
	.ibm-sec--art2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
	.ibm-sec--art1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.ibm-sec--art1.ibm-sec--alt { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
	.ibm-sec--art1.ibm-sec--alt .ibm-art { order: -1; }
	.ibm-sec--art2 .ibm-main, .ibm-sec--art1 .ibm-main { padding: 0 clamp(20px, 3vw, 44px); align-self: center; }
	.ibm-sec .ibm-art { min-height: 380px; }
	.ibm-sec .ibm-art .ibm-art-img {
		position: sticky;
		top: calc(var(--ibm-top) + 64px);
		height: min(100%, calc(100vh - var(--ibm-top) - 64px));
		min-height: 380px;
	}
	.ibm-sec .ibm-art { display: flex; flex-direction: column; overflow: visible; }
	.ibm-sec .ibm-art figcaption { position: sticky; bottom: 0; margin-top: auto; }
}
@media (max-width: 1024px) {
	.ibm-sec--art2 { grid-template-columns: 1fr 1fr; gap: 0; }
	.ibm-sec--art2 .ibm-main { grid-column: 1 / -1; order: 3; margin-top: 26px; }
	.ibm-sec .ibm-art { aspect-ratio: 4 / 3; position: relative; }
	.ibm .ibm-sec .ibm-art .ibm-art-img { position: absolute; inset: 0; }
	.ibm-sec--art1 .ibm-art { order: -1; aspect-ratio: 16 / 9; margin-bottom: 26px; }
}
@media (max-width: 600px) {
	.ibm-sec--art2 .ibm-art { aspect-ratio: 3 / 4; max-height: 260px; width: 100%; }
}

/* ---------- Voci ---------- */
.ibm-item { padding: 12px 0 14px; transition: opacity .25s; }
.ibm-item + .ibm-item { border-top: 1px solid #f3eee6; }
.ibm-item.is-hidden { display: none; }
.ibm-alls { display: inline-flex; flex-wrap: wrap; gap: 0; margin-bottom: 4px; border: 1px dotted var(--ibm-rosa); padding: 1px 4px; }
.ibm-a {
	position: relative;
	font-family: var(--ibm-head);
	font-size: 13px;
	font-weight: 600;
	color: var(--ibm-gold);
	padding: 0 3px;
	cursor: help;
	outline: none;
}
.ibm-a::after {
	content: attr(data-name);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translate(-50%, 4px);
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--ibm-ink);
	color: #fff;
	font-family: var(--ibm-body);
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s, transform .15s;
	z-index: 5;
}
.ibm-a:hover::after, .ibm-a:focus::after { opacity: 1; transform: translate(-50%, 0); }
.ibm-a.is-hit { color: #fff; background: var(--ibm-accent); border-radius: 2px; text-decoration: line-through; }
.ibm-top { display: flex; align-items: baseline; gap: 8px; }
.ibm-name {
	font-family: var(--ibm-body) !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	color: var(--ibm-accent) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	min-width: 0;
}
.ibm-star { color: var(--ibm-gold); margin-left: 2px; }
.ibm-dots { flex: 1; min-width: 20px; border-bottom: 1px dotted #b9ab95; transform: translateY(-5px); }
.ibm-price { flex: none; font-size: 20px; color: var(--ibm-gold); white-space: nowrap; }
.ibm-price small { font-size: 15px; color: var(--ibm-text); }
.ibm-desc { margin-top: 3px; font-size: 16px; color: var(--ibm-text); line-height: 1.4; }
.ibm-fmts { margin-top: 5px; font-size: 16px; color: var(--ibm-text); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ibm-fmts b { font-weight: 400; color: var(--ibm-gold); }
.ibm-fmts i { font-style: normal; color: var(--ibm-gold); }
.ibm-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.ibm-tag { font-size: 14px; letter-spacing: .03em; padding: 1px 9px; border-radius: 999px; border: 1px solid currentColor; color: var(--ibm-gold); line-height: 1.5; }
.ibm-tag--veg { color: #4d6b3c; }
.ibm-item.is-gf .ibm-tag--gf { background: var(--ibm-gold); border-color: var(--ibm-gold); color: #fff; }
.ibm-empty { padding: 14px 16px; background: #faf6f0; color: var(--ibm-text); font-size: 17px; text-align: center; }

/* ---------- Bevande ---------- */
.ibm-bev { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 36px 20px 30px; background: #faf6f0; }
.ibm-bev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.ibm-bev .ibm-name { font-size: 22px !important; }
.ibm-link {
	display: inline-flex;
	gap: 6px;
	margin-top: 14px;
	font-family: var(--ibm-head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ibm-accent) !important;
	text-decoration: none !important;
	border-bottom: 1px solid var(--ibm-rosa);
	padding-bottom: 2px;
}
.ibm-link:hover { border-color: var(--ibm-accent); }
.ibm-bev > .ibm-link { display: flex; width: max-content; margin: 22px auto 0; }

/* ---------- Fondo ---------- */
.ibm-foot { max-width: 760px; margin: 56px auto 0; padding: 0 20px 30px; color: var(--ibm-text); font-size: 16px; text-align: center; }
.ibm-legenda { text-align: left; border-top: 1px solid var(--ibm-line); border-bottom: 1px solid var(--ibm-line); margin-bottom: 26px; }
.ibm-legenda summary {
	cursor: pointer;
	padding: 14px 0;
	font-family: var(--ibm-head);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--ibm-gold);
	list-style: none;
	display: flex;
	justify-content: space-between;
}
.ibm-legenda summary::-webkit-details-marker { display: none; }
.ibm-legenda summary::after { content: "+"; font-family: var(--ibm-body); font-size: 22px; line-height: 1; }
.ibm-legenda[open] summary::after { content: "–"; }
.ibm-legenda ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 26px; padding-bottom: 18px; }
.ibm-legenda li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
.ibm-legenda li b {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px dotted var(--ibm-gold);
	font-family: var(--ibm-head);
	font-size: 12px;
	color: var(--ibm-gold);
}
.ibm-legenda strong { color: var(--ibm-accent); font-weight: 400; }
.ibm-note p, .ibm-avviso p { margin: 0 0 8px; }
.ibm-note { margin-bottom: 14px; font-size: 17px; }
.ibm-note--small { font-size: 15px; }
.ibm-avviso { font-size: 15px; line-height: 1.45; padding: 14px 18px; border: 1px dotted var(--ibm-rosa); }
.ibm-firma {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	font-size: 14px;
	letter-spacing: .03em;
	color: #8c8c8c !important;
	text-decoration: none !important;
	opacity: .85;
	transition: opacity .2s;
}
.ibm-firma:hover { opacity: 1; }
.ibm-firma svg { width: 104px; height: auto; display: block; }

/* ---------- Carta dei vini ---------- */
.ibm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ibm .ibm-vchip { font-family: var(--ibm-head); font-size: 13px; font-weight: 600; }
.ibm-vini .ibm-vchip { display: inline-flex; align-items: center; gap: 7px; border-color: var(--ibm-line); background: #fff; }
.ibm-vini .ibm-vchip[aria-pressed="true"] { background: var(--ibm-accent); border-color: var(--ibm-accent); color: #fff; }
.ibm-vini .ibm-chips { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; justify-content: center; overflow: visible; }
.ibm-vtipo i, .ibm-vchip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ibm-cantina { max-width: 900px; margin: 48px auto 0; padding: 0 20px; scroll-margin-top: calc(var(--ibm-top) + 70px); }
.ibm-cantina.is-hidden { display: none; }
.ibm-chead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--ibm-line); }
.ibm .ibm-clogo-img { display: block; max-width: 220px; max-height: 90px; width: auto; height: auto; object-fit: contain; }
.ibm-luogo { margin-top: 2px; font-size: 17px; color: var(--ibm-gold); letter-spacing: .04em; }
.ibm-cdesc { margin: 8px auto 0; max-width: 620px; font-size: 17px; color: var(--ibm-text); line-height: 1.45; }
.ibm-csito { display: inline-block; margin-top: 8px; font-size: 16px; color: var(--ibm-accent) !important; }
.ibm-vino { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid #f3eee6; }
.ibm-vino.no-img { grid-template-columns: minmax(0, 1fr); }
.ibm-vino.is-hidden { display: none; }
.ibm-bott { display: flex; justify-content: center; align-items: flex-start; }
.ibm .ibm-bott-img { width: 100%; max-width: 64px; height: 150px; object-fit: contain; object-position: top center; mix-blend-mode: multiply; }
.ibm-vmeta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 4px; }
.ibm-vtipo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ibm-text); letter-spacing: .04em; text-transform: uppercase; }
.ibm-uva { font-family: var(--ibm-head); font-size: 12px; font-weight: 600; color: var(--ibm-gold); border: 1px dotted var(--ibm-rosa); padding: 1px 7px; }
.ibm-annata { color: var(--ibm-gold); }
.ibm-den { font-size: 16px; color: var(--ibm-text); white-space: nowrap; }
.ibm-vini .ibm-desc { font-size: 16px; }

@media (max-width: 600px) {
	.ibm-name { font-size: 22px !important; }
	.ibm-nav-in { padding: 8px 12px; gap: 8px; }
	.ibm-fbtn span { display: none; }
	.ibm-fbtn { padding: 8px 10px; }
	.ibm-vino { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
	.ibm .ibm-bott-img { height: 120px; }
	.ibm-legenda ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ibm * { transition: none !important; } }
