/* Banner cookie Enoteca Pinchiorri - ExtremHex, novembre 2026 */
.ep-cc { position: fixed; z-index: 99999; left: 16px; bottom: 16px; width: 440px; max-width: calc(100% - 32px);
	background: #fff; color: #333; box-shadow: 0 10px 40px rgba(0,0,0,.25); border-top: 3px solid #AC9970;
	font-size: 14px; line-height: 1.55; padding: 20px 20px 18px; box-sizing: border-box;
	transform: translateY(12px); opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.ep-cc.ep-cc-vis { transform: none; opacity: 1; }
.ep-cc[hidden], .ep-cc-ribbon[hidden], .ep-cc-pref[hidden] { display: none !important; }
.ep-cc-tit { margin: 0 32px 8px 0; font-size: 16px; font-weight: 600; letter-spacing: .04em; color: #1D1F20; }
.ep-cc p { margin: 0 0 12px; color: #444; }
.ep-cc a { color: #7A6A45; text-decoration: underline !important; }
.ep-cc-x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: transparent;
	font-size: 26px; line-height: 40px; color: #555; cursor: pointer; padding: 0; }
.ep-cc-x:hover, .ep-cc-x:focus { color: #000; }
.ep-cc-pref { margin: 4px 0 14px; border-top: 1px solid #eee; }
.ep-cc-cat { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.ep-cc-cat-testo { flex: 1; }
.ep-cc-cat-testo strong { display: block; color: #1D1F20; font-size: 14px; }
.ep-cc-cat-testo span { font-size: 13px; color: #666; }
.ep-cc-sw { position: relative; flex: 0 0 46px; width: 46px; height: 26px; margin-top: 2px; }
.ep-cc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ep-cc-sw span { position: absolute; inset: 0; border-radius: 13px; background: #ccc; transition: background .2s; }
.ep-cc-sw span:after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ep-cc-sw input:checked + span { background: #8e854b; }
.ep-cc-sw input:checked + span:after { transform: translateX(20px); }
.ep-cc-sw input:disabled + span { opacity: .6; }
.ep-cc-sw input:focus-visible + span { outline: 2px solid #1D1F20; outline-offset: 2px; }
.ep-cc-azioni { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-cc-btn { flex: 1 1 0; min-height: 44px; padding: 0 14px; border: 1px solid #1D1F20; background: #fff; color: #1D1F20;
	font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ep-cc-btn:hover, .ep-cc-btn:focus { background: #f2efe8; }
.ep-cc-btn-pieno { background: #1D1F20; color: #fff; }
.ep-cc-btn-pieno:hover, .ep-cc-btn-pieno:focus { background: #000; }
.ep-cc-btn-link { flex: 0 0 100%; min-height: 36px; border: 0; background: transparent; color: #7A6A45; text-decoration: underline; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ep-cc-btn-link:hover, .ep-cc-btn-link:focus { background: transparent; color: #5E5133; }
/* ribbon laterale per riaprire le preferenze */
.ep-cc-ribbon { position: fixed; z-index: 99998; left: 0; bottom: 110px; padding: 12px 7px; border: 0; cursor: pointer;
	background: #AC9970; color: #fff; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 0 4px 4px 0; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: .85; transition: opacity .2s, padding .2s; }
.ep-cc-ribbon:hover, .ep-cc-ribbon:focus { opacity: 1; padding-right: 10px; }
@media (max-width: 480px) {
	.ep-cc { left: 0; bottom: 0; width: 100%; max-width: 100%; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
	.ep-cc-btn { flex: 1 1 calc(50% - 4px); }
	.ep-cc-ribbon { bottom: 90px; font-size: 11px; padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) { .ep-cc { transition: none; } }
