/* GSNT – Gestione cookie */
.gsnt-ck { --gsnt-ck-accent: #3F6B16; position: fixed; z-index: 99999; left: 0; right: 0; bottom: 0; padding: 12px; box-sizing: border-box; font-size: 15px; line-height: 1.5; font-family: inherit; color: #1D2416; pointer-events: none; }
.gsnt-ck *, .gsnt-ck *::before, .gsnt-ck *::after { box-sizing: border-box; }
.gsnt-ck__inner:focus { outline: none; }
.gsnt-ck__inner { position: relative; max-width: 980px; max-height: calc(100vh - 24px); overflow: auto; margin: 0 auto; padding: 20px 22px 18px; border-radius: 16px; background: #FFFFFF; border-top: 4px solid var(--gsnt-ck-accent); box-shadow: 0 10px 40px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: auto; }
.gsnt-ck--box { left: auto; right: auto; width: 440px; max-width: 100%; }
.gsnt-ck__title { margin: 0 32px 6px 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.gsnt-ck__text { margin: 0 0 6px; }
.gsnt-ck__text--short { display: none; }
.gsnt-ck__links { margin: 0 0 12px; font-size: 14px; }
.gsnt-ck__links a { color: var(--gsnt-ck-accent); text-decoration: underline; }
.gsnt-ck .gsnt-ck__x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; color: #555; cursor: pointer; }
.gsnt-ck .gsnt-ck__x:hover, .gsnt-ck .gsnt-ck__x:focus-visible { background: #F0F2EC; color: #000; }
.gsnt-ck__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; }
/* Accetta e Rifiuta hanno lo stesso peso, come chiede il Garante. */
.gsnt-ck .gsnt-ck__btn { flex: 0 1 auto; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--gsnt-ck-accent); font: inherit; font-weight: 700; cursor: pointer; }
.gsnt-ck .gsnt-ck__btn--solid, .gsnt-ck .gsnt-ck__btn--line { background: var(--gsnt-ck-accent); color: #FFFFFF; }
.gsnt-ck .gsnt-ck__btn--ghost { background: #FFFFFF; color: var(--gsnt-ck-accent); }
.gsnt-ck__btn:hover { filter: brightness(1.1); }
.gsnt-ck__btn:focus-visible, .gsnt-ck__x:focus-visible, .gsnt-ck-fab:focus-visible, .gsnt-ck__switch input:focus-visible + .gsnt-ck__slider { outline: 3px solid #F2B705; outline-offset: 2px; }
.gsnt-ck__prefs { margin: 6px 0 0; border-top: 1px solid #E3E7DC; }
.gsnt-ck__prefs[hidden] { display: none; }
.gsnt-ck__cat { padding: 12px 0; border-bottom: 1px solid #E3E7DC; }
.gsnt-ck__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gsnt-ck__cat-label { font-weight: 700; }
.gsnt-ck__always { font-size: 13px; font-weight: 700; color: var(--gsnt-ck-accent); }
.gsnt-ck__cat-desc { margin: 4px 0 0; font-size: 14px; color: #4A5242; }
.gsnt-ck__cat-svc { margin: 4px 0 0; font-size: 13px; color: #6B7360; }
.gsnt-ck__switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: 0 0 auto; }
.gsnt-ck__switch[hidden] { display: none; }
.gsnt-ck__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.gsnt-ck__slider { position: absolute; inset: 0; border-radius: 999px; background: #B9BFB0; transition: background .15s; }
.gsnt-ck__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.gsnt-ck__switch input:checked + .gsnt-ck__slider { background: var(--gsnt-ck-accent); }
.gsnt-ck__switch input:checked + .gsnt-ck__slider::after { transform: translateX(20px); }

/* Pulsante per cambiare idea */
.gsnt-ck-fab { --gsnt-ck-accent: #3F6B16; position: fixed; z-index: 9998; left: 14px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--gsnt-ck-accent); box-shadow: 0 3px 12px rgba(0, 0, 0, .22); cursor: pointer; opacity: .85; }
.gsnt-ck-fab:hover { opacity: 1; }
.gsnt-ck-fab[hidden] { display: none; }

/* Segnaposto dei contenuti bloccati (video, podcast, post dei social) */
iframe[data-gsnt-src] { display: none !important; }
.gsnt-ck-ph { --gsnt-ck-accent: #3F6B16; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 180px; aspect-ratio: 16 / 9; margin: 0 0 1em; padding: 18px; box-sizing: border-box; border-radius: 12px; background: repeating-linear-gradient(135deg, #F1F3EC 0 14px, #E9ECE2 14px 28px); color: #1D2416; font-size: 15px; line-height: 1.45; font-family: inherit; text-align: center; }
/* Dentro i blocchi Incorpora il segnaposto prende il posto del riquadro 16:9 del video. */
.wp-block-embed__wrapper:has(> .gsnt-ck-ph)::before { display: none !important; }
.wp-block-embed__wrapper > .gsnt-ck-ph { margin: 0; }
.gsnt-ck-ph__in { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 460px; }
.gsnt-ck-ph__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gsnt-ck-ph .gsnt-ck-ph__btns button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--gsnt-ck-accent); font: inherit; font-weight: 700; cursor: pointer; }
.gsnt-ck-ph .gsnt-ck-ph__ok { background: var(--gsnt-ck-accent); color: #FFFFFF; }
.gsnt-ck-ph .gsnt-ck-ph__prefs { background: #FFFFFF; color: var(--gsnt-ck-accent); }

/* Tabella per la cookie policy */
.gsnt-ck-table-wrap { overflow-x: auto; }
.gsnt-ck-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.gsnt-ck-table th, .gsnt-ck-table td { padding: 8px 10px; border-bottom: 1px solid #E3E7DC; text-align: left; vertical-align: top; }
.gsnt-ck-table th { background: #F1F3EC; }

@media (max-width: 600px) {
	.gsnt-ck { padding: 8px; font-size: 14px; }
	.gsnt-ck__inner { padding: 16px 16px 14px; border-radius: 14px; }
	.gsnt-ck__title { font-size: 17px; }
	.gsnt-ck__btns { justify-content: stretch; }
	.gsnt-ck .gsnt-ck__btn { flex: 1 1 calc(50% - 10px); padding: 0 12px; }
	/* Phone: short text, Rifiuta and Accetta side by side (same weight), "Personalizza" as a small link under them. */
	.gsnt-ck__inner { padding: 14px 14px 10px; }
	.gsnt-ck__title { margin-bottom: 4px; font-size: 16px; }
	.gsnt-ck__text--long { display: none; }
	.gsnt-ck__text--short { display: block; }
	.gsnt-ck__prefs:not([hidden]) ~ .gsnt-ck__btns .gsnt-ck__btn--ghost { border: 2px solid var(--gsnt-ck-accent); text-decoration: none; min-height: 44px; }
	.gsnt-ck__links { margin-bottom: 8px; font-size: 13px; }
	.gsnt-ck__btns { margin-top: 8px; gap: 8px; }
	.gsnt-ck .gsnt-ck__btn--ghost { flex-basis: 100%; order: 2; min-height: 34px; border: 0; background: transparent; font-size: 14px; text-decoration: underline; }
	.gsnt-ck-ph { aspect-ratio: auto !important; padding: 16px 12px; font-size: 14px; }
	.gsnt-ck-ph .gsnt-ck-ph__btns button { min-height: 38px; padding: 0 12px; }
}
@media (min-width: 601px) {
	.gsnt-ck--box { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .gsnt-ck__slider, .gsnt-ck__slider::after { transition: none; } }
