:root {
  --green-950: #03120d;
  --green-900: #081c15;
  --green-800: #0d2a20;
  --green-700: #123a2b;
  --burgundy-950: #210609;
  --burgundy-900: #2c0b0e;
  --burgundy-800: #3d0c11;
  --gold-100: #fff3c7;
  --gold-200: #f3e5ab;
  --gold-300: #f7dc8c;
  --gold-400: #e5c158;
  --gold-500: #d4af37;
  --gold-600: #b38728;
  --ivory: #fff9eb;
  --muted: #c9c7bd;
  --line: rgba(243, 229, 171, 0.42);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 1.5rem;
  --radius-md: 1.125rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  /* v0.18.62 — niente scorrimento orizzontale sul telefono (Luca, 16/10/2026: "la pagina è spaginata,
     si può scrollare a destra"): il taglio va messo anche su html, non solo su body (alcuni browser
     mobili ignorano quello di body), e l'hero ritaglia le sue decorazioni che sporgono. */
  overflow-x: hidden;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  background:
    radial-gradient(circle at 50% 16%, rgba(19, 83, 57, 0.78) 0, transparent 34rem),
    radial-gradient(circle at 85% 56%, rgba(106, 64, 18, 0.12) 0, transparent 30rem),
    linear-gradient(180deg, #0b2b20 0, var(--green-900) 35rem, var(--green-950) 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(125deg, rgba(0, 0, 0, 0.024) 0 1px, transparent 1px 6px);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #160e02;
  font-weight: 800;
  background: var(--gold-300);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(212, 175, 55, 0.48);
  background: rgba(3, 18, 13, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 1.25rem rgba(229, 193, 88, 0.18);
}

.brand-name {
  color: var(--gold-300);
  font-size: clamp(0.85rem, 2.5vw, 1.25rem);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.brand-name strong {
  font-weight: 800;
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--gold-200);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  background: #2fe783;
  border-radius: 50%;
  box-shadow: 0 0 0.75rem #2fe783;
}

.hero {
  overflow: hidden; /* v0.18.62: le decorazioni (::after, bagliore) non allargano la pagina */
  position: relative;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -6rem;
  width: 24rem;
  height: 24rem;
  content: "♣";
  color: rgba(212, 175, 55, 0.035);
  font: 26rem/1 Georgia, serif;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-300);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 9vw, 5rem);
  letter-spacing: -0.035em;
  text-shadow: 0 0.18rem 1rem rgba(0, 0, 0, 0.26);
}

.hero-description {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: #e0ded4;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.75;
}

.cta {
  min-height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem;
  color: #1b1405;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ffe6a2;
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0, transparent 38%),
    linear-gradient(135deg, var(--gold-300), var(--gold-400) 52%, var(--gold-600));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.55),
    0 0.5rem 1.5rem rgba(179, 135, 40, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.65),
    0 0.75rem 2rem rgba(229, 193, 88, 0.32);
}

.cta:active {
  transform: translateY(0);
}

.cta:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--gold-100);
  outline-offset: 4px;
}

.cta svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-cta {
  margin-top: 1.8rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin: 1.6rem 0 0;
  padding: 0;
  color: #d4d2c9;
  font-size: 0.8rem;
  font-weight: 600;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-list svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-preview {
  position: relative;
  width: min(72vw, 20rem);
  margin-inline: auto;
  isolation: isolate;
}

.preview-glow {
  position: absolute;
  inset: 12% -32% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.25), rgba(23, 90, 61, 0.18) 45%, transparent 70%);
  filter: blur(1.5rem);
}

.phone-frame {
  position: relative;
  padding: 0.62rem;
  overflow: hidden;
  border: 1px solid rgba(243, 229, 171, 0.72);
  border-radius: 2rem;
  background: linear-gradient(145deg, #5e4822, #e7c667 18%, #2e210b 44%, #d2a942 72%, #563a0c);
  box-shadow: var(--shadow-lg), 0 0 2rem rgba(212, 175, 55, 0.15);
  transform: perspective(70rem) rotateY(-3deg) rotateX(1deg);
}

.phone-frame::before {
  position: absolute;
  inset: 0.62rem;
  z-index: 1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.48rem;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 1.48rem;
}

.phone-speaker {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 0.9rem;
  border-radius: 999px;
  background: #050807;
  transform: translateX(-50%);
}

.floating-card {
  position: absolute;
  z-index: -1;
  width: 3.8rem;
  aspect-ratio: 0.7;
  display: flex;
  flex-direction: column;
  padding: 0.55rem;
  color: #111;
  font: 700 1.15rem/1 Georgia, serif;
  border-radius: 0.5rem;
  background: #fff9e8;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.32);
}

.floating-card span {
  font-size: 1.15rem;
}

.card-one {
  top: 18%;
  left: -2rem;
  transform: rotate(-18deg);
}

.card-two {
  right: -2rem;
  bottom: 18%;
  color: #a81425;
  transform: rotate(17deg);
}

.install-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  background:
    linear-gradient(180deg, rgba(3, 18, 13, 0.2), rgba(3, 18, 13, 0.74)),
    radial-gradient(circle at 50% 0, rgba(229, 193, 88, 0.075), transparent 34rem);
}

.section-heading {
  max-width: 43rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.15rem, 7vw, 3.6rem);
}

.section-heading > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
}

