:root {
  --blu: #2948d8;
  --blu-scuro: #1833a9;
  --blu-profondo: #101e68;
  --arancio: #f2a000;
  --bianco: #fffdf8;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; min-width: 320px; color: var(--bianco); background: #111d61; font-family: "DM Sans", sans-serif; }
a { color: inherit; }

.landing-shell { position: relative; width: 100%; height: 100svh; min-height: 560px; overflow: hidden; }
.message-panel { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; padding: clamp(26px, 4vw, 58px) clamp(34px, 6vw, 92px); background: radial-gradient(circle at 15% 8%, rgba(112,140,255,.22), transparent 34%), linear-gradient(145deg, rgba(47,78,223,.5), rgba(20,42,157,.56)); }
.message-panel header { display: flex; align-items: center; justify-content: space-between; }
.identity { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.identity span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; font: italic 600 17px "Playfair Display", serif; }
.identity strong { font: 600 15px "Playfair Display", serif; }
.digital-label { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.message-copy { align-self: center; width: min(760px, 100%); margin: auto 0; text-align: center; text-shadow: 0 2px 18px rgba(5,13,52,.55); }
.eyebrow { margin: 0 0 clamp(14px, 2.4vh, 24px); color: #cbd5ff; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font: 600 clamp(55px, 6.3vw, 98px)/.82 "Playfair Display", serif; letter-spacing: -.055em; text-shadow: 0 5px 24px rgba(7,18,80,.25); }
h1 em { font-weight: 600; }
.changing-message { position: relative; min-height: 80px; margin-top: clamp(22px, 3.5vh, 38px); padding: 18px 18px 0; border-top: 1px solid rgba(255,255,255,.34); }
.changing-message p { max-width: 510px; margin: 0; font: italic 600 clamp(20px, 2vw, 29px)/1.35 "Playfair Display", serif; transition: opacity .35s ease, transform .35s ease; }
.changing-message p.is-changing { opacity: 0; transform: translateY(6px); }
.quote-mark { display: none; }
.book-intro { max-width: 540px; margin: 18px auto 0; color: rgba(255,255,255,.75); font-size: clamp(12px, 1.1vw, 15px); line-height: 1.65; }

.actions { display: grid; grid-template-columns: 1fr 1fr; justify-content: center; gap: 12px; margin-top: clamp(17px, 2.6vh, 28px); }
.buy-action, .whatsapp-action { display: flex; align-items: center; min-height: 62px; border-radius: 10px; text-decoration: none; }
.buy-action { display: grid; grid-template-columns: 1fr auto auto; gap: 13px; padding: 0 18px; color: var(--blu-profondo); background: #fff; box-shadow: 0 15px 30px rgba(9,21,88,.24); }
.buy-action span { font-size: 12px; font-weight: 700; }
.buy-action strong { color: var(--blu); font: 700 18px "Playfair Display", serif; white-space: nowrap; }
.buy-action i { color: var(--arancio); font-style: normal; font-size: 18px; }
.buy-label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.buy-label small { color: #6e7697; font-size: 8px; font-weight: 600; white-space: nowrap; }
.buy-label small b, .buy-label small em { font: italic 800 11px/1 "DM Sans", sans-serif; letter-spacing: -.07em; }
.buy-label small b { color: var(--blu); }
.buy-label small em { color: var(--arancio); }
.whatsapp-action { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 0 17px; color: rgba(255,255,255,.8); background: #22864d; font-size: 9px; line-height: 1.35; }
.whatsapp-action strong { color: #fff; font-size: 11px; }
.whatsapp-action { position: relative; padding-right: 58px; }
.whatsapp-action svg { position: absolute; top: 50%; right: 16px; width: 30px; height: 30px; padding: 5px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; fill: none; stroke: #fff; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); }

.food-panel { position: absolute; inset: 0; min-width: 0; overflow: hidden; background: #d8cbb8; }
.food-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 59% center; opacity: 0; transform: scale(1.025); transition: opacity .8s ease, transform 6s ease; }
.food-slide.is-visible { opacity: 1; transform: scale(1); }
.food-overlay { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(25,49,165,.18), rgba(10,21,69,.27)); pointer-events: none; }
.food-panel p { display: none; }
.food-panel p span:first-child { color: #ffbf3f; }

@media (min-width: 861px) {
  .message-copy { transform: translateY(clamp(18px, 3.5vh, 38px)); }
}

@media (max-width: 860px) {
  .landing-shell { min-height: 0; }
  .food-overlay { background: linear-gradient(145deg, rgba(47,78,223,.28), rgba(16,30,104,.38)); }
  .message-panel { width: 100%; height: 100%; padding: 24px max(24px, 7vw); background: linear-gradient(145deg, rgba(47,78,223,.38), rgba(16,30,104,.42)); }
  .message-copy { align-self: auto; margin: auto 0; text-align: left; text-shadow: 0 2px 14px rgba(4,12,54,.7); }
  .changing-message { padding: 0 0 0 16px; border-top: 0; border-left: 1px solid rgba(255,255,255,.45); }
  .book-intro { margin-left: 0; }
  h1 { font-size: clamp(58px, 16vw, 88px); }
  .book-intro { max-width: 520px; }
}

@media (max-width: 560px) {
  .message-panel { padding: 18px 20px; }
  .identity span { width: 40px; height: 40px; }
  .identity strong { font-size: 13px; }
  h1 { font-size: clamp(52px, 17vw, 74px); }
  .changing-message { min-height: 65px; margin-top: 20px; padding-left: 21px; }
  .changing-message p { font-size: clamp(18px, 5.4vw, 23px); }
  .book-intro { margin-top: 11px; font-size: 11px; line-height: 1.5; }
  .actions { grid-template-columns: 1fr; gap: 7px; margin-top: 14px; }
  .buy-action { box-shadow: none; }
  .buy-action, .whatsapp-action { min-height: 52px; }
  .whatsapp-action { justify-content: center; }
}

@media (max-height: 680px) {
  .message-panel { padding-top: 16px; padding-bottom: 16px; }
  .message-copy { margin: 1vh 0; }
  .eyebrow { margin-bottom: 10px; }
  h1 { font-size: clamp(47px, 11vh, 72px); }
  .changing-message { min-height: 52px; margin-top: 14px; }
  .changing-message p { font-size: 18px; }
  .book-intro { margin-top: 8px; }
  .buy-action, .whatsapp-action { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) { .changing-message p { transition: none; } }
