:root {
  --ink: #2d1a14;
  --canvas: #fff7ea;
  --rust: #8a321f;
  --cream: #fffbf3;
  --line: #e8cdbc;
  --stage-dark: #341812;
  --stage-light: #ffe5c9;
  --ease-out: cubic-bezier(.22,.75,.25,1);
}
::selection { color: #3d1912; background: #fac59f }
html { scroll-behavior: smooth }
body { padding-bottom: 0 }
body:has(.tray:not([hidden])) { padding-bottom: 85px }
header { background: #fff7ea; box-shadow: none }
.bar { min-height: 69px }
header .brand img { width: 44px; height: 45px }
nav a:hover { text-decoration: underline; text-underline-offset: .35em }
.opening {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(560px,75svh,850px);
  overflow: hidden;
  color: #fff0db;
  background: var(--stage-dark);
}
.opening-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: stage-open .85s var(--ease-out) both;
}
.opening::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg,#2c120eed 0%,#2c120ed4 24%,#2c120e40 57%,transparent 78%);
}
.opening-content { padding-block: 54px 68px }
.opening h1 {
  font-size: clamp(4.65rem,10vw,9.2rem);
  line-height: .8;
  letter-spacing: -.04em;
  color: #fff0db;
}
.opening h1 em { color: #f6b48d; font-weight: 400 }
.opening p { margin: 27px 0 22px; color: #ffecda; font-size: clamp(1rem,1.6vw,1.2rem) }
.opening .entrance { border-radius: 8px; background: #ffdebb; color: #391611; padding-inline: 23px }
.opening .entrance:hover { background: #fff0d9 }
.opening-exit img { animation: stage-enter .55s var(--ease-out) both }
.worlds { padding-block: clamp(42px,6vw,90px) }
.worlds-heading { display: grid; grid-template-columns: 1fr minmax(220px, .48fr); align-items: end; gap: 20px }
.worlds-heading h2 { font-size: clamp(2.9rem,7vw,6.2rem); letter-spacing: -.04em }
.worlds-heading p { color: var(--muted); margin: 0 0 4px; max-width: 34ch }
.world-picker {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  margin-block: 24px 16px;
  gap: 8px;
}
.world-option {
  font-size: .94rem;
  min-height: 46px;
  padding: 8px;
  color: #683625;
  background: transparent;
  font-weight: 750;
  border: 1px solid #dfb6a1;
  border-radius: 7px;
  transition: background .17s, color .17s, border-color .17s;
}
.world-option:hover { background: #f9e6d6 }
.world-option[aria-pressed=true] { color: #fff2df; background: var(--rust); border-color: var(--rust) }
.world-scenes { overflow: hidden; border-radius: 16px; background: var(--stage-dark) }
.world-scene {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  min-height: clamp(345px,43vw,570px);
  isolation: isolate;
  color: #fff0db;
  background: #482319;
}
.world-scene[data-world=mare] { background: #203f3e }
.world-scene[data-world=giardino] { background: #3b3824 }
.world-scene[data-world=fabbrica] { background: #6c2d21 }
.world-scene[data-world=posta] { background: #653723 }
.world-scene[data-world=orologio] { background: #523220 }
.world-scene img {
  width: 100%;
  height: 100%;
  max-height: 570px;
  object-fit: cover;
  animation: scene-reveal .42s var(--ease-out) both;
}
.world-scene .card-copy {
  justify-content: center;
  align-self: stretch;
  padding: clamp(22px,4vw,65px);
  background: transparent;
}
.world-scene h3 { color: #fff0db; font-size: clamp(2.2rem,4.8vw,4.6rem); line-height: .98; letter-spacing: -.04em; text-wrap: balance }
.world-scene p { color: #fff0db; max-width: 35ch; margin-block: 17px 20px }
.world-scene .button { background: #ffe5c9; border-color: transparent; color: #482319; margin-top: 0; border-radius: 8px }
.world-scene .button:hover { background: #fff4e4 }
.world-scene .button[aria-pressed=true] { background: transparent; color: #fff5e9; border-color: #f0bd9b }
.extras { background: #f4dbca; border-block: 1px solid #e3c3af }
#extra h2,#preventivo h2,.faq h2 { text-wrap: balance; letter-spacing: -.04em }
.tray,.product-grid .card,#richiesta { animation: none }
.tray { z-index: 4 }
footer { background: var(--stage-dark); padding-block: 34px }
@keyframes stage-open { from { transform: scale(1.045); opacity: .78 } to { transform: scale(1); opacity: 1 } }
@keyframes stage-enter { from { transform: scale(1) } to { transform: scale(1.055) } }
@keyframes scene-reveal { from { opacity:.65; transform: translateX(-5px) } to { opacity:1; transform: translateX(0) } }
@media(max-width:850px) {
  .opening { min-height: 550px }
  .world-scene { grid-template-columns: 1.2fr 1fr }
  .world-picker { grid-template-columns: repeat(3,minmax(0,1fr)) }
}
@media(max-width:650px) {
  .opening { display: flex; align-items: flex-end; min-height: clamp(540px,77svh,740px) }
  .opening-image { object-position: 71% 34% }
  .opening::after { background: linear-gradient(0deg,#2c120efc 0%,#2c120eda 25%,#2c120e19 65%,transparent) }
  .opening-content { padding-block: 245px 32px }
  .opening h1 { font-size: clamp(4.2rem,15vw,6.2rem); line-height: .86; max-width: 7ch }
  .opening h1 br:nth-of-type(2) { display:none }
  .opening h1 em { display: inline-block }
  .opening p { margin: 18px 0 16px }
  .worlds-heading { grid-template-columns: 1fr; gap: 10px }
  .world-picker { margin-top: 18px }
  .world-scene { grid-template-columns: 1fr }
  .world-scene img { aspect-ratio: 1.27; height: auto; object-fit: cover }
  .world-scene .card-copy { padding: 24px 20px 26px }
  .world-scene h3 { font-size: clamp(2.2rem,10vw,3.7rem) }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto }
  .opening-image,.opening-exit img,.world-scene img { animation: none }
}

#worlds-title:focus { outline: none }
