/* Banner e pannello del consenso cookie. Usa i token di style.css. */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: grid; gap: 16px; padding: 22px 20px 20px; background: var(--white, #fff); color: var(--ink, #12222b); border: 1px solid var(--line, #d3dad8); border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font-family: var(--sans, sans-serif); font-size: 14px; line-height: 1.55; max-height: calc(100svh - 24px); overflow-y: auto; }
@media (min-width: 900px) { .cookie-banner { left: 50%; right: auto; bottom: 20px; width: min(1080px, calc(100vw - 40px)); transform: translateX(-50%); grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 24px 56px 24px 28px; } }
.cookie-banner__titolo { font-family: var(--serif, serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0 0 6px; padding-right: 36px; }
/* Banner chiaro con i tre pulsanti scuri di pari peso (redesign Figma, componente Cookie/Banner) */
.cookie-banner p { margin: 0; color: var(--mute, #566870); }
.cookie-banner a { color: var(--sea, #1b4a5e); }
.cookie-banner__azioni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 420px) { .cookie-banner__azioni { grid-template-columns: 1fr; } }
.cookie-btn { min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--ink, #12222b); background: var(--ink, #12222b); color: var(--white, #fff); font: 600 14px/1.2 var(--sans, sans-serif); cursor: pointer; white-space: nowrap; }
.cookie-btn:hover { background: var(--sea, #1b4a5e); border-color: var(--sea, #1b4a5e); }
.cookie-btn:focus-visible, .cookie-x:focus-visible, .cookie-switch input:focus-visible + span { outline: 2px solid var(--sea, #1b4a5e); outline-offset: 3px; }
.cookie-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.cookie-x:hover { background: var(--paper, #eef1ef); }

.cookie-pannello { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 12px; }
.cookie-pannello[hidden] { display: none; }
.cookie-pannello__sfondo { position: absolute; inset: 0; background: rgba(6, 13, 17, .7); }
.cookie-pannello__box { position: relative; width: min(560px, 100%); max-height: calc(100svh - 24px); overflow-y: auto; background: var(--white, #fff); color: var(--ink, #12222b); border-radius: 6px; padding: 30px 24px 24px; font-family: var(--sans, sans-serif); font-size: 15px; line-height: 1.55; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
@media (min-width: 600px) { .cookie-pannello__box { padding: 36px 36px 30px; } }
.cookie-pannello__box:focus { outline: none; }
.cookie-pannello .cookie-x:focus-visible, .cookie-pannello .cookie-btn:focus-visible, .cookie-pannello .cookie-switch input:focus-visible + span { outline-color: var(--sea, #1b4a5e); }
.cookie-pannello__titolo { font-family: var(--serif, serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 8px; }
.cookie-pannello__intro { color: var(--mute, #566870); margin: 0 0 18px; }
.cookie-pannello a { color: var(--sea, #1b4a5e); }
.cookie-cat { border-top: 1px solid var(--line, #d3dad8); padding: 16px 0; }
.cookie-cat__testa { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-cat h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cookie-cat p { margin: 6px 0 0; font-size: 14px; color: var(--mute, #566870); }
.cookie-sempre { font-size: 13px; color: var(--sea, #1b4a5e); font-weight: 500; }
.cookie-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: 0 0 auto; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c4cdd0; transition: background-color .2s; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.cookie-switch input:checked + span { background: var(--sea, #1b4a5e); }
.cookie-switch input:checked + span::after { transform: translateX(22px); }
.cookie-pannello__azioni { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 520px) { .cookie-pannello__azioni { grid-template-columns: repeat(3, 1fr); } }
.cookie-pannello .cookie-btn { white-space: normal; }
html.cookie-bloccato { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-entra .35s ease-out both; }
}
@keyframes cookie-entra { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  @keyframes cookie-entra { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
}