.install-grid {
  display: grid;
  gap: 1.25rem;
}

.install-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 6px),
    linear-gradient(150deg, var(--burgundy-800), var(--burgundy-900) 58%, var(--burgundy-950));
  box-shadow: 0 1.3rem 3rem rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.04);
}

.install-card::after {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 12rem;
  height: 12rem;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: rgba(229, 193, 88, 0.08);
  filter: blur(1.5rem);
}

.install-card-featured {
  border-color: rgba(247, 220, 140, 0.78);
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.28), 0 0 1.4rem rgba(229, 193, 88, 0.09);
}

.recommended {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  padding: 0.35rem 0.6rem;
  color: var(--gold-100);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border: 1px solid rgba(229, 193, 88, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
}

.device-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(229, 193, 88, 0.42);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(229, 193, 88, 0.16), rgba(229, 193, 88, 0.045));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.device-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform {
  margin: 0 0 0.25rem;
  color: var(--gold-400);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.install-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  line-height: 1.2;
}

.card-description {
  margin: 1rem 0 0;
  color: #d5d2c8;
  font-size: 0.94rem;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 0.45rem;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
  color: #eee9dc;
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
}

.feature-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0.7rem rgba(229, 193, 88, 0.45);
}

.install-button {
  width: 100%;
  margin-top: auto;
  font-size: 0.78rem;
  letter-spacing: 0.035em;
}

.ios-steps {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: 0.55rem;
  margin: auto 0 0;
  padding: 1rem;
  border: 1px solid rgba(243, 229, 171, 0.2);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.14);
  list-style: none;
}

.ios-steps li:not(.step-arrow) {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #f3ecda;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.ios-steps small {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--gold-400);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.step-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gold-300);
  border: 1px solid rgba(229, 193, 88, 0.3);
  border-radius: 0.6rem;
}

.step-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-arrow {
  color: var(--gold-500);
  font: 2rem/1 Georgia, serif;
}

.install-feedback {
  max-width: 52rem;
  margin: 1.5rem auto 0;
  color: var(--gold-200);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.install-feedback:empty {
  display: none;
}

.browser-note {
  max-width: 52rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.1rem;
  color: #c9c7bd;
  font-size: 0.8rem;
  border: 1px solid rgba(243, 229, 171, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
}

.browser-note svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin-top: 0.12rem;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browser-note p {
  margin: 0;
}

.browser-note strong {
  color: var(--ivory);
}

.site-footer {
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(2, 12, 8, 0.78);
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
}

.brand-footer .brand-mark {
  width: 2.5rem;
}

.footer-brand p,
.footer-block p {
  max-width: 28rem;
  margin: 0.8rem 0 0;
  color: #aeadA6;
  font-size: 0.82rem;
}

.footer-block h2 {
  margin: 0;
  color: var(--gold-200);
  font: 800 0.7rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-block a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--ivory);
  font-size: 0.86rem;
  text-decoration-color: rgba(229, 193, 88, 0.6);
  text-underline-offset: 0.22rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  color: #8e928c;
  font-size: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  text-decoration: none;
}

@media (min-width: 42rem) {
  .shell {
    width: min(100% - 3rem, 76rem);
  }

  .official-badge {
    font-size: 0.78rem;
  }

  .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ios-card {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 58rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.7fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .app-preview {
    width: min(28vw, 20rem);
  }

  .install-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ios-card {
    grid-column: auto;
  }
}

/* v0.18.61 — riquadri guida: "apri in Safari/Chrome" (browser interni, iPhone non Safari) e "hai già l'app". */
.riquadro-guida {
  max-width: 52rem;
  margin: 0 auto 1.25rem;
}

.riquadro-guida.is-gia-installata {
  border-color: rgba(247, 220, 140, 0.78);
}

.guida-passi {
  margin: 0.9rem 0 0;
  padding-left: 1.3rem;
  color: var(--ivory);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guida-passi li + li {
  margin-top: 0.45rem;
}

.guida-azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.guida-azioni .cta {
  flex: 1 1 12rem;
  justify-content: center;
}

/* `hidden` deve vincere sui display dichiarati (griglia delle schede, tasto APRI IN CHROME, nota). */
.install-grid[hidden],
.guida-azioni [hidden],
.browser-note[hidden],
.riquadro-guida[hidden] {
  display: none !important;
}

/* v0.18.61 — a installazione fatta: schermata a tutto schermo con il passo successivo. */
.app-installata {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 18, 13, 0.9);
}

.app-installata[hidden] {
  display: none;
}

.app-installata-box {
  width: min(26rem, 100%);
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
  border: 1px solid rgba(247, 220, 140, 0.78);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--burgundy-800), var(--burgundy-900) 58%, var(--burgundy-950));
  box-shadow: var(--shadow-lg);
}

.app-installata-box img {
  width: 6rem;
  height: 6rem;
  border-radius: 1.4rem;
}

.app-installata-box h2 {
  margin: 1rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold-200);
}

.app-installata-box p {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  line-height: 1.55;
}

.app-installata-box .cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 31rem) {
  .header-inner {
    align-items: flex-start;
    padding-block: 1rem;
  }

  .official-badge {
    max-width: 8.75rem;
    white-space: normal;
  }

  .brand-name {
    max-width: 6.5rem;
    line-height: 1.2;
    white-space: normal;
  }

  .trust-list {
    display: grid;
  }

  .ios-steps {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
