/* Pomè — il chiosco del Parco De Vecchi, Rho
   Verde del chiosco, erba, cielo chiaro e il giallo del sole. Grandstander + Golos Text. */
:root {
  --green: #2f5a3a;
  --green-2: #234530;
  --leaf: #9cc54a;
  --leaf-soft: #dcebc4;
  --sky: #d7ebf4;
  --sun: #f4b740;
  --cream: #fbf6ea;
  --sand: #f2ead6;
  --ink: #1d2a21;
  --ink-2: #4b5a4f;
  --line: rgba(29, 42, 33, .14);
  --disp: 'Grandstander', 'Trebuchet MS', sans-serif;
  --body: 'Golos Text', 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --r: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.06rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #1a3a24; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 40px; }
.preview-strip { height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--green-2); color: #dfe9d9; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.kicker { font: 600 .82rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(244, 183, 64, .25); }
h2 { font: 800 clamp(2.1rem, 4.4vw, 3.4rem)/1.04 var(--disp); letter-spacing: -.01em; color: var(--green-2); margin-bottom: 24px; }
.small { font-size: .88rem; color: var(--ink-2); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 246, 234, .95); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-compact { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; transition: height .3s; }
.is-compact .head-in { height: 60px; }
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-decoration: none; color: var(--green); }
.brand-mark { grid-row: 1 / 3; width: 42px; height: 36px; }
.brand-name { font: 800 1.7rem/1 var(--disp); color: var(--green-2); }
.brand-sub { font: 500 .7rem/1.1 var(--body); color: var(--ink-2); letter-spacing: .02em; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 2px; border-radius: 6px; }
.nav a:hover { color: var(--green); background: var(--leaf-soft); }
.nav .nav-cta a { background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; }
.nav .nav-cta a:hover { background: var(--green-2); color: #fff; }
.menu-btn { display: none; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: #2b2108; }
.btn-sun:hover { background: #f8c55c; color: #2b2108; }
.btn-line { border-color: var(--green); color: var(--green); }
.btn-line:hover { background: var(--green); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); color: #fff; }
.btn-block { width: 100%; }

/* HERO */
.hero { padding: clamp(30px, 5vw, 64px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font: 800 clamp(3rem, 6.6vw, 5.6rem)/.96 var(--disp); color: var(--green-2); letter-spacing: -.015em; margin-bottom: 24px; }
.hero h1 span { color: var(--green); font-weight: 500; position: relative; white-space: nowrap; }
.hero h1 span::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .2em; background: var(--sun); opacity: .55; z-index: -1; border-radius: 4px; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 36ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.live { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.live .dot { width: 10px; height: 10px; border-radius: 50%; background: #aaa; }
.live.is-open .dot { background: #3f9a4d; box-shadow: 0 0 0 4px rgba(63, 154, 77, .2); }
.live.is-closed .dot { background: #d9583b; }

/* scena del parco */
.scene-wrap { margin: 0; }
.scene { width: 100%; height: auto; display: block; border-radius: 28px; }
.sky { fill: var(--sky); transition: fill 1.2s; }
.scene.is-evening .sky { fill: #f5dfc4; }
.scene.is-night .sky { fill: #22344a; }
.arc { stroke: rgba(47, 90, 58, .25); stroke-width: 2; stroke-dasharray: 3 9; }
.scene.is-night .arc { stroke: rgba(255, 255, 255, .2); }
.sun { fill: var(--sun); stroke: rgba(244, 183, 64, .35); stroke-width: 14; }
.scene.is-night .sun { opacity: 0; }
.moon { opacity: 0; transition: opacity .8s; }
.moon circle { fill: #f3efd8; }
.moon .moon-cut { fill: #22344a; }
.scene.is-night .moon { opacity: 1; }
.hill-back { fill: #b9d98a; }
.scene.is-night .hill-back { fill: #4c6b48; }
.trunk { fill: #6b4f36; }
.crown circle { fill: #4d8a45; }
.t2 .crown circle { fill: #3b7440; }
.scene.is-night .crown circle { fill: #2c4f33; }
.crown { transform-box: fill-box; transform-origin: 50% 100%; }
.scene.is-alive .t1 .crown { animation: sway 7s ease-in-out infinite; }
.scene.is-alive .t2 .crown { animation: sway 8s ease-in-out -2s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.slide path { fill: none; stroke: #d9583b; stroke-width: 5; stroke-linecap: round; }
.slide .slide-run { stroke: #f4b740; stroke-width: 7; }
.k-side { fill: #2f5a3a; }
.k-body { fill: #2f5a3a; }
.k-roof, .k-roof2 { fill: #b9d98a; }
.k-win { fill: #eaf4f8; transition: fill 1s; }
.scene.is-evening .k-win, .scene.is-night .k-win, .scene.is-evening .k-door, .scene.is-night .k-door { fill: #ffd98a; }
.k-door { fill: #eaf4f8; transition: fill 1s; }
.umbrella path:first-child { fill: #fbf6ea; stroke: #d8cfb8; stroke-width: 2; }
.umbrella .pole, .tables path { stroke: #6b6a5c; stroke-width: 3; fill: none; }
.tables rect { fill: #fbf6ea; }
.lawn { fill: #8dbd52; }
.hedge { fill: #5f9a43; }
.scene.is-night .lawn { fill: #3d6638; }
.scene.is-night .hedge { fill: #2f5530; }
.path { fill: #efe3c6; }
.scene.is-night .path { fill: #8b8470; }
.labels text { font: 600 15px var(--body); fill: rgba(29, 42, 33, .5); }
.scene.is-night .labels text { fill: rgba(255, 255, 255, .45); }
.scene-cap { font-size: .86rem; color: var(--ink-2); margin-top: 12px; text-align: center; }

/* giornata */
.giornata { background: #fff; border-radius: 40px 40px 0 0; position: relative; }
.g-head { max-width: 760px; }
.ruler { margin: 34px 0 44px; }
.ruler-track { position: relative; height: 14px; border-radius: 999px; background: var(--leaf-soft); }
.ruler-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--leaf); transition: width 1.4s cubic-bezier(.5, .1, .2, 1); }
.ruler-now { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--sun); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); left: 0; transition: left 1.4s cubic-bezier(.5, .1, .2, 1); display: none; }
.ruler.has-now .ruler-now { display: block; }
.ruler-hours { position: relative; height: 22px; margin-top: 10px; font: 600 .85rem var(--body); color: var(--ink-2); }
.ruler-hours span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ruler-hours span:first-child { transform: none; }
.ruler-hours span:last-child { transform: translateX(-100%); }
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.1fr 1fr .85fr 1fr; gap: 28px; align-items: start; }
.m { position: relative; padding-top: 18px; border-top: 3px solid var(--leaf); }
.m2 { border-top-color: var(--sun); margin-top: 40px; }
.m3 { border-top-color: var(--leaf); margin-top: 10px; }
.m4 { border-top-color: #e79a5a; margin-top: 56px; }
.m-time { font: 700 .82rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.m h3 { font: 800 1.7rem/1.1 var(--disp); color: var(--green-2); margin-bottom: 10px; }
.m p { color: var(--ink-2); font-size: 1rem; }
.m figure { margin: 16px 0 0; }
.m img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.m2 img { aspect-ratio: 3 / 4; border-radius: 120px 120px var(--r) var(--r); }
.m figcaption { font-size: .76rem; color: var(--ink-2); margin-top: 6px; opacity: .85; }
.m3 { background: var(--leaf-soft); border-radius: 0 0 var(--r) var(--r); padding: 18px 20px 6px; }

/* fascia foto */
.band { margin: 0; position: relative; background: var(--green-2); }
.band img { width: 100%; height: clamp(320px, 46vw, 620px); object-fit: cover; object-position: 50% 62%; }
.band figcaption { padding: 14px 0 16px; color: #dfe9d9; font-size: .9rem; }
.band figcaption b { color: #fff; font-weight: 600; }

/* feste */
.feste { background: var(--sand); position: relative; }
.feste::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 28px; background: radial-gradient(circle at 20px -6px, var(--green-2) 22px, transparent 23px) 0 0 / 40px 28px repeat-x; }
.feste-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.feste-text p { color: var(--ink-2); max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d2a21' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.form { background: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: 0 24px 50px -30px rgba(29, 42, 33, .35); border: 2px solid var(--green-2); }
.form-title { grid-column: 1 / -1; font: 800 1.5rem/1.1 var(--disp); color: var(--green-2); margin: 0 0 4px; }
.f-row { grid-column: 1 / -1; display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; align-content: start; }
.f-half { grid-column: span 1; }
.form label, .form legend { font-weight: 600; font-size: .92rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.form input[type=text], .form input[type=number], .form input[type=date], .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #d8d2c0; border-radius: 14px; background: var(--cream); font: 400 1rem/1.3 var(--body); color: var(--ink); }
.form textarea { resize: vertical; min-height: 84px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(156, 197, 74, .35); }
.form [aria-invalid=true] { border-color: #c4472b; }
.f-err { color: #b13c22; font-size: .85rem; margin: 0; }
.f-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.f-pills legend { width: 100%; margin-bottom: 6px; }
.form .pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px; border: 2px solid #d8d2c0; border-radius: 999px; cursor: pointer; font-weight: 500 !important; }
.pill:has(input:checked) { border-color: var(--green); background: var(--leaf-soft); }
.pill input { accent-color: var(--green); margin: 0; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.f-hint { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-2); text-align: center; margin: -4px 0 0; }

/* parco */
.parco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.parco p { color: var(--ink-2); max-width: 46ch; }
.info { margin: 24px 0 0; display: grid; gap: 2px; }
.info div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(29, 42, 33, .25); }
.info dt { font-weight: 600; color: var(--green); }
.info dd { margin: 0; }
.map { aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; border: 2px solid var(--green-2); background: var(--leaf-soft); margin-bottom: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.lnk { font-weight: 600; }

/* orari */
.orari { background: var(--green-2); color: #eef4e8; }
.orari h2 { color: #fff; }
.orari .kicker { color: var(--leaf); }
.orari .small { color: #c9d8c3; }
.orari-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.badge-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; color: #dfe9d9; }
.badge { display: inline-block; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; background: rgba(255, 255, 255, .15); }
.badge.is-open { background: var(--leaf); color: var(--ink); }
.badge.is-closed { background: #e07a5f; color: #2a120b; }
.hours { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.hours th, .hours td { padding: 14px 18px; text-align: left; font-weight: 500; background: rgba(255, 255, 255, .06); }
.hours th { border-radius: 14px 0 0 14px; }
.hours td { border-radius: 0 14px 14px 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-closed td { color: #b9c9b3; }
.hours tr.is-today th, .hours tr.is-today td { background: var(--sun); color: #2b2108; font-weight: 700; }
.hours tr.is-today th::after { content: ' · oggi'; font-weight: 500; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 84px); }
.acc { display: grid; gap: 10px; }
.acc-item { background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.acc-item h3 { margin: 0; }
.acc-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; font: 600 1.05rem/1.35 var(--body); color: var(--ink); text-align: left; cursor: pointer; border-radius: 18px; }
.acc-item button:hover { color: var(--green); }
.ico { width: 26px; height: 26px; border-radius: 50%; background: var(--leaf-soft); position: relative; flex: none; }
.ico::before, .ico::after { content: ''; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; background: var(--green-2); transition: transform .25s; }
.ico::after { transform: rotate(90deg); }
[aria-expanded=true] .ico::after { transform: rotate(0); }
.acc-panel p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* footer */
.footer { background: var(--green); color: #e3ecdc; padding: 56px 0 120px; font-size: .92rem; }
.footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px; }
.f-name { font: 800 2.2rem/1 var(--disp); color: #fff; margin-bottom: 4px; }
.credits { font-size: .76rem; color: #c3d3bc; }
.actionbar { display: none; }

.sec { padding: clamp(70px, 9vw, 120px) 0; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--leaf-soft); border: 0; border-radius: 999px; padding: 10px 16px; font: 600 .95rem var(--body); color: var(--green-2); cursor: pointer; }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; border-radius: 2px; transition: transform .25s; }
  .menu-ico::before, .menu-ico::after { content: ''; position: absolute; left: 0; }
  .menu-ico::before { top: -5px; } .menu-ico::after { top: 5px; }
  .menu-btn[aria-expanded=true] .menu-ico { background: transparent; }
  .menu-btn[aria-expanded=true] .menu-ico::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded=true] .menu-ico::after { transform: translateY(-5px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 20px; }
  .nav li a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-cta a { margin-top: 14px; text-align: center; border-radius: 999px; }
  .hero-grid, .feste-grid, .parco-grid, .orari-grid, .faq-grid { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr 1fr; }
  .m2, .m3, .m4 { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .preview-strip { font-size: .66rem; }
  .brand-sub { display: none; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.4rem); }
  .hero-cta .btn { flex: 1 1 100%; }
  .giornata { border-radius: 28px 28px 0 0; }
  .ruler-hours span:nth-child(2), .ruler-hours span:nth-child(4) { display: none; }
  .moments { grid-template-columns: 1fr; gap: 34px; }
  .m2 img { aspect-ratio: 4 / 3; border-radius: 90px 90px var(--r) var(--r); }
  .form { grid-template-columns: 1fr; border-radius: 22px; }
  .f-half { grid-column: 1 / -1; }
  .info div { grid-template-columns: 1fr; gap: 0; }
  .hours th, .hours td { padding: 12px 12px; font-size: .95rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .actionbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--cream); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .actionbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; color: var(--green-2); text-decoration: none; font-size: .78rem; font-weight: 600; }
  .actionbar a:first-child { background: var(--green); color: #fff; }
  .actionbar a + a { border-left: 1px solid var(--line); }
  .actionbar svg { width: 22px; height: 22px; fill: currentColor; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
