/* Third worktree: Glisse material on existing surfaces, with no layout overrides. */
body.site-glass { color-scheme: light; }
body.site-glass:not(.home), body.site-glass.results-mode {
  --ink: #102e3d;
  --ink-2: #3d5868;
  --grigio-scuro: #284755;
  --blu: #1558b0;
  --blu-scuro: #0b3e70;
  --blu-tinta: #dcebf6;
  --ambra-testo: #674800;
  --hairline: rgb(41 78 98 / .22);
  --ground: #f1f6f8;
  color: var(--ink);
  background: radial-gradient(ellipse at 4% 0%, #c6e2eb 0, transparent 52%),
    radial-gradient(ellipse at 96% 80%, #edd6c8 0, transparent 55%), #e8eff0;
  background-attachment: fixed;
}
body.site-glass:not(.home) .brand,
body.site-glass.results-mode .brand { color: #102e3d; }
body.site-glass:not(.home) .brand-word b,
body.site-glass:not(.home) .brand-isola,
body.site-glass.results-mode .brand-word b,
body.site-glass.results-mode .brand-isola { color: #084780; }
body.site-glass:not(.home) .brand-tld { color: #284755; }
.site-glass-anchor { position: relative; inset: auto; }
.site-glass-host { isolation: isolate; }
.site-glass-host:has(> .site-glass-layer) { background: transparent !important; }
.site-glass-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.site-glass-material {
  --lg-glass: rgb(247 251 254 / .64);
  --lg-blur: 8px;
  --lg-bezel: 14px;
  --lg-thickness: 32px;
  --lg-refraction: 1.25;
  --lg-zoom: 1.025;
  --lg-rim-saturation: 4.5;
  --lg-edge: rgb(255 255 255 / .65);
  --lg-drop: rgb(7 40 64 / .08);
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.site-glass-host:is(:hover, :focus-within) > .site-glass-layer > .site-glass-material { --lg-glass: rgb(247 251 254 / .76); }
.site-glass-action > .site-glass-layer > .site-glass-material,
body.site-glass.results-mode .search-btn.lg-glass {
  --lg-glass: rgb(9 64 128 / .88);
  --lg-blur: 2px;
  --lg-bezel: 12px;
  --lg-thickness: 30px;
  --lg-refraction: 1.2;
  --lg-zoom: 1.04;
  --lg-rim-saturation: 3;
}
.site-glass-action:is(:hover, :focus-within) > .site-glass-layer > .site-glass-material,
body.site-glass.results-mode .search-btn.lg-glass:is(:hover, :active) { --lg-glass: rgb(9 64 128 / .96); }
body.site-glass.results-mode .search-btn.lg-glass { background: var(--lg-glass); color: #fff; --lg-glass-active: rgb(9 64 128 / .96); }
body.site-glass.results-mode .hero .brand,
body.site-glass.results-mode .hero .brand-tld { color: #082737; }
body.site-glass.results-mode .hero .brand-word b,
body.site-glass.results-mode .hero .brand-isola,
body.site-glass.results-mode .hero-title .t-blu,
body.site-glass.results-mode .hero .field-label,
body.site-glass.results-mode .hero .field-icon { color: #0b3156; }
body.site-glass.results-mode .hero :is(.field-value, .field-value.vuota, .field-ospiti select) { color: #102e3d; }
body.site-glass.results-mode .ripple { display: none; }
body.site-glass.results-mode .search-btn:focus-visible { outline-color: #0b3156; }
.site-glass-host:is(.chip, .scheda-tab).is-on > .site-glass-layer > .site-glass-material { --lg-glass: rgb(9 64 128 / .94); }
.site-glass-host.opz-carta.scelta > .site-glass-layer > .site-glass-material { --lg-glass: rgb(211 232 249 / .9); }
.site-glass-host:is(.nota-verita, .demo-note, .avviso-occupato, .avviso) > .site-glass-layer > .site-glass-material { --lg-glass: rgb(255 246 222 / .86); }
.site-glass-host.avviso.ok > .site-glass-layer > .site-glass-material { --lg-glass: rgb(221 237 250 / .9); }
.site-glass-inverse > .site-glass-layer > .site-glass-material { --lg-glass: rgb(9 36 53 / .78); --lg-blur: 6px; }
.site-glass-inverse:is(:hover, :focus-within) > .site-glass-layer > .site-glass-material { --lg-glass: rgb(9 36 53 / .9); }
body.site-glass:not(.home) .footer,
body.site-glass.results-mode .footer {
  --ink: #49353d;
  --ink-2: #594750;
  --blu: #783b2e;
  --blu-scuro: #5c2928;
  --hairline: rgb(91 59 52 / .2);
  color: var(--ink);
}
body.site-glass .footer.site-glass-host > .site-glass-layer > .site-glass-material { --lg-glass: rgb(244 229 220 / .7); }
body.site-glass:not(.home) .footer .brand,
body.site-glass.results-mode .footer .brand { color: #49353d; }
body.site-glass:not(.home) .footer .brand-word b,
body.site-glass:not(.home) .footer .brand-isola,
body.site-glass.results-mode .footer .brand-word b,
body.site-glass.results-mode .footer .brand-isola { color: #934b3a; }
body.site-glass:not(.home) .footer .brand-tld,
body.site-glass.results-mode .footer .brand-tld { color: #594750; }
body.site-glass :is(.modale, .scheda-contatto, .pannello) :is(input:not([type="checkbox"], [type="radio"], [type="date"]), textarea, select) { background-color: rgb(250 253 255 / .8); }
body.site-glass :is(input, textarea)::placeholder { color: #3d5868; opacity: 1; }
body.site-glass select option { color: #102e3d; background: #f7fbfe; }
body.site-glass :is(.modale, .ospiti-pannello, .avviso-cookie, .scheda-sticky, .pannello .testa, .pannello .schede) { --ink-2: #193847; --blu: #0b3156; --blu-scuro: #082748; }
/* Avviso dati: lo stesso Glisse del sito, con una tinta più coprente per la lettura. */
body.site-glass .avviso-cookie {
  --ink: #102e3d;
  --grigio-scuro: #284755;
  background: rgb(247 251 254 / .9);
  border-color: rgb(255 255 255 / .68);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
  backdrop-filter: blur(10px) saturate(1.12);
}
body.site-glass .avviso-cookie > .site-glass-layer > .site-glass-material {
  --lg-glass: rgb(247 251 254 / .78);
  --lg-blur: 0px;
  --lg-edge: rgb(255 255 255 / .72);
}
/* Un solo blur sul pannello fisso: separa anche i link sottostanti durante l’animazione d’ingresso. */
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  body.site-glass .avviso-cookie {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
body.site-glass :is(.scheda-campi, .campo-data):focus-within { border-color: #1558b0; }
body.site-glass :is(.scheda-tab, .bottone-secondario, .campo, .testa, .pg-tabella, .pg-tabella caption) { color: var(--ink-2); }
body.site-glass .scheda-tab.is-on { color: #fff; }
body.site-glass .pannello .marchio { color: #102e3d; }
body.site-glass .pannello .marchio b { color: #0b3156; }
body.site-glass .pannello .schede { background: rgb(232 241 245 / .94); }
body.site-glass .pannello th { color: #193847; }
body.site-glass .pannello :is(th, td) { border-color: var(--hairline); }
body.site-glass :is(.scorri, .pg-scorri, .scorri-tabella, .confronto-scelta) { scrollbar-color: rgb(40 71 85 / .5) transparent; }
body.site-glass:not(.home) ::selection,
body.site-glass.results-mode ::selection { background: #bad8ed; color: #102e3d; }
body.site-glass.results-mode .home-glass-layer { display: block; z-index: -1; }
body.site-glass.results-mode :is(.search-pill, #home-details) { position: relative; isolation: isolate; background: transparent; }
body.site-glass.results-mode #home-details .footer { background: transparent; }
body.site-glass.results-mode .hero-veil { background: linear-gradient(180deg, rgb(217 236 245 / .62), rgb(227 237 243 / .72)); }
body.site-glass.results-mode #home-details > .home-glass-layer > .home-glass-material { --lg-glass: rgb(244 229 220 / .7); --lg-blur: 8px; }
body.site-glass .site-glass-host:has(.ospiti-pannello:not([hidden])) { z-index: 50; }
@media (prefers-reduced-transparency: reduce) {
  body.site-glass.results-mode .home-glass-material { --lg-glass: #f1f6f8 !important; --lg-blur: 0px !important; }
  body.site-glass.results-mode .search-btn.lg-glass { --lg-glass: #094080; --lg-blur: 0px; }
  .site-glass-material { --lg-glass: #f1f6f8 !important; --lg-blur: 0px !important; }
  .site-glass-action > .site-glass-layer > .site-glass-material { --lg-glass: #094080 !important; }
  .site-glass-host:is(.chip, .scheda-tab).is-on > .site-glass-layer > .site-glass-material { --lg-glass: #094080 !important; }
  .site-glass-inverse > .site-glass-layer > .site-glass-material { --lg-glass: #092435 !important; }
}
@media (forced-colors: active) {
  .site-glass-layer, body.site-glass .home-glass-layer { display: none !important; }
  body.site-glass .lg-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background-image: none; }
  .site-glass-host:has(> .site-glass-layer) { background: Canvas !important; color: CanvasText; }
  body.site-glass { background: Canvas; color: CanvasText; }
}
@media print {
  body.site-glass { background: #fff; }
  .site-glass-layer { display: none; }
}

/* One optical layer per group; Glisse still supplies each material and rim. */
.site-glass-host:not(.site-glass-inverse) > .site-glass-layer > .site-glass-material { --lg-shared-surface: 1; }
.site-glass-nested > .site-glass-layer > .site-glass-material { --lg-blur: 0px; --lg-filter: none; }
body.site-glass .home-details-surface > .home-glass-layer > .home-glass-material { --lg-shared-surface: 1; }
body.site-glass [aria-busy="true"]:is(.field, .campo-data, .campo) { cursor: progress; }
