:root {
  --avorio: #faf8f4;
  --avorio-profondo: #f2ede4;
  --oro: #b8975a;
  --oro-chiaro: #d4b07a;
  --oro-bg: rgba(184, 151, 90, 0.09);
  --verde: #2c3b30;
  --verde-chiaro: #3d5040;
  --ardesia: #6b7280;
  --nero: #1a1a18;
  --bianco: #ffffff;
  --bordo: rgba(184, 151, 90, 0.24);
  --bordeaux: #5c1f2e;
  --wa-green: #25d366;
  --wa-dark: #1da851;
}

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

html {
  scroll-behavior: smooth;
  font-size: 130%;
}

body {
  overflow-x: hidden;
  background: var(--avorio);
  color: var(--nero);
  font-family: "Lora", Georgia, serif;
  line-height: 1.7;
}

.birth-page {
  --verde: var(--bordeaux);
  --verde-chiaro: #713044;
}

a {
  color: inherit;
}

nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--bordo);
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--nero);
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-accent {
  color: var(--oro);
}

.nav-back {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--bordo);
  color: var(--ardesia);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-back:hover,
.nav-back:focus-visible {
  color: var(--verde);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9rem 1.5rem 6rem;
  background:
    radial-gradient(circle at 22% 28%, rgba(212, 176, 122, 0.22), transparent 32%),
    radial-gradient(circle at 82% 70%, rgba(92, 31, 46, 0.07), transparent 34%),
    linear-gradient(150deg, #faf8f4 0%, #f3eee5 55%, #faf8f4 100%);
  text-align: center;
}

.hero::before {
  content: attr(data-mark);
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  color: rgba(184, 151, 90, 0.07);
  font-family: "IM Fell English", serif;
  font-size: clamp(14rem, 36vw, 30rem);
  font-style: italic;
  line-height: 0.8;
  pointer-events: none;
  transform: translate(-50%, -48%);
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: 12%;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(184, 151, 90, 0.22);
  border-radius: 50%;
}

.hero-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.birth-page .hero.has-video {
  min-height: 100vh;
  background: #2c3b30 url('/nascita-poster.jpg') center center / cover no-repeat;
}

.birth-page .hero.has-video::before {
  display: none;
}

.birth-page .hero.has-video::after {
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(20, 24, 21, 0.5) 0%, rgba(32, 20, 23, 0.56) 58%, rgba(20, 16, 17, 0.72) 100%);
}

.birth-page .hero.has-video h1 {
  color: var(--avorio);
  text-shadow: 0 2px 18px rgba(18, 13, 14, 0.45);
}

.birth-page .hero.has-video .hero-eyebrow {
  color: var(--oro-chiaro);
}

.birth-page .hero.has-video .hero-tagline,
.birth-page .hero.has-video .hero-meta {
  color: var(--avorio);
  text-shadow: 0 1px 12px rgba(18, 13, 14, 0.5);
}

.birth-page .hero.has-video .hero-note {
  border-color: rgba(212, 176, 122, 0.55);
  color: rgba(250, 248, 244, 0.88);
  text-shadow: 0 1px 10px rgba(18, 13, 14, 0.45);
}

.hero-eyebrow,
.label {
  display: block;
  color: var(--oro);
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 920px;
  color: var(--verde);
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
}

.hero-tagline {
  max-width: 760px;
  margin-top: 1.7rem;
  color: var(--nero);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.hero-note {
  max-width: 620px;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--bordo);
  color: var(--bordeaux);
  font-style: italic;
  font-size: 0.95rem;
}

.hero-meta {
  margin-top: 1.5rem;
  color: var(--verde);
  font-family: "DM Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.btn-primary,
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0.8rem 1.35rem;
  border-radius: 2px;
  color: var(--bianco);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--bordeaux);
}

.btn-wa {
  background: var(--wa-green);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-wa:hover,
.btn-wa:focus-visible {
  transform: translateY(-2px);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #4b1825;
}

.birth-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  background: var(--wa-green);
  color: var(--bianco);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: none;
  transition: background 0.2s, transform 0.2s;
}

.birth-page .btn-primary:hover,
.birth-page .btn-primary:focus-visible {
  background: var(--wa-dark);
}

.birth-page .hero .btn-sub {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--bianco);
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.birth-page .section h2.heading-cio-color {
  color: #2c3b30;
}

