:root {
  --cream: #FBF3EA;
  --cream-2: #F3E6D6;
  --orange: #E8561C;
  --orange-dark: #C6440F;
  --olive: #4F6B34;
  --olive-dark: #3E5429;
  --ink: #1E1E1E;
  --gray: #6B6B6B;
  --white: #FFFFFF;
  --border: #E7DCCC;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --shadow-soft: 0 20px 45px -20px rgba(30, 20, 10, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-serif); margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
.container--narrow { max-width: 760px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px -10px rgba(232,86,28,.6); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--outline:hover { background: var(--white); }
.btn--light { background: var(--white); color: var(--olive-dark); }
.btn--light:hover { background: var(--cream); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.42); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.link-arrow {
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.link-arrow span { transition: transform .15s ease; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow--sm { font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 20, 10, .06);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nav.scrolled { box-shadow: 0 14px 32px -22px rgba(25,16,8,.4); }

/* Sopra una foto in hero: nessuno sfondo finché non si scrolla */
.nav--on-photo { background: transparent; border-bottom-color: transparent; }
.nav--on-photo.scrolled { background: rgba(255,255,255,.94); border-bottom-color: rgba(30,20,10,.06); }
.nav--on-photo .brand__name { color: var(--white); }
.nav--on-photo .nav__toggle span { background: var(--white); }
.nav--on-photo.scrolled .brand__name { color: var(--ink); }
.nav--on-photo.scrolled .nav__toggle span { background: var(--ink); }

@media (min-width: 861px) {
  .nav--on-photo .nav__link { color: var(--white); opacity: .88; }
  .nav--on-photo .nav__link:hover, .nav--on-photo .nav__link.active { opacity: 1; color: var(--orange); }
  .nav--on-photo.scrolled .nav__link { color: var(--ink); opacity: .8; }
}

.nav__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding .2s ease;
}
.nav.scrolled .nav__inner { padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__logo { border-radius: 50%; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  color: var(--ink);
  transition: color .25s ease;
}

.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--ink); opacity: .8; transition: color .25s ease; }
.nav__link:hover, .nav__link.active { opacity: 1; color: var(--orange); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease, background .25s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (foto full-bleed) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 184px 0 130px;
  color: var(--white);
}
.blob { position: absolute; border-radius: 50%; z-index: 0; filter: blur(2px); opacity: .6; }
.blob--beige { width: 480px; height: 480px; background: var(--cream-2); top: -140px; right: -120px; }
.blob--green { width: 220px; height: 460px; background: var(--olive); opacity: .18; border-radius: 120px; top: 60px; right: 40px; transform: rotate(12deg); }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(185deg, rgba(20,14,8,.2) 0%, rgba(20,14,8,.56) 58%, rgba(20,14,8,.85) 100%);
}

.hero__grid { position: relative; z-index: 2; max-width: 720px; }

.hero__title { font-size: 72px; font-weight: 700; line-height: 1.04; color: var(--white); }
.hero__edition { display: block; color: var(--orange); }
.hero__subtitle { font-family: var(--font-serif); font-size: 28px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin: 22px 0 30px; line-height: 1.3; }
.hero__date { display: block; font-size: 22px; letter-spacing: .02em; text-transform: none; font-weight: 600; color: rgba(255,255,255,.88); margin-top: 4px; }
.hero .countdown { justify-content: flex-start; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__social-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-right: 4px; }
.hero__social-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); transition: transform .15s ease, background .15s ease, color .15s ease; }
.hero__social-link:hover { transform: translateY(-2px); background: var(--orange); color: var(--white); }

.hero__handwritten {
  position: absolute;
  z-index: 2;
  right: 6%;
  top: 210px;
  max-width: 210px;
  text-align: right;
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}
.hero__handwritten svg { width: 22px; height: 22px; fill: var(--orange); stroke: none; display: inline-block; margin-top: 4px; }

/* ---------- Valori ---------- */
.values { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 46px 0; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.value { text-align: center; padding: 0 22px; position: relative; }
.value + .value::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.value__icon { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 14px; }
.value h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.value p { margin: 0; color: var(--gray); font-size: 14px; }

/* ---------- Sezioni generiche ---------- */
.section { padding: 90px 0; }
.section--tight { padding-top: 0; padding-bottom: 70px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.section__title { font-size: 34px; font-weight: 700; }

/* ---------- Sottopagine: hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 60px; text-align: center; }
.page-hero .blob { z-index: 0; }
.page-hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page-hero__title { font-size: 46px; font-weight: 700; margin: 4px 0 20px; }
.page-hero__lead { color: var(--gray); font-size: 16.5px; margin: 0 auto 30px; max-width: 600px; }
.page-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Variante fotografica full-bleed (stile v2) */
.page-hero--photo { padding: 190px 0 90px; color: var(--white); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(185deg, rgba(20,14,8,.28) 0%, rgba(20,14,8,.6) 60%, rgba(20,14,8,.86) 100%);
}
.page-hero--photo .page-hero__title { color: var(--white); }
.page-hero--photo .page-hero__lead { color: rgba(255,255,255,.88); }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 0 0 30px; }
.countdown__unit {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 88px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.countdown__value { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--orange); line-height: 1; }
.countdown__label { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }

/* ---------- Contenuto legale ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal p { color: var(--gray); font-size: 15.5px; line-height: 1.7; margin: 0 0 20px; }
.legal a { color: var(--orange); font-weight: 600; }
.legal a:hover { text-decoration: underline; }

/* ---------- Programma / appuntamenti ---------- */
.schedule { display: flex; flex-direction: column; gap: 16px; }
.schedule__item {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 26px;
}
.schedule__date { flex: 0 0 auto; text-align: center; min-width: 74px; }
.schedule__date-day { display: block; font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--orange); line-height: 1; }
.schedule__date-month { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin-top: 4px; }
.schedule__divider { width: 1px; align-self: stretch; background: var(--border); }
.schedule__body { flex: 1 1 auto; }
.schedule__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.schedule__meta { color: var(--gray); font-size: 14px; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.schedule__meta span { display: inline-flex; align-items: center; gap: 6px; }
.schedule__meta .icon { width: 16px; height: 16px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--orange); font-weight: 400; margin-left: 12px; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--gray); margin: 12px 0 0; font-size: 14.5px; }

