/* ==========================================================================
   ospit1amo.css — Ospit1amo product sub-site (Ospit1amo.html only)
   Own look & feel: dark navy + REAL gold (--gold #c9a84c). It does NOT use
   site.css, and the main-site header/footer are NOT used here.
   Sections in order: tokens/base · nav · hero · how it works · benefits ·
   pricing · municipalities · CTA strip · footer · responsive
   ========================================================================== */

:root {
  --ink: #0e1a3d;
  --navy: #1a2b5e;
  --navy2: #243b78;
  --gold: #c9a84c;
  --gold2: #e8c96a;
  --paper: #f6f7fa;
  --white: #fff;
  --body: #2d3a55;
  --muted: #74839c;
  --line: #e2e7f0;
  --green: #34c759;
  --radius: 16px;
  --shadow: 0 22px 70px rgba(14, 26, 61, .13);
  --light: #cadcfc
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  font-family: Inter, sans-serif;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.65
}

body.menu-open {
  overflow: hidden
}

section {
  overflow: hidden
}

a {
  color: inherit
}

button {
  font: inherit
}

.wrap {
  width: min(1180px, calc(100% - 4rem));
  margin: auto
}

.eyebrow {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .8rem
}

.display {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -.02em
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 650px;
  margin-top: 1rem
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .78rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  border: 2px solid transparent;
  transition: .25s ease
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold)
}

.btn-gold:hover {
  background: var(--gold2);
  border-color: var(--gold2);
  transform: translateY(-1px)
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08)
}

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 125;
  transition: .25s ease
}

nav.scrolled {
  background: rgba(14, 26, 61, .97);
  box-shadow: 0 4px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px)
}

.navin {
  height: 70px;
  width: min(1180px, calc(100% - 4rem));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  text-decoration: none
}

.brand img {
  width: 48px;
  height: 25px;
  object-fit: contain
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: .6rem
}

.brand strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  letter-spacing: .04em
}

.brand small {
  color: var(--gold2);
  font-size: .65rem;
  letter-spacing: .13em;
  text-transform: uppercase
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 1.55rem
}

.navlinks>a {
  color: rgba(255, 255, 255, .78);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none
}

.navlinks>a:hover {
  color: var(--gold2)
}

.langs {
  display: flex;
  padding: 3px;
  gap: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 18px
}

.lang {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 13px;
  cursor: pointer
}

.lang.active {
  background: var(--gold);
  color: var(--ink)
}

.hamb {
  display: none;
  border: 0;
  background: none;
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 130;
  cursor: pointer
}

.hamb span {
  position: absolute;
  left: 5px;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .25s
}

.hamb span:nth-child(1) {
  top: 9px
}

.hamb span:nth-child(2) {
  top: 16px
}

.hamb span:nth-child(3) {
  top: 23px
}

.hamb.open span:nth-child(1) {
  top: 16px;
  transform: rotate(45deg)
}

.hamb.open span:nth-child(2) {
  opacity: 0
}

.hamb.open span:nth-child(3) {
  top: 16px;
  transform: rotate(-45deg)
}

.mobile {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--ink);
  z-index: 120;
  padding: 6rem 1.5rem 2rem;
  flex-direction: column;
  gap: .45rem;
  overflow: auto
}

.mobile.open {
  display: flex
}

.mobile>a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.mobile .langs {
  margin-top: 1.25rem;
  align-self: flex-start
}

#hero {
  min-height: 100vh;
  background: radial-gradient(circle at 80% 15%, rgba(201, 168, 76, .17), transparent 35%), linear-gradient(135deg, var(--ink), var(--navy) 60%, #203b7b);
  position: relative;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem
}

.hero-lines {
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201, 168, 76, .7) 80px);
  pointer-events: none
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 5rem;
  align-items: center
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(201, 168, 76, .35);
  background: rgba(201, 168, 76, .1);
  color: var(--gold2);
  border-radius: 20px;
  padding: .4rem .85rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1.25rem
}

.product-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, .14)
}

h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: clamp(2.65rem, 5.3vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.03em
}

h1 em {
  color: var(--gold2);
  font-style: normal
}

.hero-copy>p {
  color: var(--light, #cadcfc);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 590px;
  margin: 1.5rem 0 2rem
}

.actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap
}

