/*
Theme Name: Le avventure di Sognolino
Theme URI: https://www.leavventuredisognolino.it
Author: Academ Group srl
Author URI: https://www.academgroup.it
Description: Tema ufficiale del sito Le avventure di Sognolino.
Version: 1.3.0
Text Domain: le-avventure-di-sognolino
*/
:root {
  --blue-950: #082d43;
  --blue-900: #0b3c58;
  --blue-800: #105679;
  --blue-700: #1a6f91;
  --sky: #8fd6e0;
  --aqua: #4eb9c7;
  --yellow: #f4ef3b;
  --yellow-soft: #fff9a8;
  --coral: #ef7658;
  --green: #70ad62;
  --cream: #fff8ea;
  --paper: #fffdf8;
  --ink: #12212a;
  --muted: #56636b;
  --line: rgba(8, 45, 67, .12);
  --white: #ffffff;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --shadow: 0 30px 80px rgba(4, 36, 53, .22);
  --shadow-soft: 0 20px 50px rgba(10, 52, 71, .12);
  --container: 1180px;
  --section-space: clamp(82px, 9vw, 128px);
  --text-gap: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; transform: translateY(-160%); background: var(--yellow); color: var(--blue-950); padding: 10px 14px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: var(--white); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-star { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue-950); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-copy small { margin-top: 4px; opacity: .76; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); font-size: .92rem; font-weight: 700; }
.site-nav a { text-decoration: none; opacity: .88; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus { opacity: 1; }
.nav-cta { padding: 10px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.45); color: white; background: transparent; padding: 9px 14px; border-radius: 999px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 840px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(119,204,220,.25), transparent 28%),
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.08), transparent 23%),
    radial-gradient(circle at 70% 80%, rgba(50,151,185,.32), transparent 35%),
    linear-gradient(145deg, var(--blue-950), var(--blue-800));
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .22; }
.hero::before { width: 420px; height: 420px; right: -140px; top: 180px; background: var(--sky); }
.hero::after { width: 330px; height: 330px; left: -130px; bottom: 80px; background: var(--aqua); }
.hero-stars { position: absolute; inset: 0; opacity: .75; background-image: radial-gradient(circle, var(--yellow) 0 2px, transparent 3px); background-size: 105px 105px; background-position: 20px 30px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(46px, 5vw, 76px); min-height: 840px; padding: 132px 0 108px; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 18px; color: var(--yellow); font-size: .79rem; font-weight: 900; text-transform: uppercase; letter-spacing: .17em; line-height: 1.45; }
.eyebrow.dark { color: var(--blue-700); }
.hero h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; line-height: 1.06; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.35rem, 6.2vw, 6.15rem); }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-lead { max-width: 670px; margin: 30px 0 0; font-size: 1.17rem; line-height: 1.72; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 900; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus { transform: translateY(-2px); }
.button-primary { background: var(--yellow); color: var(--blue-950); box-shadow: 0 14px 30px rgba(244,239,59,.22); }
.button-secondary { color: var(--white); border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.button-yellow { background: var(--yellow); color: var(--blue-950); }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.45); background: transparent; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.74); font-size: .86rem; }
.hero-meta span { display: flex; align-items: baseline; gap: 6px; }
.hero-meta strong { color: var(--white); font-size: 1.15rem; }
.hero-art { position: relative; min-height: 650px; display: grid; place-items: center; }
.moon { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: linear-gradient(145deg, #fffed0, var(--yellow)); box-shadow: 0 0 90px rgba(244,239,59,.26); }
.book-cover { position: relative; z-index: 2; width: min(390px, 82%); transform: rotate(3deg); border-radius: 8px; box-shadow: var(--shadow); }
.author-chip { position: absolute; z-index: 4; left: 5%; bottom: 30px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(8,45,67,.82); backdrop-filter: blur(12px); box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.author-chip img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.author-chip span { display: flex; flex-direction: column; line-height: 1.2; }
.author-chip small { color: rgba(255,255,255,.65); }
.author-chip strong { margin-top: 3px; }
.wave { position: absolute; z-index: 3; left: -2%; right: -2%; bottom: -80px; height: 150px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--paper); }

.section { padding: var(--section-space) 0; }
.section h2 { margin: 0; font-size: clamp(2.55rem, 4.65vw, 4.85rem); color: var(--blue-950); }
.section-copy { max-width: 650px; }
.section-copy .intro { margin: 28px 0 0; font-size: 1.17rem; line-height: 1.75; color: var(--ink); }
.section-copy > p:not(.eyebrow):not(.intro) { margin: var(--text-gap) 0 0; color: var(--muted); }
.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(60px, 7vw, 96px); }
.book-visual { position: relative; display: grid; place-items: center; min-height: 650px; }
.book-visual img { position: relative; z-index: 2; width: min(430px, 84%); border-radius: 8px; transform: rotate(-3deg); box-shadow: var(--shadow); }
.book-shadow { position: absolute; width: 68%; height: 72%; transform: rotate(7deg); border-radius: 25px; background: linear-gradient(160deg, var(--sky), var(--blue-700)); opacity: .23; }
.sticker { position: absolute; z-index: 4; top: 20px; right: 8px; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--yellow); color: var(--blue-950); font-weight: 900; line-height: 1.05; text-align: center; transform: rotate(10deg); box-shadow: 0 16px 30px rgba(0,0,0,.16); }
.book-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--line); }
.book-facts div { min-height: 94px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 18px 20px; background: var(--white); }
.book-facts span { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.book-facts strong { color: var(--blue-950); line-height: 1.35; }
.value-list { display: grid; gap: 0; margin: 30px 0 30px; }
.value-list article { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 19px 0; border-top: 1px solid var(--line); }
.value-list article:last-child { border-bottom: 1px solid var(--line); }
.value-list article > span { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 2px; border-radius: 50%; background: var(--blue-950); color: var(--yellow); font-weight: 900; }
.value-list h3 { margin: 0; color: var(--blue-950); line-height: 1.3; }
.value-list p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-800); font-weight: 900; text-underline-offset: 5px; }

