:root {
  --bg: #000000;
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.72);
  --gold-1: #7a5c1a;
  --gold-2: #bf953f;
  --gold-3: #fcf6ba;
  --gold-4: #b38728;
  --gold-5: #fbf5b7;
  --gold-6: #aa771c;
  /* Ghiaccio (home / accenti freddi) */
  --ice-deep: #0c4a6e;
  --ice-mid: #0369a1;
  --ice-bright: #0ea5e9;
  --ice-light: #7dd3fc;
  --ice-pale: #bae6fd;
  --ice-white: #f0f9ff;
  --ice-glow: rgba(14, 165, 233, 0.45);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Ubuntu,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(16px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  text-align: center;
}

/* Menu a tendina (home, alto sinistra) */
.home__menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}

body.home-menu-open .home__menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.home-menu-open {
  overflow: hidden;
}

.home__nav {
  position: fixed;
  top: calc(10px + var(--safe-top));
  left: max(12px, env(safe-area-inset-left, 12px));
  z-index: 30;
  text-align: left;
}

.home__menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    #0c1419 0%,
    #152a38 42%,
    #0e1922 55%,
    #0a1218 100%
  );
  color: var(--ice-light);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.home__menu-btn:active {
  transform: scale(0.96);
}

.home__menu-btn-icon,
.home__menu-btn-icon::before,
.home__menu-btn-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.home__menu-btn-icon {
  position: relative;
}

.home__menu-btn-icon::before,
.home__menu-btn-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.home__menu-btn-icon::before {
  top: -7px;
}

.home__menu-btn-icon::after {
  top: 7px;
}

.home__menu-btn[aria-expanded="true"] .home__menu-btn-icon {
  background: transparent;
}

.home__menu-btn[aria-expanded="true"] .home__menu-btn-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.home__menu-btn[aria-expanded="true"] .home__menu-btn-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.home__menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  max-width: min(92vw, 280px);
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #121c24 0%, #0a1014 100%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.28),
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(14, 165, 233, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

body.home-menu-open .home__menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.home__menu-item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #f0f9ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.home__menu-item:hover,
.home__menu-item:focus-visible {
  outline: none;
  background: rgba(56, 189, 248, 0.12);
}

.home__menu-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.home__glow {
  position: absolute;
  inset: auto 50% auto auto;
  top: 8%;
  width: min(120vw, 420px);
  height: min(120vw, 420px);
  transform: translateX(50%);
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.2) 0%,
    rgba(14, 165, 233, 0.08) 42%,
    transparent 64%
  );
  pointer-events: none;
  z-index: 0;
  animation: home-glow-breathe 9s ease-in-out infinite;
}

@keyframes home-glow-breathe {
  0%,
  100% {
    opacity: 0.82;
    transform: translateX(50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(50%) scale(1.05);
  }
}

.home__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home__particles span {
  position: absolute;
  bottom: -6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(186, 230, 253, 0.45);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.35);
  animation: home-dust-rise 14s linear infinite;
}

@keyframes home-dust-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  92% {
    opacity: 0.35;
  }
  100% {
    transform: translate3d(var(--dust-x, 8px), -110vh, 0) scale(1);
    opacity: 0;
  }
}