.trustline {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  color: rgba(255, 255, 255, .55);
  font-size: .75rem
}

.trustline span::before {
  content: '✓';
  color: var(--gold2);
  margin-right: .42rem
}

.moment {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .23);
  backdrop-filter: blur(8px);
  min-height: 385px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden
}

.moment::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .08);
  right: -80px;
  top: -90px
}

.moment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase
}

.live {
  color: #72ee90;
  display: flex;
  align-items: center;
  gap: .4rem
}

.live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s infinite
}

.clock {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  margin: 3rem 0 .8rem;
  font-variant-numeric: tabular-nums
}

.moment-status {
  text-align: center;
  color: var(--gold2);
  font-weight: 600;
  min-height: 1.7rem
}

.success {
  display: none;
  text-align: center;
  margin: 3rem 0 1rem
}

.success.show {
  display: block
}

.success-mark {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(52, 199, 89, .14);
  border: 1px solid rgba(94, 232, 122, .4);
  display: grid;
  place-items: center;
  color: #72ee90;
  font-size: 2rem;
  margin: auto
}

.success h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.7rem;
  margin: .8rem 0 .25rem
}

.success p {
  color: rgba(255, 255, 255, .55);
  font-size: .85rem
}

.moment-foot {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .48);
  font-size: .75rem
}

.moment-foot strong {
  color: #fff;
  font-weight: 600
}

.section {
  padding: 7rem 0
}

.head {
  margin-bottom: 3.3rem
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0
}

.step {
  padding: 0 2.25rem;
  border-left: 1px solid var(--line)
}

.step:first-child {
  padding-left: 0;
  border-left: 0
}

.step:last-child {
  padding-right: 0
}

.step-num {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1
}

.step h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 1.25rem;
  margin: .9rem 0 .55rem
}

.step p {
  color: var(--muted);
  font-size: .93rem
}

.quarterly {
  margin-top: 3rem;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 1.7rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  align-items: start
}

.quarterly-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .14);
  display: grid;
  place-items: center;
  color: var(--gold2);
  font-weight: 700
}

.quarterly h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .25rem
}

.quarterly p {
  color: rgba(255, 255, 255, .6);
  font-size: .87rem
}

#benefits {
  background: var(--paper)
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 4rem
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line)
}

.benefit:nth-child(-n+2) {
  border-top: 0
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold2);
  display: grid;
  place-items: center;
  font-weight: 700
}

.benefit h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: .25rem
}

.benefit p {
  color: var(--muted);
  font-size: .87rem
}

.security {
  margin-top: 3.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem
}

.security h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 1.5rem
}

.security p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .6rem
}

.security-list {
  display: grid;
  gap: .7rem;
  align-content: center
}

.security-list span {
  font-size: .87rem;
  color: var(--body)
}

.security-list span::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  margin-right: .6rem
}

#pricing {
  background: #fff
}

.price-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem
}

.price-intro .head {
  margin: 0
}

.price-from {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 1.25rem;
  text-align: right
}

.price-from strong {
  font-size: 2.6rem;
  color: var(--gold)
}

.price-from small {
  display: block;
  font-family: Inter, sans-serif;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px
}

.plan.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow)
}

.popular {
  position: absolute;
  top: -13px;
  right: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 12px;
  padding: .25rem .65rem
}

.plan h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 1.25rem
}

.limit {
  color: var(--muted);
  font-size: .79rem;
  margin: .25rem 0 1.25rem;
  min-height: 2.5rem
}

.amount {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700
}

.amount.gold {
  color: var(--gold)
}

.model {
  font-size: .75rem;
  color: var(--muted)
}

.plan .btn {
  margin-top: auto;
  color: var(--ink);
  border-color: var(--line);
  min-height: 42px;
  padding: .55rem .8rem
}

.plan.featured .btn {
  background: var(--gold);
  border-color: var(--gold)
}

.backfill {
  margin-top: 1.25rem;
  padding: 1.15rem 1.3rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem
}

.backfill strong {
  color: var(--ink)
}

#comuni {
  background: var(--ink)
}

#comuni .display {
  color: #fff
}

#comuni .lead {
  color: rgba(255, 255, 255, .55)
}