.story-section { background: var(--cream); }
.section-heading { margin-bottom: clamp(42px, 5vw, 64px); }
.story-heading { display: grid; grid-template-columns: 1fr .82fr; align-items: end; gap: 70px; }
.story-heading > p { max-width: 590px; margin: 0 0 5px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.story-card { overflow: hidden; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); min-height: 430px; border: 1px solid rgba(8,45,67,.1); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-soft); }
.story-card figure { position: relative; min-height: 430px; margin: 0; overflow: hidden; background: #e5eef1; }
.story-card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,45,67,.28), transparent 35%); pointer-events: none; }
.story-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.story-card:hover figure img { transform: scale(1.025); }
.story-card figcaption { position: absolute; z-index: 2; left: 16px; bottom: 14px; color: rgba(255,255,255,.92); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.story-card-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3vw, 42px); }
.story-number { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; color: var(--blue-950); background: var(--yellow); font-weight: 900; }
.story-card h3 { margin: 0; color: var(--blue-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.2vw, 2.15rem); line-height: 1.15; }
.story-card p { margin: 16px 0 0; color: var(--muted); line-height: 1.68; }

.world-section { position: relative; overflow: hidden; color: var(--white); background:
  radial-gradient(circle at 16% 20%, rgba(113,196,210,.23), transparent 24%),
  radial-gradient(circle at 90% 20%, rgba(244,239,59,.12), transparent 26%),
  linear-gradient(145deg, var(--blue-950), var(--blue-800)); }
.world-section::after { content: "★"; position: absolute; right: 7%; top: 80px; color: var(--yellow); font-size: 3.5rem; transform: rotate(12deg); }
.world-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(60px, 7vw, 86px); }
.world-copy { max-width: 580px; }
.world-section h2 { color: var(--white); }
.world-copy > p:not(.eyebrow) { margin: 28px 0 0; color: rgba(255,255,255,.8); font-size: 1.12rem; line-height: 1.75; }
.world-copy blockquote { margin: 34px 0 0; padding: 25px 0 25px 28px; border-left: 4px solid var(--yellow); color: var(--yellow-soft); font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.5; }
.character-card { overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); background: rgba(255,255,255,.08); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.character-card img { width: 100%; height: 540px; object-fit: cover; object-position: 50% 45%; }
.character-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; padding: 24px 28px 28px; }
.character-caption strong { color: var(--yellow); }
.character-caption span { max-width: 360px; color: rgba(255,255,255,.74); font-size: .92rem; line-height: 1.55; }