.home__particles span:nth-child(1) {
  left: 6%;
  animation-duration: 13s;
  animation-delay: 0s;
  --dust-x: 4px;
}
.home__particles span:nth-child(2) {
  left: 14%;
  animation-duration: 16s;
  animation-delay: -2s;
  --dust-x: -6px;
}
.home__particles span:nth-child(3) {
  left: 22%;
  animation-duration: 12s;
  animation-delay: -5s;
  --dust-x: 10px;
}
.home__particles span:nth-child(4) {
  left: 31%;
  animation-duration: 15s;
  animation-delay: -1s;
  --dust-x: -4px;
}
.home__particles span:nth-child(5) {
  left: 40%;
  animation-duration: 17s;
  animation-delay: -7s;
  --dust-x: 6px;
}
.home__particles span:nth-child(6) {
  left: 48%;
  animation-duration: 11s;
  animation-delay: -3s;
  --dust-x: -10px;
}
.home__particles span:nth-child(7) {
  left: 56%;
  animation-duration: 14s;
  animation-delay: -9s;
  --dust-x: 5px;
}
.home__particles span:nth-child(8) {
  left: 64%;
  animation-duration: 18s;
  animation-delay: -4s;
  --dust-x: -8px;
}
.home__particles span:nth-child(9) {
  left: 72%;
  animation-duration: 13s;
  animation-delay: -6s;
  --dust-x: 7px;
}
.home__particles span:nth-child(10) {
  left: 80%;
  animation-duration: 15s;
  animation-delay: -2.5s;
  --dust-x: -5px;
}
.home__particles span:nth-child(11) {
  left: 88%;
  animation-duration: 12s;
  animation-delay: -8s;
  --dust-x: 9px;
}
.home__particles span:nth-child(12) {
  left: 11%;
  animation-duration: 16s;
  animation-delay: -11s;
  --dust-x: -3px;
}
.home__particles span:nth-child(13) {
  left: 52%;
  animation-duration: 19s;
  animation-delay: -12s;
  --dust-x: 3px;
}
.home__particles span:nth-child(14) {
  left: 35%;
  animation-duration: 10s;
  animation-delay: -1.2s;
  --dust-x: -12px;
}
.home__particles span:nth-child(15) {
  left: 92%;
  animation-duration: 14s;
  animation-delay: -10s;
  --dust-x: 2px;
}
.home__particles span:nth-child(16) {
  left: 18%;
  animation-duration: 17s;
  animation-delay: -13s;
  --dust-x: 11px;
}

.home__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: screen;
}

.home__header,
.home__logo-wrap,
.home__tagline,
.home__tagline-sub,
.home__divider,
.home__trust,
.home__actions {
  position: relative;
  z-index: 1;
}

.home__header {
  margin-bottom: 8px;
  padding-top: 6px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Telefoni: il menu è fixed sopra il contenuto; evita che il titolo invada l’area dell’icona */
@media (max-width: 599.98px) {
  .home__header {
    /* menu ≈ max(12px,safe) + 44px; .home ha già ~20px padding — aggiungiamo solo il necessario + respiro */
    padding-left: max(
      0px,
      calc(44px + max(12px, env(safe-area-inset-left, 0px)) + 12px - 20px)
    );
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }
}

.home__title {
  margin: 0;
  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(
    120deg,
    var(--ice-deep) 0%,
    var(--ice-mid) 12%,
    var(--ice-light) 32%,
    var(--ice-white) 48%,
    #ffffff 52%,
    var(--ice-pale) 62%,
    var(--ice-bright) 78%,
    var(--ice-light) 88%,
    var(--ice-white) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shine 6s ease-in-out infinite;
}

@keyframes title-shine {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.home__logo-wrap {
  margin: 10px 0 14px;
  animation: home-logo-breathe 5.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes home-logo-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.home__logo-ring {
  display: inline-block;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--ice-deep),
    var(--ice-mid),
    var(--ice-bright),
    var(--ice-light),
    var(--ice-white),
    var(--ice-pale),
    var(--ice-bright)
  );
  background-size: 160% 160%;
  box-shadow:
    0 0 0 1px rgba(186, 230, 253, 0.4),
    0 0 24px rgba(14, 165, 233, 0.25),
    0 12px 40px rgba(3, 105, 161, 0.35);
  animation: logo-ring-ice 5s ease-in-out infinite;
}

@keyframes logo-ring-ice {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 0 0 1px rgba(186, 230, 253, 0.35),
      0 0 20px rgba(14, 165, 233, 0.2),
      0 12px 36px rgba(3, 105, 161, 0.3);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 0 1px rgba(240, 249, 255, 0.55),
      0 0 32px rgba(56, 189, 248, 0.45),
      0 14px 44px rgba(14, 165, 233, 0.38);
  }
}

.home__logo {
  display: block;
  width: min(52vw, 200px);
  height: min(52vw, 200px);
  border-radius: 50%;
  object-fit: contain;
  vertical-align: middle;
  background: #0a0a0a;
}

.home__greeting {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(125, 211, 252, 0.88);
}

.home__tagline {
  margin: 0 0 6px;
  max-width: 22rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.home__tagline-sub {
  margin: 0 0 16px;
  max-width: 22rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.42);
}

.home__divider {
  width: min(52%, 200px);
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.35) 22%,
    rgba(186, 230, 253, 0.55) 50%,
    rgba(56, 189, 248, 0.35) 78%,
    transparent
  );
  opacity: 0.85;
}

