:root {
  --ink: #241f1b;
  --ink-soft: #5a5148;
  --paper: #f1ebe2;
  --paper-deep: #e5dccf;
  --stone: #84786c;
  --water: #2c7a84;
  --water-deep: #1b5a62;
  --flame: #b84f28;
  --gold: #b8954a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1.25rem, 3.5vw, 2.75rem);
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 0% 15%, rgba(44, 122, 132, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 70%, rgba(184, 149, 74, 0.11), transparent 50%),
    linear-gradient(165deg, #f4efe7 0%, #ebe3d6 48%, #e7dfd1 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 500;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), color 0.3s ease, box-shadow 0.3s ease;
  color: #f7f2ea;
}

.site-header.is-scrolled {
  background: rgba(241, 235, 226, 0.9);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(36, 31, 27, 0.07);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 400;
}

.nav a {
  opacity: 0.86;
  transition: opacity 0.25s ease;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.48rem 1rem;
  border: 1px solid currentColor;
  opacity: 1 !important;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #f7f2ea;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: hero-drift 20s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, 0.42) 0%, rgba(18, 14, 10, 0.12) 38%, rgba(18, 14, 10, 0.78) 100%),
    radial-gradient(ellipse at 50% 28%, transparent 18%, rgba(18, 14, 10, 0.4) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vh, 8rem) var(--space) clamp(4rem, 10vh, 6.5rem);
  max-width: 44rem;
  animation: rise 1.15s var(--ease) both;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: 0.045em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.2vw, 4.85rem);
  font-weight: 600;
  line-height: 1.02;
  font-style: italic;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  margin: 0 0 1.85rem;
  max-width: 29rem;
  font-size: 1.08rem;
  opacity: 0.93;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.3rem;
  right: var(--space);
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: pulse 2.4s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--water);
  color: #f7fbfb;
  border-color: var(--water);
}

.btn-primary:hover {
  background: var(--water-deep);
  border-color: var(--water-deep);
}

.btn-ghost {
  border-color: rgba(247, 242, 234, 0.55);
  color: #f7f2ea;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(247, 242, 234, 0.1);
}

section {
  padding: clamp(4rem, 10vw, 7.2rem) var(--space);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.6rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--water-deep);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}

.quote-band {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(44, 122, 132, 0.08), transparent);
}

.quote-band blockquote {
  margin: 0 auto;
  max-width: 28rem;
}

.quote-band p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--water-deep);
}

.intro,
.why,
.benefits,
.program,
.details {
  max-width: var(--max);
  margin-inline: auto;
}

.intro h2 {
  max-width: 16ch;
}

.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.intro p {
  max-width: 40rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem;
  max-width: 52rem;
}

.why-grid p {
  margin: 0;
  color: var(--ink-soft);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(36, 31, 27, 0.14);
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.1rem 2.6rem;
}

.benefit-list li {
  position: relative;
  padding: 0.35rem 0 0 0.2rem;
}

.benefit-index {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.benefit-list h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.benefit-list p {
  margin: 0;
  color: var(--ink-soft);
}

.visual-break {
  padding: 0;
  max-width: none;
  height: clamp(12rem, 28vw, 22rem);
  overflow: hidden;
}

.visual-break-media {
  height: 100%;
  position: relative;
}

.visual-break-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(241, 235, 226, 0.55), rgba(241, 235, 226, 0.2) 40%, rgba(241, 235, 226, 0.65));
}

.visual-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(0.92) contrast(1.05);
}

.days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.days li {
  padding: 1.9rem 0;
  border-top: 1px solid rgba(36, 31, 27, 0.14);
  transition: background 0.35s ease;
}

.days li:last-child {
  border-bottom: 1px solid rgba(36, 31, 27, 0.14);
}

.day-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
}

.days h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.days p {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

.guide {
  padding-inline: 0;
  background: linear-gradient(120deg, rgba(44, 122, 132, 0.1), rgba(184, 149, 74, 0.08));
  border-block: 1px solid rgba(36, 31, 27, 0.08);
}

.guide-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-inline: var(--space);
}

.guide-portrait {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 28rem;
}

.guide-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.95);
}

.guide-role {
  margin: -0.25rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--water-deep);
}

.guide-inner p:last-child {
  color: var(--ink-soft);
  margin: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.detail {
  padding: 1.1rem 0 0;
  border-top: 2px solid rgba(184, 149, 74, 0.55);
}

.detail-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.detail p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.placeholder {
  color: var(--flame);
  font-style: italic;
  font-weight: 500 !important;
}

.include h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.include ul {
  margin: 0 0 2.5rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.cta-block {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(44, 122, 132, 0.12), rgba(184, 149, 74, 0.1));
  border: 1px solid rgba(36, 31, 27, 0.08);
}

.cta-block p {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.cta-email {
  margin: 1rem 0 0 !important;
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  color: var(--ink-soft);
}

.cta-email a {
  color: var(--water-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer {
  padding: 3.2rem var(--space);
  text-align: center;
  color: var(--ink-soft);
  border-top: 1px solid rgba(36, 31, 27, 0.1);
}

.footer-ornament {
  width: 7rem;
  margin: 0 auto 1.2rem;
  color: var(--gold);
  opacity: 0.75;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}

.site-footer p {
  margin: 0.2rem 0;
}

.footer-copy {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  color: var(--stone);
}

.fallback {
  max-width: 44rem;
  margin: 0 auto;
  padding: 8rem var(--space) 4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.2%, 0); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

@media (min-width: 901px) {
  .hero-media {
    background: #2a2622;
  }

  .hero-media img {
    /* Opera verticale: su PC mostriamo tutta la composizione (radici incluse) */
    object-fit: contain;
    object-position: center center;
    transform: none;
    animation: none;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(18, 14, 10, 0.5) 0%, rgba(18, 14, 10, 0.18) 42%, rgba(18, 14, 10, 0.78) 100%),
      linear-gradient(90deg, rgba(18, 14, 10, 0.45) 0%, transparent 18%, transparent 82%, rgba(18, 14, 10, 0.45) 100%);
  }
}

@media (max-width: 900px) {
  .why-grid,
  .benefit-list,
  .details-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-portrait {
    max-height: 18rem;
    aspect-ratio: 16 / 9;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    background: rgba(241, 235, 226, 0.97);
    color: var(--ink);
    font-size: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }

  .menu-toggle {
    display: block;
    z-index: 50;
  }

  .site-header.menu-open {
    color: var(--ink);
  }

  .hero-media img {
    object-position: center 38%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .scroll-hint,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
