/* Landing variant: actual Glisse Glass and Button components, mounted by home-glass.jsx. */
body.home { color-scheme: light; }
body.home:not(.results-mode) .hero-veil {
  background: linear-gradient(180deg,
    rgb(242 249 252 / .18) 0%,
    rgb(3 25 39 / .17) 35%,
    rgb(3 25 39 / .12) 46%,
    rgb(242 249 252 / .05) 62%,
    rgb(3 25 39 / .28) 74%,
    rgb(3 25 39 / .62) 90%,
    rgb(3 25 39 / .72) 100%);
}

.home-glass-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* Keep the native HTML controls readable while the component bundle loads. */
.home-glass-layer:empty { background: rgb(255 255 255 / .72); }

.home-glass-material {
  --lg-glass: rgb(255 255 255 / .3);
  --lg-blur: 2px;
  --lg-bezel: 18px;
  --lg-thickness: 38px;
  --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;
}

body.home:not(.results-mode) .topbar .brand {
  color: #102e3d;
  text-shadow: 0 1px 2px rgb(255 255 255 / .65);
}
body.home:not(.results-mode) .topbar .brand-tld { color: #183b50; }
body.home:not(.results-mode) .topbar .brand-word b,
body.home:not(.results-mode) .topbar .brand-isola { color: #084780; }

body.home:not(.results-mode) .hero-title {
  color: #fff;
  text-shadow: 0 2px 5px rgb(0 20 33 / .5), 0 6px 24px rgb(0 20 33 / .2);
}
body.home:not(.results-mode) .hero-title .t-blu { color: #e1f1ff; }
body.home:not(.results-mode) .hero-sub { color: #fff; text-shadow: 0 1px 3px rgb(0 20 33 / .9), 0 3px 12px rgb(0 20 33 / .5); }

body.home:not(.results-mode) .search-pill {
  position: relative;
  /* Safari: senza un contesto proprio, tornando su dopo lo scroll non ridisegnava
     campi e bottone sopra il vetro. Stesso schema di .home-details-surface. */
  isolation: isolate;
  background: transparent;
  box-shadow: 0 8px 28px rgb(12 45 62 / .14), 0 2px 5px rgb(12 45 62 / .06);
}
/* Il video rimane visibile, con una base stabile dietro etichette e date. */
body.home:not(.results-mode) .search-pill > .home-glass-layer > .home-glass-material {
  --lg-glass: rgb(247 251 254 / .6);
  --lg-blur: 8px;
}
body.home:not(.results-mode) .search-pill > :not(.home-glass-layer) { position: relative; }
body.home:not(.results-mode) .search-pill:hover,
body.home:not(.results-mode) .search-pill:focus-within { box-shadow: 0 12px 34px rgb(12 45 62 / .18); }
body.home:not(.results-mode) .field-label {
  color: #102e3d;
  text-shadow: none;
}
body.home:not(.results-mode) .field-value,
body.home:not(.results-mode) .field-value.vuota,
body.home:not(.results-mode) .field-ospiti select {
  color: #102e3d;
  font-weight: 600;
  text-shadow: none;
}
body.home:not(.results-mode) .field-icon {
  color: #193847;
  filter: none;
}
body.home:not(.results-mode) .field-ospiti option {
  color: #102e3d;
  background: #fff;
  text-shadow: none;
}
body.home:not(.results-mode) .field-sep { background: rgb(50 80 98 / .22); }
.home-search-action { display: flex; flex: none; align-items: stretch; }
body.home .home-search-action .search-btn { height: auto; }
body.home:not(.results-mode) .search-btn {
  --lg-glass: rgb(9 64 128 / .8);
  --lg-glass-active: rgb(9 64 128 / .9);
  --lg-blur: 1px;
  --lg-bezel: 12px;
  --lg-thickness: 30px;
  --lg-refraction: 1.2;
  --lg-zoom: 1.04;
  --lg-rim-saturation: 3;
  --lg-tint: #fff;
  color: #fff;
  background-color: var(--lg-glass);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .48), 0 3px 10px rgb(8 50 95 / .14);
}
body.home:not(.results-mode) .search-btn:is(:hover, :active, [data-pressed]) { background-color: var(--lg-glass-active); }
body.home .search-btn:focus-visible { outline: 3px solid #1558b0; outline-offset: 3px; }
body.home:not(.results-mode) .ripple { display: none; }

/* Keep the original link layout; only its visual treatment changes. */
body.home:not(.results-mode) .hero-links {
  border-top-color: transparent;
  background: transparent;
}
body.home:not(.results-mode) .hero-links a {
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 15 28 / .8), 0 3px 12px rgb(0 15 28 / .3);
}
body.home:not(.results-mode) .hero-links a:hover { color: #d8eeff; }
body.home:not(.results-mode) .hero-links a:focus-visible { outline-color: #fff; }
body.home.results-mode .home-glass-layer { display: none; }


@media (max-width: 640px) {
  body.home .home-search-action { width: 100%; }
  body.home .home-search-action .search-btn { width: 100%; }
}

@media (prefers-reduced-transparency: reduce) {
  body.home:not(.results-mode) .home-glass-layer .home-glass-material,
  body.home:not(.results-mode) .search-pill > .home-glass-layer > .home-glass-material { --lg-glass: rgb(248 251 253 / .95); --lg-blur: 0px; }
}
@media (forced-colors: active) {
  .home-glass-layer { display: none; }
  body.home:not(.results-mode) .search-pill,
  body.home:not(.results-mode) .topbar .brand,
  body.home:not(.results-mode) .hero-links { background: Canvas; outline: 1px solid CanvasText; }
}

/* One continuous glass surface with compact, expandable FAQs. */
body.home:not(.results-mode) .home-details {
  --home-details-photo: url("/media/lampedusa-tramonto-landing.webp");
  --home-sunset-ink: #49353d;
  --home-sunset-accent: #934b3a;
  --home-sunset-strong: #783b2e;
  padding-bottom: 0;
  /* Let the warm sky show through while keeping the lower photo subdued. */
  background: linear-gradient(180deg,
    rgb(237 229 225 / .59) 0%,
    rgb(232 229 229 / .61) 48%,
    rgb(215 232 242 / .63) 100%),
    var(--home-details-photo) center / cover;
}
@media (max-width: 640px) {
  body.home:not(.results-mode) .home-details {
    --home-details-photo: url("/media/lampedusa-tramonto-landing-mobile.webp");
  }
}
body.home:not(.results-mode) .home-details-surface {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
body.home:not(.results-mode) .search-pill > .home-glass-layer,
body.home:not(.results-mode) .home-details-surface > .home-glass-layer,
body.home:not(.results-mode) .home-return .home-glass-layer { z-index: -1; }
/* The lower surface uses the same .home-glass-material preset as the search. */
body.home .home-details .about {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 44px);
  color: #173746;
  text-align: left;
  font-size: .75rem;
  line-height: 1.5;
}
body.home .home-details .about h2 {
  margin: 0 0 10px;
  color: #102e3d;
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}
body.home .home-faq { border-top: 1px solid rgb(40 76 95 / .18); }
body.home .home-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}
body.home .home-faq summary::-webkit-details-marker { display: none; }
body.home .home-faq summary::after { content: "+"; flex: none; color: var(--home-sunset-accent, var(--blu)); font-size: 18px; line-height: 1; }
body.home .home-faq[open] summary::after { content: "−"; }
body.home .home-faq summary:focus-visible { outline: 2px solid var(--home-sunset-accent, var(--blu)); outline-offset: 3px; }
body.home .home-faq summary:hover h3 { color: var(--home-sunset-strong, var(--blu-scuro)); }
body.home .home-details .about h3 {
  margin: 0;
  color: #102e3d;
  font-size: .8125rem;
  line-height: 1.4;
}
body.home .home-details .about p {
  max-width: 980px;
  margin: 0;
  padding: 0 28px 12px 0;
}
body.home:not(.results-mode) .home-details .footer {
  width: 100%;
  display: flex;
  flex: 1;
  margin-top: 0;
  border-top-color: rgb(40 76 95 / .18);
}
body.home:not(.results-mode) .home-details .footer-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}
body.home:not(.results-mode) .home-footer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}
body.home:not(.results-mode) .home-details .footer-nav h2,
body.home:not(.results-mode) .home-details .brand { color: var(--home-sunset-ink); }
body.home:not(.results-mode) .home-details .brand-word b,
body.home:not(.results-mode) .home-details .brand-isola { color: var(--home-sunset-accent); }
body.home:not(.results-mode) .home-details .brand-tld,
body.home:not(.results-mode) .home-details .footer-nav a { color: var(--home-sunset-ink); }
body.home:not(.results-mode) .home-details .footer-nav a:hover { color: var(--home-sunset-strong); }
body.home:not(.results-mode) .home-details .footer-nav a:focus-visible { outline: 2px solid var(--home-sunset-accent); outline-offset: 3px; }
body.home:not(.results-mode) .home-return:focus-visible { outline-color: var(--home-sunset-accent); }
body.home:not(.results-mode) .home-return {
  position: relative;
  inset: auto;
  transform: none;
  isolation: isolate;
  background: transparent;
}
body.home:not(.results-mode) .home-return .home-glass-material {
  --lg-glass: rgb(147 75 58 / .88);
  --lg-blur: 2px;
  --lg-bezel: 10px;
  --lg-thickness: 24px;
  --lg-zoom: 1;
  --lg-rim-saturation: 2;
}
body.home:not(.results-mode) .home-return:hover .home-glass-material { --lg-glass: rgb(120 59 46 / .94); }
body.home.results-mode .search-btn { color: #fff; }

@media (prefers-reduced-transparency: reduce) {
  body.home:not(.results-mode) .home-details .home-glass-layer .home-glass-material { --lg-glass: rgb(248 251 253 / .95); }
}
@media (forced-colors: active) {
  body.home:not(.results-mode) .home-details { background: Canvas; }
  body.home:not(.results-mode) .home-return { background: ButtonFace; color: ButtonText; }
}