.city-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem
}

.city-count {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold)
}

.city-count small {
  font-family: Inter, sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  display: block
}

.milano {
  margin: 2.5rem 0 1.25rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid rgba(94, 232, 122, .25);
  background: linear-gradient(135deg, rgba(52, 199, 89, .09), rgba(201, 168, 76, .06));
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff
}

.milano::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 199, 89, .14)
}

.milano strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem
}

.milano span {
  margin-left: auto;
  color: rgba(255, 255, 255, .5);
  font-size: .76rem
}

.cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.city {
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.city::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: .55rem;
  vertical-align: middle
}

.city-note {
  color: rgba(255, 255, 255, .42);
  font-size: .8rem;
  margin-top: 1rem
}

#cta {
  background: linear-gradient(110deg, var(--gold), var(--gold2));
  padding: 4.5rem 0
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1
}

.cta p {
  color: rgba(14, 26, 61, .72);
  margin-top: .55rem
}

.cta .btn {
  background: var(--ink);
  color: #fff;
  flex-shrink: 0
}

footer {
  background: #09132f;
  color: rgba(255, 255, 255, .5);
  padding: 2.5rem 0
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  font-size: .75rem
}

.footbrand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  text-decoration: none
}

.footbrand img {
  width: 42px
}

.footlinks {
  display: flex;
  gap: 1.2rem
}

.footlinks a {
  text-decoration: none
}

.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: .6s ease
}

.fade.visible {
  opacity: 1;
  transform: none
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .45;
    transform: scale(.85)
  }
}

@media(max-width:920px) {

  .navlinks>a:not(.nav-cta),
  .navlinks>.langs {
    display: none
  }

  .hamb {
    display: block
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3rem
  }

  .moment {
    max-width: 650px;
    width: 100%;
    margin: auto
  }

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

  .step {
    padding: 1.5rem 0;
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  .step:first-child {
    border-top: 0;
    padding-top: 0
  }

  .plans {
    grid-template-columns: repeat(2, 1fr)
  }

  .cities {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:640px) {

  .wrap,
  .navin {
    width: calc(100% - 2.5rem)
  }

  .brand small {
    display: none
  }

  .section {
    padding: 4.75rem 0
  }

  #hero {
    padding: 7rem 0 4rem;
    min-height: auto
  }

  .hero {
    gap: 2.5rem
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.5rem)
  }

  .hero-copy>p {
    font-size: 1rem
  }

  .actions {
    flex-direction: column
  }

  .actions .btn {
    width: 100%
  }

  .moment {
    padding: 1.35rem;
    min-height: 330px
  }

  .clock {
    font-size: 4.3rem;
    margin: 2.7rem 0 .7rem
  }

  .moment-foot {
    gap: 1rem
  }

  .benefits,
  .security {
    grid-template-columns: 1fr
  }

  .benefit:nth-child(2) {
    border-top: 1px solid var(--line)
  }

  .security {
    gap: 1.25rem;
    padding: 1.5rem
  }

  .price-intro,
  .city-head,
  .cta,
  .footer {
    align-items: flex-start;
    flex-direction: column
  }

  .price-from {
    text-align: left
  }

  .plans {
    grid-template-columns: 1fr
  }

  .plan {
    min-height: 230px
  }

  .cities {
    grid-template-columns: repeat(2, 1fr)
  }

  .milano {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .milano span {
    width: 100%;
    margin-left: 1.8rem
  }

  .quarterly {
    grid-template-columns: 1fr
  }

  .cta .btn {
    width: 100%
  }

  .footlinks {
    flex-wrap: wrap
  }

  .mobile {
    padding-left: 1.25rem;
    padding-right: 1.25rem
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }

  .fade {
    opacity: 1;
    transform: none
  }
}
[hidden] { display: none !important; }

/* "Il problema" section (#problema), before "Come funziona" */
#problema {
  background: var(--paper)
}

.pain-close {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-weight: 600
}

.pain-source {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--muted)
}

/* Company UID in the footer (was an inline style) */
.foot-uid {
  color: rgba(255, 255, 255, .3);
  font-size: .78rem;
  letter-spacing: .03em;
  margin-left: .75rem
}
