:root {
  --forest: #244733;
  --forest-deep: #173224;
  --moss: #72885b;
  --gold: #c6903e;
  --cream: #fffaf0;
  --paper: #f5ead5;
  --ink: #2c2a25;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  border-bottom: 1px solid rgba(36, 71, 51, .22);
  background: rgba(255, 250, 240, .96);
}

.nav {
  width: min(70rem, calc(100% - 2rem));
  min-height: 4.5rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--forest-deep);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.brand img { width: 2.75rem; height: 2.75rem; object-fit: contain; }

.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17,46,31,.95) 0%, rgba(17,46,31,.78) 42%, rgba(17,46,31,.14) 76%), url('/assets/hero.webp') center/cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(70rem, calc(100% - 2rem));
  min-height: 34rem;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: 4.5rem 0;
}

.eyebrow {
  color: #efd3a4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.12; text-wrap: balance; }
h1 { margin: .65rem 0 1.25rem; font-size: clamp(2.65rem, 8vw, 5.5rem); }
h2 { color: var(--forest-deep); font-size: clamp(2rem, 5vw, 3.25rem); }

.lead { max-width: 38rem; font-size: clamp(1.15rem, 2.5vw, 1.38rem); }

.button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .82rem 1.15rem;
  border: 2px solid var(--gold);
  border-radius: .3rem;
  color: var(--forest-deep);
  background: #f3cc84;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.button:hover, .button:focus-visible { background: #ffdda0; }

.hero-space { min-height: 23rem; }

.section {
  width: min(62rem, calc(100% - 2rem));
  margin: auto;
  padding: 4.5rem 0;
}

.section p { max-width: 46rem; }

.card {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid rgba(36, 71, 51, .2);
  border-radius: .65rem;
  background: var(--white);
  box-shadow: 0 .65rem 2rem rgba(23, 50, 36, .08);
}

.intro-grid, .book-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}

.characters { width: 100%; max-height: 31rem; object-fit: contain; }
.cover { width: min(100%, 25rem); margin: auto; display: block; border-radius: .35rem; box-shadow: 0 1rem 2.5rem rgba(23,50,36,.2); }
.facts { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.facts li { padding: .65rem 0; border-bottom: 1px solid rgba(36,71,51,.16); }

.page-title { padding: 4.5rem 0 2rem; }
.page-title h1 { color: var(--forest-deep); font-size: clamp(2.5rem, 7vw, 4.6rem); }

.vote-page {
  width: min(70rem, calc(100% - 2rem));
  margin: auto;
  padding: 3rem 0 5rem;
}

.vote-intro {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.vote-intro h1 {
  color: var(--forest-deep);
  font-size: clamp(2.45rem, 7vw, 4.8rem);
}

.vote-intro .lead { max-width: 45rem; }

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

.vote-option {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid rgba(36, 71, 51, .2);
  border-radius: .8rem;
  background: var(--white);
  box-shadow: 0 .5rem 1.5rem rgba(23, 50, 36, .08);
  cursor: pointer;
}

.vote-option:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 144, 62, .22), 0 .6rem 1.6rem rgba(23, 50, 36, .13);
}

.vote-option input {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--forest);
  z-index: 2;
}

.scene {
  display: block;
  width: 100%;
  height: clamp(10rem, 24vw, 15rem);
  background-image: url('/assets/ambientazioni-zic.png');
  background-repeat: no-repeat;
  background-size: 200% 200%;
}

.scene-mountains { background-position: left top; }
.scene-sea { background-position: right top; }
.scene-snow { background-position: left bottom; }
.scene-imaginary { background-position: right bottom; }

.vote-label {
  display: block;
  min-height: 4rem;
  padding: 1rem 1.25rem;
  color: var(--forest-deep);
  font-size: 1.25rem;
  font-weight: 700;
}

.adult-confirmation {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin: 1.6rem 0;
  padding: 1.2rem;
  border: 1px solid rgba(36, 71, 51, .2);
  border-radius: .6rem;
  background: var(--paper);
}

.adult-confirmation input {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .18rem;
  accent-color: var(--forest);
}

.button[type="submit"] { cursor: pointer; font-size: 1rem; }
.button[type="submit"]:disabled { cursor: not-allowed; filter: grayscale(.65); opacity: .6; }

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.vote-error {
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  border: 1px solid #a33b2b;
  border-radius: .5rem;
  color: #70271d;
  background: #fff1ed;
  font-family: Arial, Helvetica, sans-serif;
}

.privacy-note {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(36, 71, 51, .16);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .92rem;
}

.thank-you {
  margin-top: 2rem;
  padding: 2rem;
  border: 2px solid var(--gold);
  border-radius: .8rem;
  background: #fff4da;
}

.thank-you h2 { margin-top: 0; }

.site-footer {
  padding: 2rem 1rem;
  color: #f6ecd9;
  background: var(--forest-deep);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1.25rem;
  margin-bottom: .8rem;
}

.footer-links a { color: #f3cc84; }

.download-card {
  display: grid;
  grid-template-columns: minmax(12rem, .65fr) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

.minibook-cover {
  width: 100%;
  border: 1px solid rgba(36, 71, 51, .18);
  box-shadow: 0 .7rem 1.8rem rgba(23, 50, 36, .14);
}

.share-drawing { margin-top: 2rem; }
.share-drawing h2 { margin-top: .55rem; }

.send-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.send-options > div {
  padding: 1.35rem;
  border: 1px solid rgba(36, 71, 51, .2);
  border-radius: .6rem;
  background: var(--cream);
}

.send-options h3 {
  margin: 0;
  color: var(--forest-deep);
  font-size: 1.25rem;
}

.secondary-button { background: var(--paper); }

.legal-page { max-width: 58rem; }
.legal-card h2 { margin: 2rem 0 .7rem; font-size: clamp(1.45rem, 4vw, 2rem); }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { max-width: none; }

@media (max-width: 720px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .nav-links { width: 100%; justify-content: space-between; }
  .nav-links { flex-wrap: wrap; font-size: .95rem; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding: 3.5rem 0; }
  .hero-inner { min-height: 30rem; }
  .hero-space { display: none; }
  .intro-grid, .book-grid { grid-template-columns: 1fr; }
  .vote-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .send-options { grid-template-columns: 1fr; }
  .minibook-cover { max-width: 23rem; margin: auto; }
}