.schools-section { background: var(--cream); }
.section-heading.centered { max-width: 820px; margin: 0 auto clamp(42px, 5vw, 62px); text-align: center; }
.section-heading.centered > p:last-child { margin: 24px auto 0; max-width: 720px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.school-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.school-card { min-height: 310px; padding: 36px 34px; border: 1px solid rgba(8,45,67,.1); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-soft); }
.card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 32px; border-radius: 18px; background: var(--yellow); color: var(--blue-950); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 900; }
.school-card:nth-child(2) .card-icon { background: var(--sky); }
.school-card:nth-child(3) .card-icon { background: #ffd6c9; }
.school-card h3 { margin: 0; color: var(--blue-950); font-size: 1.35rem; line-height: 1.3; }
.school-card p { margin: 16px 0 0; color: var(--muted); line-height: 1.65; }
.school-cta { margin-top: 30px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: var(--radius-md); background: var(--blue-950); color: var(--white); }
.school-cta div { display: flex; flex-direction: column; gap: 4px; }
.school-cta strong { font-size: 1.25rem; }
.school-cta span { color: rgba(255,255,255,.72); }

.author-section { background: var(--paper); }
.author-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(60px, 7vw, 96px); }
.author-photo { position: relative; }
.author-photo img { width: 100%; height: 730px; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo-note { position: absolute; right: -22px; bottom: 42px; padding: 14px 20px; border-radius: 999px; background: var(--yellow); color: var(--blue-950); font-weight: 900; transform: rotate(-3deg); box-shadow: 0 15px 30px rgba(0,0,0,.16); }
.author-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.author-tags span { padding: 9px 13px; border-radius: 999px; color: var(--blue-800); background: #e8f5f7; font-size: .88rem; font-weight: 800; }

.quote-section { padding: clamp(72px, 8vw, 94px) 0; background: var(--yellow); }
.quote-inner { max-width: 940px; text-align: center; }
.quote-star { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue-950); color: var(--yellow); font-size: 1.4rem; }
.quote-inner blockquote { margin: 26px auto 16px; color: var(--blue-950); font-family: Georgia, serif; font-size: clamp(2.2rem, 4.8vw, 4.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.quote-inner p { max-width: 720px; margin: 0 auto; color: rgba(8,45,67,.76); line-height: 1.68; }

.buy-section { background: var(--paper); }
.buy-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 320px 1fr; align-items: center; gap: 64px; min-height: 500px; padding: 54px 72px; border-radius: var(--radius-lg); color: var(--white); background:
  radial-gradient(circle at 80% 20%, rgba(112,173,98,.25), transparent 25%),
  linear-gradient(145deg, var(--blue-950), var(--blue-800)); box-shadow: var(--shadow); }
.buy-card::after { content: "★"; position: absolute; top: 45px; right: 65px; color: var(--yellow); font-size: 3rem; transform: rotate(15deg); }
.buy-cover img { width: 250px; transform: rotate(-5deg); border-radius: 5px; box-shadow: 0 25px 50px rgba(0,0,0,.34); }
.buy-copy { position: relative; z-index: 2; max-width: 700px; }
.buy-copy h2 { color: var(--white); font-size: clamp(2.5rem, 4.2vw, 4.3rem); }
.buy-copy > p:not(.eyebrow) { margin: 24px 0 0; color: rgba(255,255,255,.76); }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: clamp(56px, 7vw, 92px); }
.contact-copy { position: sticky; top: 40px; max-width: 520px; }
.contact-intro { margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.contact-details { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.contact-details div { display: flex; flex-direction: column; gap: 4px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.contact-details span { color: var(--muted); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.contact-details a, .contact-details strong { color: var(--blue-950); font-weight: 900; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-form { padding: clamp(30px, 4vw, 48px); border: 1px solid rgba(8,45,67,.1); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-soft); }
.form-row { display: grid; gap: 20px; }
.form-row + .form-row, .form-row + .form-field, .form-field + .privacy-check { margin-top: 22px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 9px; }
.form-field label { color: var(--blue-950); font-size: .91rem; font-weight: 900; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid rgba(8,45,67,.17); border-radius: 12px; color: var(--ink); background: var(--paper); outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-700); background: var(--white); box-shadow: 0 0 0 4px rgba(26,111,145,.1); }
.privacy-check { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 12px; color: var(--muted); font-size: .84rem; line-height: 1.55; cursor: pointer; }
.privacy-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue-800); }
.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.form-status { margin: 0; color: var(--green); font-size: .9rem; font-weight: 800; }

.newsletter { padding: clamp(62px, 7vw, 82px) 0; background: var(--paper); }
.newsletter-inner { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 60px; }
.newsletter h2 { margin: 0; color: var(--blue-950); font-size: clamp(2rem, 3.4vw, 3.4rem); }
.newsletter-form { display: flex; gap: 10px; padding: 8px; border: 1px solid rgba(8,45,67,.13); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-soft); }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; color: var(--ink); background: transparent; }