.faq-columns { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: stretch; }
.faq-help {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.faq-help__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.faq-help__icon .icon { color: var(--olive-dark); width: 22px; height: 22px; }
.faq-help h3 { font-size: 18px; margin: 0 0 8px; }
.faq-help p { color: var(--gray); font-size: 14.5px; margin: 0 0 22px; }

/* ---------- Contatti (foto full-bleed) ---------- */
.contact { position: relative; overflow: hidden; background: var(--olive-dark); color: var(--white); padding: 110px 0; margin-top: 40px; }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20,14,8,.8) 0%, rgba(20,14,8,.5) 55%, rgba(20,14,8,.24) 100%);
}
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact__title { font-size: 30px; font-weight: 700; margin-bottom: 26px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin: 0 0 30px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.contact__list .icon { color: var(--white); opacity: .9; }
.contact__list a:hover { text-decoration: underline; }

.contact__map { background: var(--white); padding: 14px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.contact__map img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-md); }

/* ---------- Footer ---------- */
.footer { background: var(--olive-dark); color: var(--white); border-top: 1px solid rgba(255,255,255,.15); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 16px; flex-wrap: wrap; }
.footer .brand__name { color: var(--white); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; opacity: .9; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.footer__social .icon { width: 18px; height: 18px; stroke: var(--white); }
.footer__social a:hover { background: rgba(255,255,255,.22); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px 30px; font-size: 13px; opacity: .75; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { gap: 16px; }
  .hero__title { font-size: 56px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .value + .value::before { display: none; }
  .value { padding: 0 10px 20px; }
  .faq-columns { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 8px 4px; }
    .nav__toggle { display: flex; }
}

@media (max-width: 700px) {
  .hero { padding: 150px 0 76px; }
  .hero__title { font-size: 42px; }
  .hero__subtitle { font-size: 20px; margin: 16px 0 24px; }
  .hero__date { font-size: 18px; }
  .hero__handwritten { display: none; }
  .hero .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
  .hero .countdown__unit { min-width: 0; padding: 12px 4px; }
  .hero .countdown__label { font-size: 9.5px; letter-spacing: .04em; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero__social-label { grid-column: 1 / -1; margin: 0; }
  .hero__social-link { justify-content: center; }
  .section { padding: 60px 0; }
  .section--tight { padding-bottom: 50px; }
  .section__title { font-size: 26px; }
  .footer__top { justify-content: center; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }

  .page-hero { padding: 120px 0 40px; }
  .page-hero--photo { padding: 130px 0 50px; }
  .page-hero__title { font-size: 32px; }
  .countdown__unit { min-width: 72px; padding: 12px 8px; }
  .countdown__value { font-size: 24px; }
  .schedule__item { flex-wrap: wrap; gap: 14px; padding: 18px 20px; }
  .schedule__divider { display: none; }
}

/* ---------- Reader PDF ---------- */
.reader { display: flex; flex-direction: column; height: 100vh; padding-top: 72px; background: var(--ink); color: var(--white); }
.reader__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 20px; background: rgba(255,255,255,.06); }
.reader__title { font-size: 20px; color: var(--white); }
.reader__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reader__btn { background: rgba(255,255,255,.12); color: var(--white); border: 0; border-radius: 999px; min-width: 40px; height: 40px; padding: 0 14px; font: inherit; font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.reader__btn:hover:not(:disabled) { background: var(--orange); }
.reader__btn:disabled { opacity: .35; cursor: default; }
.reader__btn--link { font-size: 14px; font-weight: 600; }
.reader__count { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.reader__count input { width: 56px; height: 36px; border-radius: 10px; border: 0; text-align: center; font: inherit; }
.reader__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden; }
.reader__stage canvas { box-shadow: 0 20px 50px rgba(0,0,0,.5); background: var(--white); }
.reader__status { color: rgba(255,255,255,.75); }
.reader:fullscreen { padding-top: 0; }