.btn-wa:hover,
.btn-wa:focus-visible {
  background: var(--wa-dark);
}

.container {
  width: min(100%, 840px);
  margin: 0 auto;
}

.section {
  padding: 6rem 2rem;
}

.section .label {
  margin-bottom: 1.5rem;
}

.section h2 {
  margin-bottom: 2rem;
  color: var(--verde);
  font-family: "IM Fell English", serif;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.25;
}

.section p {
  margin-bottom: 1.35rem;
  color: var(--ardesia);
  font-size: 0.95rem;
  line-height: 1.9;
}

.section p:last-child {
  margin-bottom: 0;
}

.section strong {
  color: var(--verde);
  font-weight: 500;
}

.section-dark {
  background: var(--verde);
}

.section-dark h2,
.section-dark strong {
  color: var(--avorio);
}

.section-dark p {
  color: rgba(250, 248, 244, 0.8);
}

.section-dark .number-list li {
  color: rgba(250, 248, 244, 0.85);
}

.section-dark .number-list li::before {
  color: var(--oro-chiaro);
}

.birth-page .section-dark .check-list li {
  padding: 0.2rem 0 0.2rem 1.25rem;
  border: 0;
  background: transparent;
  color: rgba(250, 248, 244, 0.9);
}

.birth-page .section-dark .check-list li::before {
  top: -0.05rem;
  left: 0;
  color: var(--oro);
}

.section-soft {
  background: #fdfaf5;
}

.quote {
  margin-top: 2.3rem;
  padding: 1.35rem 1.75rem;
  border-left: 3px solid var(--oro);
  background: var(--oro-bg);
  color: var(--verde);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.8;
}

.section-dark .quote {
  border-color: var(--oro-chiaro);
  background: rgba(250, 248, 244, 0.06);
  color: var(--avorio);
}

.check-list,
.number-list {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 1rem 1.2rem 1rem 2.6rem;
  border: 1px solid var(--bordo);
  border-left: 3px solid var(--oro);
  background: var(--bianco);
  color: var(--ardesia);
  font-size: 0.92rem;
  line-height: 1.75;
}

.check-list li::before {
  content: "·";
  position: absolute;
  top: 0.77rem;
  left: 1rem;
  color: var(--bordeaux);
  font-family: "IM Fell English", serif;
  font-size: 1.7rem;
  line-height: 1;
}

.number-list {
  counter-reset: movements;
}

.number-list.number-list-continue {
  counter-reset: movements 4;
}

.number-list li {
  counter-increment: movements;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  color: var(--ardesia);
  font-size: 0.92rem;
  line-height: 1.75;
}

.number-list li::before {
  content: counter(movements, decimal-leading-zero);
  color: var(--bordeaux);
  font-family: "IM Fell English", serif;
  font-size: 1.35rem;
  font-style: italic;
}

.details-grid,
.investment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--bordo);
  border-radius: 2px;
  background: var(--bianco);
}

.detail,
.investment {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0.75rem;
  border-right: 1px solid var(--bordo);
  text-align: center;
}

.detail:last-child,
.investment:last-child {
  border-right: 0;
}

.detail-value,
.investment-price {
  color: var(--bordeaux);
  font-family: "IM Fell English", serif;
  font-size: 1.4rem;
  line-height: 1.15;
}

.detail-label,
.investment-label {
  margin-top: 0.45rem;
  color: var(--ardesia);
  font-family: "DM Sans", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

.investment {
  align-items: flex-start;
  min-height: 9rem;
  padding: 1.5rem;
  text-align: left;
}

.investment:nth-child(2) {
  border-right: 0;
}

.investment:nth-child(-n + 2) {
  border-bottom: 1px solid var(--bordo);
}

.construction {
  position: relative;
  min-height: 28vh;
  padding: 5rem 2rem 6rem;
  background: var(--verde);
  text-align: center;
}

.construction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 2.5rem;
  background: var(--oro);
}

.construction h2 {
  margin-bottom: 1.2rem;
  color: var(--avorio);
  font-family: "IM Fell English", serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 400;
}

.construction p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(250, 248, 244, 0.75);
  font-size: 0.92rem;
}

.interest-section {
  padding: 5.5rem 2rem;
  background: var(--bordeaux);
  color: var(--avorio);
}

.interest-section .container {
  max-width: 720px;
  text-align: center;
}

