/* =====================================================================
   Tarot.it – foglio di stile principale (sito statico, senza WordPress)
   Palette ricavata dal tema precedente: blu #034999 / #325EB6,
   rosa #EF265D / #E94CBF, giallo #FFEE18.
   ===================================================================== */

:root {
  --blu: #034999;
  --blu-2: #325EB6;
  --blu-3: #344FB7;
  --blu-scuro: #0D3281;
  --rosa: #EF265D;
  --rosa-2: #E94CBF;
  --fucsia: #C314B6;
  --giallo: #FFEE18;
  --giallo-2: #FEFC8B;
  --ciano: #16F1FA;
  --testo: #3B3A3A;
  --testo-2: #413333;
  --bianco: #ffffff;
  --nero: #111111;
  --font: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  --radius: 6px;
  --ombra: 0 6px 20px rgba(0, 0, 0, .12);
}

/* Se vuoi usare Roboto self-hosted, metti i file in /fonts e togli il commento:
@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(../../fonts/roboto-400.woff2) format("woff2")}
@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:url(../../fonts/roboto-500.woff2) format("woff2")}
@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:url(../../fonts/roboto-700.woff2) format("woff2")}
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--testo);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rosa); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--giallo); color: #000; padding: 8px 14px; border-radius: 4px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.center { text-align: center; }

/* ---------- Pulsanti ---------- */
.btn {
  text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 40px; border-radius: 5px; border: 0; cursor: pointer;
  font: 500 1.25rem/1.2 var(--font); color: #fff; background: var(--rosa);
  text-decoration: none; transition: background .25s, transform .15s, box-shadow .25s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.btn:hover, .btn:focus-visible { text-decoration: none; background: #34385A; color: #fff; transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.btn--rosa2 { background: var(--rosa-2); }
.btn--grad { background: linear-gradient(180deg, #34385A 0%, #FB3667 100%); }
.btn--grad:hover, .btn--grad:focus-visible { background: linear-gradient(180deg, #34385A 0%, #959EEA 100%); }
.btn--giallo { background: var(--giallo); color: #191E27; }
.btn--giallo:hover, .btn--giallo:focus-visible { background: #34385A; color: #fff; }
.btn--blu { background: #246098; }
.btn--blu:hover, .btn--blu:focus-visible { background: var(--rosa-2); }
.btn--small { padding: 10px 20px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--blu); color: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.logo { display: block; width: 280px; max-width: 55vw; }
.logo img { width: 100%; height: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; color: #fff; font-weight: 600; font-size: 15px;
  letter-spacing: .6px; border-radius: 4px;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--rosa-2); text-decoration: none; }
.nav a.nav-cta { background: var(--rosa); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--rosa-2); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255, 255, 255, .6); color: #fff;
  border-radius: 6px; padding: 8px 12px; font: 600 15px var(--font); cursor: pointer; align-items: center; gap: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 900px) {
  .site-header .container { min-height: 70px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #023a7a; display: none; box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav a { padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .nav a.nav-cta { margin: 8px 20px; border-radius: 4px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: #e9eef7; }
.hero a { display: block; }
.hero picture, .hero img { width: 100%; }
.hero img { aspect-ratio: 1440 / 520; object-fit: cover; }
@media (max-width: 767px) { .hero img { aspect-ratio: 1 / 1; object-position: 68% 50%; } }

/* ---------- Sezioni ---------- */
.section { padding: 34px 0 28px; }
.section--chiama h2 { font-size: 3.4rem; color: var(--blu-2); margin: 0; text-transform: uppercase; }
.section--chiama .chiama { font-size: 3.4rem; color: var(--rosa); margin-top: -8px; }
.section--chiama .numero { font-size: 5.1rem; color: var(--rosa); margin: -4px 0 0; letter-spacing: 1px; }
.section--chiama .numero a { color: inherit; }
.small-note { font-size: 1.4rem; font-weight: 600; color: var(--testo); margin: 0; }
.small-note--light { font-size: 1.2rem; font-weight: 400; color: var(--testo-2); margin: 0 0 .5em; }
.promo-prima-volta {
  background: var(--giallo); margin: 14px 0; padding: 22px 16px 24px; text-align: center;
}
.promo-prima-volta p { margin: 0; font-weight: 600; color: var(--testo); }
.promo-prima-volta .t1 { font-size: 3rem; line-height: 1.15; }
.promo-prima-volta .t2 { font-size: 2.4rem; line-height: 1.2; }
.pay-bar { width: 250px; margin: 12px auto 0; }
.pay-bar--large { width: 270px; }

@media (max-width: 767px) {
  .section--chiama h2 { font-size: 2.6rem; }
  .section--chiama .chiama { font-size: 3rem; }
  .section--chiama .numero { font-size: 3.4rem; }
  .small-note { font-size: 1.2rem; }
  .small-note--light { font-size: 1.1rem; }
  .promo-prima-volta .t1, .promo-prima-volta .t2 { font-size: 2rem; }
  .btn { font-size: 16px; padding: 14px 28px; }
  .pay-bar { width: 55%; }
  .pay-bar--large { width: 74%; }
}

/* ---------- Operatrici online ---------- */
.section--operatrici {
  background: linear-gradient(180deg, #D9F5F7 39%, #A0B1FF 100%);
  padding: 22px 0 30px;
}
.section--operatrici h2 { font-size: 1.7rem; font-weight: 500; color: #F12121; margin: 0 0 .2em; }
.section--operatrici .sub { color: #3B3939; margin: 0 0 14px; }
.op-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .95rem; margin: 0 0 14px; color: #2b2b2b; }
.op-legend li { display: inline-flex; align-items: center; gap: 6px; }
.op-heart { width: 16px; height: 16px; flex: none; fill: #9aa0a6; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.op--libera .op-heart, .op-legend .libera .op-heart { fill: #22a447; }
.op--occupata .op-heart, .op-legend .occupata .op-heart { fill: #e4262b; }
.op--pausa .op-heart, .op-legend .pausa .op-heart { fill: #f59e0b; }
.op-board {
  background: rgba(255, 255, 255, .72); border-radius: 12px; padding: 16px 18px 12px;
  box-shadow: var(--ombra); text-align: left; backdrop-filter: blur(2px);
}
.op-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.op-status { font-size: .9rem; color: #34385A; display: inline-flex; align-items: center; gap: 8px; }
.op-status .live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22a447; box-shadow: 0 0 0 0 rgba(34,164,71,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,164,71,.6);} 70% { box-shadow: 0 0 0 8px rgba(34,164,71,0);} 100% { box-shadow: 0 0 0 0 rgba(34,164,71,0);} }
.op-status.is-error .live-dot { background: #e4262b; animation: none; }
.op-filter { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; user-select: none; color: #1f2937; }
.op-filter input { width: 18px; height: 18px; accent-color: var(--blu-2); margin: 0; }
.op-group { margin: 6px 0 14px; }
.op-group h3 { font-size: 1.05rem; color: var(--blu-scuro); margin: 0 0 8px; padding-bottom: 4px; border-bottom: 2px solid rgba(13,50,129,.15); }
.op-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; }
.op {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
  background: #fff; font-size: .95rem; color: #1f2937; border: 1px solid rgba(0,0,0,.06);
  transition: opacity .3s, transform .3s;
}
.op b { font-weight: 700; color: var(--blu-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.op--libera { border-color: rgba(34,164,71,.35); background: #f3fbf5; }
.op--offline { opacity: .55; }
.op-board.only-free .op:not(.op--libera) { display: none; }
.op-empty { color: #6b7280; font-style: italic; padding: 6px 0; }
.op-skeleton .op { background: linear-gradient(90deg,#eee 25%,#f7f7f7 50%,#eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
.op-hint { font-size: .9rem; color: #34385A; margin: 10px 0 0; }
.op-hint a { font-weight: 700; }
@media (max-width: 767px) { .op-list { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); } .op-board { padding: 12px; } }

/* ---------- Ricarica online ---------- */
.section--ricarica { border-top: 2.2px solid var(--rosa); padding: 30px 0 22px; }
.section--ricarica h2 { font-size: 3.4rem; color: var(--blu-2); margin: 0; text-transform: uppercase; }
.section--ricarica .t2 { font-size: 2.3rem; color: var(--rosa-2); margin: -8px 0 0; }
.section--ricarica .t3 { font-size: 2.3rem; color: var(--rosa-2); margin: -6px 0 6px; }
@media (max-width: 767px) { .section--ricarica h2 { font-size: 2.6rem; } .section--ricarica .t2, .section--ricarica .t3 { font-size: 2rem; } }

/* ---------- Testo di presentazione (sfondo carte) ---------- */
.section--intro {
  position: relative; color: #fff; padding: 34px 0;
  background: #1a1440 url("../../img/bckgnd-Cards-Tarot_IT-Testo-1155x771-1.jpg") center/cover no-repeat;
}
.section--intro::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.section--intro .container { position: relative; }
.section--intro h2 { font-size: 2.8rem; color: var(--ciano); }
.section--intro p { font-size: 1.35rem; line-height: 1.55; max-width: 980px; margin: 0 auto; }
.section--intro a { color: #FF7FA8; font-weight: 700; white-space: nowrap; }
@media (max-width: 767px) { .section--intro h2 { font-size: 2.2rem; } .section--intro p { font-size: 1.15rem; } }

/* ---------- Appuntamenti ---------- */
.section--appuntamenti { border-top: 4px solid #098BCA; border-bottom: 4px solid #098BCA; padding: 26px 0 22px; }
.section--appuntamenti h2 { font-size: 3.4rem; color: var(--rosa); margin: 0; text-transform: uppercase; }
.section--appuntamenti .divider { height: 2.2px; background: var(--rosa); margin: 6px auto 12px; }
.section--appuntamenti .t2 { font-size: 2.3rem; color: #191E27; margin: 0; }
.section--appuntamenti .sub { font-size: 1.5rem; color: var(--testo-2); margin: 0 0 .4em; }
@media (max-width: 767px) { .section--appuntamenti h2 { font-size: 2.6rem; } .section--appuntamenti .t2 { font-size: 2rem; } .section--appuntamenti .sub { font-size: 1.2rem; } }

/* ---------- Minuti gratis ---------- */
.section--gratis {
  background: linear-gradient(180deg, #24F6FF 34%, #074665 100%); border-bottom: 4px solid var(--rosa);
  padding: 30px 0; text-align: center;
}
.section--gratis h2 { font-size: 2.6rem; color: #191E27; margin: 0 0 .5em; text-transform: uppercase; }
@media (max-width: 767px) { .section--gratis h2 { font-size: 2.2rem; } }

/* ---------- Servizio clienti + contatti ---------- */
.section--clienti {
  position: relative; color: #fff; padding: 20px 0 40px;
  background: #11143a url("../../img/bckgnd-Cards-Tarot_IT-Testo-1155x771-1.jpg") center/cover fixed no-repeat;
}
@media (max-width: 1024px) { .section--clienti { background-attachment: scroll; } }
.section--clienti::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .83); }
.section--clienti .container { position: relative; }
.section--clienti h2 { font-size: 3.3rem; color: #BEECFF; margin: 0; }
.section--clienti .divider { height: 2.2px; background: #BEECFF; margin: 4px 0 16px; }
.section--clienti .lead { font-size: 1.6rem; font-weight: 500; margin: 0 0 1em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.check-list li { position: relative; padding-left: 34px; margin: 10px 0; font-size: 16px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23034999' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.phone-box { background: #FFD1F6; color: var(--blu-3); border-radius: 8px; padding: 10px 16px; margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; }
.phone-box a { color: var(--blu-3); font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: 1px; }
.phone-box svg { width: 40px; height: 40px; fill: var(--blu-3); }
.phone-box .lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: -4px; }
.arrow-list li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 16px; font-weight: 500; text-shadow: 0 0 10px rgba(0,0,0,.3); }
.arrow-list li::before { content: "➤"; position: absolute; left: 0; font-size: 12px; top: 3px; }
.contact-note { font-size: 15px; font-weight: 600; }
@media (max-width: 767px) {
  .grid-2 { grid-template-columns: 1fr; gap: 10px; }
  .section--clienti h2 { font-size: 28px; }
  .section--clienti .lead { font-size: 1.25rem; }
  .phone-box a { font-size: 34px; }
}

/* ---------- Form contatti ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; color: #e5e7eb; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid #cbd5e1; font: 16px var(--font);
  color: #111; background: #fff;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--giallo); border-color: var(--giallo); }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: #e5e7eb; }
.form .consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blu-2); }
.form .consent a { color: #BEECFF; text-decoration: underline; }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { padding: 12px 14px; border-radius: 6px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #d1fae5; color: #065f46; }
.form-msg.err { display: block; background: #fee2e2; color: #991b1b; }
.form .field-err { border-color: #ef4444 !important; }
.form .err-text { font-size: 13px; color: #fecaca; margin-top: 4px; display: none; }
.form .field-err + .err-text { display: block; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { color: #fff; }
.footer-widgets { background: linear-gradient(180deg, #0D3281 0%, #C314B6 100%); padding: 56px 0 50px; }
.footer-widgets .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-widgets h2 {
  font: 600 1.4em/1.3 var(--font); text-transform: uppercase; letter-spacing: 1.4px;
  border-left: 3px solid var(--giallo); padding-left: 15px; margin-bottom: 14px; text-shadow: 0 0 10px rgba(0,0,0,.3);
}
.footer-widgets li { margin: 6px 0; }
.footer-widgets li a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.footer-widgets li a::before { content: "›"; font-size: 1.1em; }
.footer-widgets li a:hover { color: #ff7f50; text-decoration: none; }
.footer-widgets p { line-height: 1.6; margin: 0; }
.footer-widgets .warn { font-weight: 700; }
.footer-bottom { background: #0b1e4d; font-size: 12px; text-align: center; padding: 16px 0; line-height: 1.6; }
.footer-bottom a { color: #BEECFF; }
.footer-bottom button.link { background: none; border: 0; color: #BEECFF; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
@media (max-width: 1024px) { .footer-widgets .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-widgets .container { grid-template-columns: 1fr; } .footer-widgets { padding: 40px 0 30px; } }

/* ---------- Torna su ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blu); color: #fff; border: 0; cursor: pointer; display: none; align-items: center; justify-content: center;
  box-shadow: var(--ombra); z-index: 90;
}
.to-top.is-visible { display: inline-flex; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pagina appuntamenti ---------- */
.page-appuntamenti .intro-block { background: linear-gradient(180deg, rgba(187,254,255,.42) 0%, rgba(255,230,245,.55) 100%); padding: 26px 0 18px; }
.page-appuntamenti h1 { font-size: 3rem; color: var(--blu-2); margin: 0; text-transform: uppercase; }
.page-appuntamenti .t2 { font-size: 2rem; color: var(--rosa-2); margin: 0 0 .6em; }
.page-appuntamenti .how { font-size: 1.35rem; color: var(--testo-2); max-width: 900px; margin: 0 auto .6em; }
.page-appuntamenti .how strong { color: var(--blu-2); }
.page-appuntamenti .how a { font-weight: 700; white-space: nowrap; }
.page-appuntamenti .app-img { width: 36%; margin: 10px auto 0; }
.page-appuntamenti .promo { background: var(--giallo-2); padding: 14px 10px 10px; text-align: center; color: #242323; font-size: 15px; margin: 14px 0; }
.page-appuntamenti .promo p { margin: 0 0 6px; }
.page-appuntamenti .promo ul { display: inline-block; text-align: left; margin: 0 auto; }
.page-appuntamenti .promo li { padding: 2px 0; }
.page-appuntamenti .promo li b { color: var(--blu-2); }
.page-appuntamenti .scegli { font-size: 2.7rem; color: #182125; margin: 0; }
.page-appuntamenti .hr-blu { height: 4px; background: #098BCA; margin: 15px 0; }
.page-appuntamenti .ricarica-cc { font-size: 2.4rem; color: #C92312; margin: 0; }
.page-appuntamenti .realtime h2 { font-size: 1.5rem; font-weight: 500; color: #FF1800; margin: 20px 0 0; }
.page-appuntamenti .realtime .t3 { font-size: 1.5rem; font-weight: 500; color: #332F2E; margin: 0 0 .5em; }
@media (max-width: 767px) {
  .page-appuntamenti h1 { font-size: 2.8rem; }
  .page-appuntamenti .t2 { font-size: 1.8rem; }
  .page-appuntamenti .how { font-size: 1.15rem; }
  .page-appuntamenti .app-img { width: 86%; }
  .page-appuntamenti .scegli { font-size: 20px; }
  .page-appuntamenti .ricarica-cc { font-size: 18px; }
}

/* ---------- Pagine legali ---------- */
.page-legal { padding: 36px 0 60px; }
.page-legal .container { max-width: 860px; }
.page-legal h1 { font-size: 2.4rem; color: var(--blu-2); }
.page-legal h2 { font-size: 1.5rem; color: var(--blu); margin-top: 1.8em; }
.page-legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.page-legal p, .page-legal li { font-size: 1.02rem; color: #333; }
.page-legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.page-legal li { margin: 4px 0; }
.page-legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.page-legal th, .page-legal td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
.page-legal th { background: #f1f5fb; }
.page-legal .meta { color: #666; font-size: .9rem; }
.page-legal .box { background: #f1f5fb; border-left: 4px solid var(--blu-2); padding: 14px 18px; border-radius: 4px; }
.page-legal .page-btn { margin: 1em 0; }
@media (max-width: 600px) { .page-legal table { display: block; overflow-x: auto; } }

/* ---------- Cookie banner (nero, testo bianco, pulsanti blu) ---------- */
.cc-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(960px, calc(100% - 24px)); background: #000; color: #fff; border-radius: 14px;
  padding: 22px 24px; z-index: 9999; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); font-size: 15px; line-height: 1.5;
}
.cc-banner[hidden], .cc-modal[hidden] { display: none !important; }
.cc-banner h2 { font-size: 1.15rem; margin: 0 0 8px; color: #fff; }
.cc-banner p { margin: 0 0 10px; color: #e5e7eb; }
.cc-banner a, .cc-modal a { color: #8fc5ff; text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cc-btn {
  flex: 1 1 160px; padding: 12px 18px; border-radius: 8px; border: 2px solid #1e6fe8; cursor: pointer;
  background: #1e6fe8; color: #fff; font: 600 15px var(--font); transition: background .2s, border-color .2s;
}
.cc-btn:hover, .cc-btn:focus-visible { background: #1557c0; border-color: #1557c0; }
.cc-btn--ghost { background: transparent; color: #fff; border-color: #1e6fe8; }
.cc-btn--ghost:hover, .cc-btn--ghost:focus-visible { background: rgba(30, 111, 232, .18); }
@media (max-width: 600px) { .cc-banner { bottom: 0; width: 100%; border-radius: 14px 14px 0 0; padding: 18px 16px; } .cc-btn { flex-basis: 100%; } }

.cc-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.cc-dialog {
  width: min(640px, 100%); max-height: 92vh; overflow: auto; background: #000; color: #fff; border-radius: 14px;
  padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); font-size: 15px;
}
.cc-dialog h2 { font-size: 1.3rem; margin: 0 0 6px; }
.cc-dialog > p { color: #d1d5db; margin: 0 0 14px; }
.cc-cat { border: 1px solid #333; border-radius: 10px; padding: 12px 14px; margin: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; }
.cc-cat h3 { font-size: 1rem; margin: 0; }
.cc-cat p { grid-column: 1 / -1; margin: 0; color: #cbd5e1; font-size: 14px; }
.cc-cat .always { font-size: 13px; color: #9ca3af; font-weight: 600; }
.cc-switch { position: relative; width: 50px; height: 28px; display: inline-block; }
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #4b5563; transition: background .2s; cursor: pointer; }
.cc-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cc-switch input:checked + span { background: #1e6fe8; }
.cc-switch input:checked + span::after { transform: translateX(22px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--giallo); }
.cc-dialog details { margin-top: 8px; font-size: 14px; }
.cc-dialog summary { cursor: pointer; color: #8fc5ff; }
.cc-dialog table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.cc-dialog td, .cc-dialog th { border-bottom: 1px solid #333; padding: 5px 4px; text-align: left; color: #e5e7eb; }
.cc-close { position: absolute; right: 18px; top: 10px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.cc-dialog { position: relative; }

/* ---------- Pulsante di richiamo cookie (in basso a sinistra) ---------- */
.cc-recall {
  position: fixed; left: 16px; bottom: 16px; z-index: 9000;
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #1e6fe8;
  background: #000; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .2s, background .2s;
}
.cc-recall[hidden] { display: none; }
.cc-recall:hover, .cc-recall:focus-visible { background: #1e6fe8; transform: translateY(-2px); }
.cc-recall svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 600px) { .cc-recall { width: 42px; height: 42px; left: 12px; bottom: 12px; } .cc-recall svg { width: 22px; height: 22px; } }