.home__actions--prior-news {
  margin: 0 auto 18px;
  padding-bottom: 0;
  animation: home-vetrina-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes home-vetrina-reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home__trust {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 20px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(
    155deg,
    rgba(12, 74, 110, 0.22) 0%,
    rgba(8, 20, 28, 0.72) 45%,
    rgba(5, 12, 18, 0.88) 100%
  );
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.28),
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Blocco news un po' più largo su schermi grandi (meno “restringi” al centro) */
.home__trust.home-news {
  max-width: min(100%, 26.5rem);
  padding: 16px 18px 18px;
  box-sizing: border-box;
}

.home__trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 249, 255, 0.95);
  background: rgba(14, 165, 233, 0.22);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35);
}

button.home__trust-badge {
  border: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button.home__trust-badge:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.65);
  outline-offset: 2px;
}

.home__trust-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #f0f9ff;
}

.home__trust-text {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.78);
}

.home__trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home__trust-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(186, 230, 253, 0.95);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.home__trust-link:hover,
.home__trust-link:focus-visible {
  outline: none;
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.45);
  color: #f0f9ff;
}

.home__trust-link--primary {
  color: #030f18;
  background: linear-gradient(
    135deg,
    var(--ice-deep) 0%,
    var(--ice-mid) 22%,
    var(--ice-bright) 48%,
    var(--ice-light) 62%,
    var(--ice-bright) 100%
  );
  background-size: 160% 160%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 6px 18px rgba(14, 165, 233, 0.35);
}

.home__trust-link--primary:hover,
.home__trust-link--primary:focus-visible {
  background-size: 180% 180%;
  color: #020617;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 8px 22px rgba(56, 189, 248, 0.42);
}

/* —— Home: sezione News (carosello) —— */
.home-news {
  position: relative;
  overflow: hidden;
}

.home__trust.home-news.home-news--animate {
  opacity: 0;
  animation: home-news-section-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

@keyframes home-news-section-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-news__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-news__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  opacity: 0;
  animation: home-news-spark 4.2s ease-in-out infinite;
}

.home-news__spark:nth-child(1) {
  top: 12%;
  left: 8%;
  animation-delay: 0s;
}

.home-news__spark:nth-child(2) {
  top: 55%;
  right: 10%;
  animation-delay: 1.4s;
}

.home-news__spark:nth-child(3) {
  bottom: 18%;
  left: 22%;
  animation-delay: 2.8s;
}

@keyframes home-news-spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6) translateY(0);
  }
  35% {
    opacity: 1;
    transform: scale(1) translateY(-4px);
  }
  70% {
    opacity: 0.35;
    transform: scale(0.85) translateY(2px);
  }
}

.home-news__badge {
  position: relative;
  z-index: 1;
  animation:
    home-news-badge-pulse 2.8s ease-in-out infinite,
    home-news-badge-float 5s ease-in-out infinite;
  animation-delay:
    0s,
    0.85s;
}

@keyframes home-news-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(125, 211, 252, 0.55),
      0 0 14px rgba(14, 165, 233, 0.35);
  }
}

@keyframes home-news-badge-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.home-news__carousel {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  /* Spazio laterale solo quando ci sono le frecce (evita che diventino “aste” lunghe e strette) */
  min-height: 5rem;
}

.home-news__carousel:not(.home-news__carousel--single) .home-news__panel-shell {
  margin-inline: clamp(38px, 10vw, 46px);
}

.home-news__carousel--single .home-news__arrow {
  display: none;
}

.home-news__carousel--single .home-news__panel-shell {
  margin-inline: 0;
}

.home-news__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: rgba(186, 230, 253, 0.95);
  background: rgba(8, 47, 73, 0.75);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.home-news__arrow--prev {
  left: 2px;
}

.home-news__arrow--next {
  right: 2px;
}