.interest-section h2 {
  margin: 1.2rem 0 1rem;
  color: var(--avorio);
  font-family: "IM Fell English", serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 400;
}

.interest-section p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(250, 248, 244, 0.76);
  font-size: 0.92rem;
}

.interest-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  max-width: 620px;
  margin: 2rem auto 0;
}

.interest-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.interest-form input[type="email"] {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(250, 248, 244, 0.34);
  border-radius: 2px;
  outline: none;
  background: rgba(250, 248, 244, 0.08);
  color: var(--avorio);
  font: 0.88rem "Lora", serif;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.interest-form input[type="email"]::placeholder {
  color: rgba(250, 248, 244, 0.55);
}

.interest-form input[type="email"]:focus {
  border-color: var(--oro-chiaro);
  background: rgba(250, 248, 244, 0.12);
}

.interest-submit {
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 2px;
  background: var(--oro);
  color: var(--bianco);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.interest-submit:hover,
.interest-submit:focus-visible {
  background: var(--oro-chiaro);
  transform: translateY(-1px);
}

.form-note {
  display: block;
  margin-top: 0.8rem;
  color: rgba(250, 248, 244, 0.48);
  font-family: "DM Sans", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.manifesto {
  padding: 5rem 2rem;
  border-top: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
  background: var(--avorio);
  text-align: center;
}

.manifesto p {
  color: var(--verde);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
}

.filone {
  padding: 4rem 2rem;
  border-top: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
  background: var(--oro-bg);
}

.filone-intro {
  max-width: 640px;
  margin-top: 1.2rem;
  color: var(--ardesia);
  font-size: 0.92rem;
}

.filone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.filone-card {
  padding: 1.4rem;
  border: 1px solid var(--bordo);
  border-radius: 2px;
  background: var(--bianco);
  color: inherit;
  text-decoration: none;
}

.filone-card.active {
  border: 2px solid var(--oro);
}

.filone-tag {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--bordeaux);
  font-family: "DM Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filone-card h3 {
  margin-bottom: 0.45rem;
  color: var(--verde);
  font-family: "IM Fell English", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.filone-card p {
  color: var(--ardesia);
  font-size: 0.78rem;
  line-height: 1.65;
}

.split-label {
  margin: 2.2rem 0 0.9rem;
  color: var(--ardesia);
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .split-label {
  color: rgba(212, 176, 122, 0.95);
}

.cta-final {
  padding: 6rem 2rem;
  background: var(--bordeaux);
  text-align: center;
}

.cta-final h2 {
  color: var(--avorio);
  font-family: "IM Fell English", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
}

.cta-final p {
  max-width: 650px;
  margin: 1.2rem auto 0;
  color: rgba(250, 248, 244, 0.76);
  font-size: 0.92rem;
}

.cta-sub {
  display: block;
  margin-top: 0.75rem;
  color: rgba(250, 248, 244, 0.46);
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
}

footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--bordo);
  background: var(--avorio);
  color: var(--ardesia);
  font-size: 0.75rem;
  text-align: center;
}

.footer-logo {
  color: var(--nero);
  font-family: "IM Fell English", serif;
  font-size: 1.15rem;
}

footer p {
  margin-top: 0.55rem;
}

footer a {
  color: var(--oro);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.8s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

.reveal-delay-3 {
  animation-delay: 0.36s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 118%;
  }

  nav {
    padding: 0.9rem 1.1rem;
  }

  .nav-logo {
    font-size: 1.08rem;
  }

  .nav-back {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .hero {
    min-height: 78vh;
    padding: 7rem 1.2rem 4rem;
  }

  .hero::after {
    right: -2rem;
    bottom: 8%;
    width: 7rem;
    height: 7rem;
  }

  .section,
  .construction,
  .cta-final {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

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

  .detail:nth-child(2) {
    border-right: 0;
  }

  .detail:nth-child(-n + 2) {
    border-bottom: 1px solid var(--bordo);
  }

  .investment-grid {
    grid-template-columns: 1fr;
  }

  .interest-form,
  .filone-grid {
    grid-template-columns: 1fr;
  }

  .formula-intensiva {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
    text-align: center;
  }

  .investment,
  .investment:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--bordo);
  }

  .investment:last-child {
    border-bottom: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-video {
    display: none;
  }
}