.site-footer { padding: 72px 0 28px; color: var(--white); background: var(--blue-950); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 70px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid p { max-width: 430px; margin: 10px 0 0; color: rgba(255,255,255,.65); }
.footer-grid a, .footer-grid span { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: .83rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .site-nav { gap: 14px; font-size: .86rem; }
  .story-card { grid-template-columns: 1fr; }
  .story-card figure { min-height: 360px; max-height: 430px; }
}

@media (max-width: 980px) {
  .site-header { position: absolute; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 82px; left: 24px; right: 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border-radius: 18px; color: var(--blue-950); background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { border-color: rgba(8,45,67,.15); }
  .hero-grid, .split-layout, .world-grid, .author-grid, .newsletter-inner, .contact-grid, .story-heading { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 150px; gap: 20px; }
  .hero-art { min-height: 610px; }
  .hero { min-height: auto; }
  .split-layout, .world-grid, .author-grid, .contact-grid { gap: 54px; }
  .story-heading { gap: 24px; }
  .story-heading > p { margin: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: .78fr 1.22fr; }
  .school-cards { grid-template-columns: 1fr; }
  .school-card { min-height: auto; }
  .buy-card { grid-template-columns: 220px 1fr; padding: 48px; gap: 36px; }
  .contact-copy { position: static; max-width: 720px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .header-inner { min-height: 78px; }
  .brand-copy small { display: none; }
  .site-nav { top: 76px; left: 15px; right: 15px; }
  .hero-grid { padding-top: 126px; padding-bottom: 92px; }
  .hero h1 { font-size: clamp(3rem, 14.8vw, 4.65rem); }
  .hero-lead { margin-top: 24px; font-size: 1.04rem; }
  .hero-meta { flex-direction: column; gap: 8px; }
  .hero-art { min-height: 500px; }
  .moon { width: 330px; height: 330px; }
  .book-cover { width: 280px; }
  .author-chip { left: 0; bottom: 18px; }
  .section h2 { font-size: clamp(2.45rem, 12vw, 3.75rem); }
  .section-copy .intro { font-size: 1.06rem; }
  .book-visual { min-height: 510px; }
  .sticker { right: 0; width: 92px; height: 92px; font-size: .86rem; }
  .book-facts { grid-template-columns: 1fr; }
  .book-facts div { min-height: 82px; }
  .story-card { grid-template-columns: 1fr; }
  .story-card figure { min-height: 450px; max-height: 560px; }
  .story-card-copy { padding: 30px 26px 34px; }
  .character-card img { height: 430px; }
  .character-caption { flex-direction: column; gap: 8px; }
  .school-card { padding: 30px 27px; }
  .school-cta { align-items: flex-start; flex-direction: column; padding: 26px; }
  .author-photo img { height: 570px; }
  .photo-note { right: 10px; bottom: 20px; }
  .buy-card { grid-template-columns: 1fr; padding: 38px 25px; text-align: left; }
  .buy-cover { display: grid; place-items: center; }
  .buy-cover img { width: 210px; }
  .buy-card::after { top: 24px; right: 28px; }
  .two-columns { grid-template-columns: 1fr; }
  .form-row { gap: 22px; }
  .contact-form { padding: 28px 22px; border-radius: var(--radius-md); }
  .newsletter-inner { gap: 30px; }
  .newsletter-form { border-radius: 22px; flex-direction: column; }
  .newsletter-form input { min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* WordPress contact form enhancements */
.contact-form-wrap { min-width: 0; }
.contact-alert { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; font-weight: 800; line-height: 1.5; }
.contact-alert-success { color: #245a31; background: #edf8ef; border: 1px solid rgba(55, 126, 72, .22); }
.contact-alert-error { color: #852f25; background: #fff0ed; border: 1px solid rgba(164, 62, 48, .22); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

body:not(.home) .site-header { position: relative; background: var(--blue-950); }
body:not(.home) #contenuto.section { min-height: 55vh; }


/* Editable editorial sections */
.events-section { background: var(--paper); }
.press-section { background: var(--cream); }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.editorial-card { overflow: hidden; border: 1px solid rgba(8,45,67,.1); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-soft); }
.editorial-image { display: block; height: 250px; overflow: hidden; background: #e7eef1; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.editorial-card:hover .editorial-image img { transform: scale(1.025); }
.editorial-card-copy { padding: 28px; }
.editorial-meta { margin: 0 0 12px; color: var(--blue-700); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.editorial-card h3, .press-card h3 { margin: 0; color: var(--blue-950); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.2; }
.editorial-card-copy > p:not(.editorial-meta):not(.editorial-location), .press-card > p:not(.editorial-meta) { margin: 15px 0 20px; color: var(--muted); line-height: 1.62; }
.editorial-location { margin: 9px 0 0; color: var(--ink); font-weight: 800; }
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.press-card { padding: 30px; border: 1px solid rgba(8,45,67,.1); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-soft); }

@media (max-width: 1180px) {
  .site-nav { gap: 10px; font-size: .82rem; }
}
@media (max-width: 980px) {
  .editorial-grid, .press-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .editorial-grid, .press-grid { grid-template-columns: 1fr; }
  .editorial-image { height: 280px; }
}