.home-news__arrow:hover,
.home-news__arrow:focus-visible {
  outline: none;
  background: rgba(14, 165, 233, 0.35);
  color: #f0f9ff;
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.45),
    0 4px 14px rgba(14, 165, 233, 0.25);
}

.home-news__arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.home-news__arrow-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.home-news__panel-shell {
  position: relative;
  min-height: 8rem;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(
    130deg,
    rgba(56, 189, 248, 0.55),
    rgba(14, 165, 233, 0.15) 40%,
    rgba(125, 211, 252, 0.4) 70%,
    rgba(14, 165, 233, 0.35)
  );
  background-size: 200% 200%;
  animation:
    home-news-border-flow 8s ease infinite,
    home-news-shell-drift 7s ease-in-out infinite;
}

@keyframes home-news-border-flow {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

@keyframes home-news-shell-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.home-news__panel-ring {
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: linear-gradient(
    165deg,
    rgba(12, 74, 110, 0.35) 0%,
    rgba(5, 12, 18, 0.92) 100%
  );
  pointer-events: none;
}

.home-news__panel {
  position: relative;
  margin: 0;
  padding: 14px 14px 14px;
  border-radius: 12px;
  text-align: left;
  min-height: 8rem;
  max-height: min(36vh, 13.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(3, 10, 16, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.home-news__panel.is-leaving {
  opacity: 0;
  transform: translateY(6px) scale(0.985);
}

.home-news__panel.is-entering {
  animation: home-news-panel-in 0.38s ease forwards;
}

@keyframes home-news-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-news__headline {
  margin: 0;
  font-size: clamp(0.9rem, 2.9vw, 1.02rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #e0f2fe;
}

.home-news__body-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 4px;
  /* Scrollbar nascosta: evita barre blu/graffe che mangiano larghezza (Telegram/WebKit) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-news__body-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home-news__body {
  margin: 0;
  font-size: clamp(0.78rem, 2.5vw, 0.875rem);
  line-height: 1.52;
  color: rgba(245, 245, 245, 0.8);
  white-space: pre-wrap;
  word-break: break-word;
}

.home-news .home__trust-links {
  position: relative;
  z-index: 1;
}

.home-news__counter {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(125, 211, 252, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .home__actions--prior-news,
  .home__trust.home-news.home-news--animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .home-news__spark,
  .home-news__badge,
  .home-news__panel-shell {
    animation: none !important;
  }

  .home-news__panel {
    transition: opacity 0.15s ease;
  }

  .home-news__panel.is-leaving {
    transform: none;
  }

  .home-news__panel.is-entering {
    animation: home-news-panel-in-reduced 0.2s ease forwards;
  }
}

@keyframes home-news-panel-in-reduced {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.home__actions {
  width: 100%;
  max-width: 22rem;
  margin-top: 0;
  padding-bottom: 8px;
}

.home .home__actions {
  max-width: min(100%, 26.5rem);
}

.btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

a.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.btn--gold {
  position: relative;
  width: 100%;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1204;
  background: linear-gradient(
    135deg,
    var(--gold-6) 0%,
    var(--gold-2) 18%,
    var(--gold-3) 40%,
    var(--gold-5) 52%,
    var(--gold-2) 72%,
    var(--gold-4) 100%
  );
  background-size: 180% 180%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 28px rgba(191, 149, 63, 0.28);
  animation: gold-pulse 3.2s ease-in-out infinite;
}

@keyframes gold-pulse {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 8px 28px rgba(191, 149, 63, 0.28);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 10px 36px rgba(252, 246, 186, 0.35);
  }
}

.btn--shine {
  overflow: hidden;
}

.btn--shine::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-60%) rotate(12deg);
  animation: btn-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0% {
    transform: translateX(-75%) rotate(12deg);
  }
  45%,
  100% {
    transform: translateX(120%) rotate(12deg);
  }
}

.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: calc(20px + var(--safe-bottom));
  /* Sopra il contenuto della home; sotto menu (30) e sheet aperto (40). */
  z-index: 25;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #1a1204;
}

.fab--gold {
  background: linear-gradient(
    145deg,
    var(--gold-6),
    var(--gold-2),
    var(--gold-3),
    var(--gold-5)
  );
  background-size: 160% 160%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 10px 28px rgba(191, 149, 63, 0.35);
  animation: fab-pulse 2.6s ease-in-out infinite;
}

@keyframes fab-pulse {
  0%,
  100% {
    background-position: 0% 40%;
    transform: scale(1);
  }
  50% {
    background-position: 100% 60%;
    transform: scale(1.03);
  }
}

.fab--shine {
  overflow: hidden;
}

.fab--shine::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 65%
  );
  transform: translateX(-100%) rotate(25deg);
  animation: fab-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fab-shine {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  40%,
  100% {
    transform: translateX(120%) rotate(25deg);
  }
}

.fab__icon {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
}

/* Tendina supporto (FAB chat) */
.home-support-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

body.support-sheet-open .home-support-sheet {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

body.support-sheet-open {
  overflow: hidden;
}

/* I figli ereditano pointer-events: auto di default: senza questo, il layer
   copre il FAB anche con il foglio «chiuso» (opacity/visibility). */
.home-support-sheet__backdrop,
.home-support-sheet__panel {
  pointer-events: none;
}

body.support-sheet-open .home-support-sheet__backdrop,
body.support-sheet-open .home-support-sheet__panel {
  pointer-events: auto;
}

.home-support-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.home-support-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(88dvh, 640px);
  margin: 12px;
  margin-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  padding: 0 18px 22px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(180deg, #121c24 0%, #080c10 100%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.32),
    0 -8px 36px rgba(14, 165, 233, 0.12),
    0 20px 48px rgba(0, 0, 0, 0.55);
  transform: translateY(16px);
  transition: transform 0.26s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.support-sheet-open .home-support-sheet__panel {
  transform: translateY(0);
}

.home-support-sheet__grab {
  display: flex;
  justify-content: center;
  padding: 10px 0 8px;
}

.home-support-sheet__grab::after {
  content: "";
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(3, 105, 161, 0.5),
    rgba(125, 211, 252, 0.85),
    rgba(3, 105, 161, 0.5)
  );
}

.home-support-sheet__title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(
    120deg,
    var(--ice-pale),
    var(--ice-white),
    var(--ice-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chat supporto in-app (messaggi + invio) */
.home-support-sheet__inapp {
  position: relative;
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  margin: 0 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: #0a1218;
}

/* Fuori da Telegram: nascondi invio (initData serve al server) */
.home-support-sheet__inapp--no-session .home-support-sheet__composer,
.home-support-sheet__inapp--no-session .home-support-sheet__conclude {
  display: none !important;
}

.home-support-sheet__inapp--no-session .home-support-sheet__log {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-support-sheet__session-gate {
  margin: auto;
  max-width: 20rem;
  padding: 20px 16px;
  text-align: center;
}

.home-support-sheet__session-gate-text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.92);
}

.home-support-sheet__session-gate-sub {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.home-support-sheet__inapp-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-color: #070d12;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(125, 211, 252, 0.11) 1px, transparent 0);
  background-size: 14px 14px;
  pointer-events: none;
}

.home-support-sheet__log-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 140px;
  max-height: 38dvh;
  display: flex;
  flex-direction: column;
}

.home-support-sheet__log {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-support-sheet__log-empty {
  margin: 0;
  padding: 16px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.home-support-sheet__msg {
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  word-wrap: break-word;
}

.home-support-sheet__msg-meta {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 3px;
}

.home-support-sheet__msg--staff {
  align-self: flex-start;
  background: linear-gradient(165deg, #152a38 0%, #0f1a22 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-bottom-left-radius: 4px;
  color: rgba(245, 245, 245, 0.96);
}

.home-support-sheet__msg--user {
  align-self: flex-end;
  background: linear-gradient(165deg, #0c4a6e 0%, #082f49 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-bottom-right-radius: 4px;
  color: rgba(245, 245, 245, 0.96);
}

.home-support-sheet__composer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(0, 0, 0, 0.35);
  align-items: flex-end;
  min-width: 0;
}

.home-support-sheet__input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(8, 18, 24, 0.95);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 10px 12px;
  line-height: 1.35;
}

.home-support-sheet__input:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.home-support-sheet__send {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: auto;
  max-width: 40%;
  padding: 10px 16px;
  min-height: 44px;
  min-width: 5.5rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.home-support-sheet__send.btn--gold {
  width: auto;
}

@media (max-width: 360px) {
  .home-support-sheet__composer {
    flex-wrap: wrap;
  }
  .home-support-sheet__input {
    flex: 1 1 100%;
  }
  .home-support-sheet__send {
    width: 100%;
    max-width: none;
  }
}

.home-support-sheet__conclude {
  position: relative;
  z-index: 1;
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(252, 211, 77, 0.35);
  background: rgba(30, 22, 6, 0.55);
  color: rgba(254, 240, 138, 0.95);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.home-support-sheet__conclude:active {
  opacity: 0.88;
}

.home-support-sheet__hint {
  margin: 0 0 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(252, 211, 77, 0.9);
}

.home-support-sheet__close {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--ice-light);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.home-support-sheet__close:active {
  opacity: 0.85;
}

@media (min-width: 480px) {
  .home-support-sheet {
    align-items: center;
    padding: 24px;
  }

  .home-support-sheet__panel {
    border-radius: 20px;
    margin: 0;
  }

  .home-support-sheet__grab {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-support-sheet,
  .home-support-sheet__panel {
    transition: none !important;
  }

  body.support-sheet-open .home-support-sheet__panel {
    transform: none;
  }
}

/* Home: pulsanti in tema ghiaccio (vetrina resta oro) */
.home .btn--gold {
  color: #030f18;
  background: linear-gradient(
    135deg,
    var(--ice-deep) 0%,
    var(--ice-mid) 12%,
    var(--ice-bright) 28%,
    var(--ice-light) 42%,
    var(--ice-white) 52%,
    var(--ice-pale) 62%,
    var(--ice-bright) 78%,
    #0284c7 100%
  );
  background-size: 200% 200%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 8px 28px rgba(14, 165, 233, 0.35);
  animation: ice-btn-pulse 3.2s ease-in-out infinite;
}

@keyframes ice-btn-pulse {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 8px 26px rgba(14, 165, 233, 0.3);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 0 1px rgba(224, 242, 254, 0.45) inset,
      0 10px 36px rgba(56, 189, 248, 0.42);
  }
}

.home .fab--gold,
.showcase .fab--gold {
  color: #030f18;
  background: linear-gradient(
    145deg,
    var(--ice-deep),
    var(--ice-mid),
    var(--ice-bright),
    var(--ice-light),
    var(--ice-white)
  );
  background-size: 180% 180%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 28px rgba(14, 165, 233, 0.38);
  animation: ice-fab-pulse 2.6s ease-in-out infinite;
}

@keyframes ice-fab-pulse {
  0%,
  100% {
    background-position: 0% 40%;
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 10px 26px rgba(14, 165, 233, 0.32);
  }
  50% {
    background-position: 100% 60%;
    transform: scale(1.03);
    box-shadow:
      0 0 0 1px rgba(224, 242, 254, 0.35) inset,
      0 12px 34px rgba(56, 189, 248, 0.45);
  }
}

.btn:active,
.fab:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .home__menu-backdrop,
  .home__menu-panel,
  .home__menu-btn-icon,
  .home__menu-btn-icon::before,
  .home__menu-btn-icon::after {
    transition: none !important;
  }

  .home__glow,
  .home__logo-wrap {
    animation: none !important;
  }

  .home__particles {
    display: none;
  }

  .home__atmosphere {
    display: none !important;
  }

  .home__title,
  .home__logo-ring,
  .showcase__heading,
  .showcase__glow,
  .showcase__back,
  .showcase__back::before,
  .btn--gold,
  .btn--shine::before,
  .fab--gold,
  .fab--shine::before {
    animation: none !important;
  }

  .btn--gold {
    background-position: 50% 50%;
  }

  .home__logo-ring {
    background-position: 50% 50%;
    box-shadow:
      0 0 0 1px rgba(186, 230, 253, 0.4),
      0 12px 40px rgba(3, 105, 161, 0.3);
  }

  .home .btn--gold,
  .home .fab--gold,
  .showcase .fab--gold {
    background-position: 50% 50%;
  }

  .home .fab--gold,
  .showcase .fab--gold {
    transform: none;
  }
}
