/* Il Palio · Settimo Milanese — proposta restyling */
:root {
  --cream: #f4ecdd;
  --paper: #fbf6ec;
  --terra: #a4462b;
  --terra-d: #873821;
  --siena: #7b3f22;
  --ochre: #c9932f;
  --olive: #5f6236;
  --ink: #2a211b;
  --ink-2: #3a2c22;
  --muted: #6a5849;
  --line: rgba(42, 33, 27, .16);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  overflow-x: hidden;
}
.footer { padding-bottom: 64px; }
@media (min-width: 900px) { .footer { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -.015em; margin: 0; }
h4 { margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.preview-strip {
  height: 28px; line-height: 28px; text-align: center;
  font-size: 12px; letter-spacing: .03em;
  background: var(--ink); color: #e9dcc6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 236, 221, .96);
  border-bottom: 1px solid transparent;
  transition: padding .3s, box-shadow .3s, border-color .3s;
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; transition: padding .3s; }
.site-header.is-compact { box-shadow: 0 6px 20px -14px rgba(42,33,27,.5); border-color: var(--line); }
.site-header.is-compact .header-in { padding-top: 8px; padding-bottom: 8px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 32px; color: var(--terra); letter-spacing: -.01em; transition: font-size .3s; }
.is-compact .brand-name { font-size: 27px; }
.hide-sm { display: none; }
@media (min-width: 480px) { .hide-sm { display: inline; } }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  padding: 9px 14px; border-radius: 2px; cursor: pointer; font-size: 14px; font-weight: 500;
}
.menu-btn-lines, .menu-btn-lines::before, .menu-btn-lines::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.menu-btn-lines::before, .menu-btn-lines::after { content: ""; position: absolute; left: 0; }
.menu-btn-lines::before { top: -6px; } .menu-btn-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines::after { transform: translateY(-6px) rotate(-45deg); }

.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
.nav.open { display: block; box-shadow: 0 24px 30px -20px rgba(42,33,27,.35); }
.nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.nav a { display: block; padding: 12px 0; text-decoration: none; font-family: var(--serif); font-size: 26px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav .nav-cta a { color: var(--terra); border-bottom: 0; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { position: static; display: block; background: none; border: 0; }
  .nav ul { display: flex; align-items: center; gap: 26px; padding: 0; }
  .nav a { font-family: var(--sans); font-size: 15px; font-weight: 500; padding: 6px 0; border: 0; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--terra); transition: right .25s; }
  .nav a:hover::after, .nav a:focus-visible::after { right: 0; }
  .nav .nav-cta a { background: var(--terra); color: var(--cream); padding: 9px 18px; border-radius: 2px; }
  .nav .nav-cta a::after { display: none; }
  .nav .nav-cta a:hover { background: var(--terra-d); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 2px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: #fff8ee; }
.btn-primary:hover { background: var(--terra-d); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--terra-d); }
.btn-light:hover { background: #fff; }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }

.kicker { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 8px; background: linear-gradient(90deg, var(--terra) 0 33%, var(--ochre) 33% 66%, var(--olive) 66%); }
.small { font-size: 14px; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero + bandiere ---------- */
.hero { position: relative; padding-bottom: 64px; overflow: hidden; }
.flags {
  position: relative; height: 92px; margin: 0 auto; max-width: 1400px;
  display: flex; justify-content: space-around; padding: 0 8px;
}
.rope { position: absolute; left: 0; right: 0; top: 0; height: 40px; width: 100%; }
.rope path { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .55; }
.flag {
  width: 34px; height: 51px; flex: none;
  margin-top: var(--y, 12px);
  transform-origin: 50% 2px;
  animation: sway 4.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 2px rgba(42,33,27,.18));
}
.flag:nth-child(n+10) { display: none; }
.flag:nth-child(3n) { animation-duration: 5.4s; animation-delay: -1.2s; }
.flag:nth-child(3n+1) { animation-duration: 4.1s; animation-delay: -2.4s; }
.flag:nth-child(4n) { animation-duration: 5s; animation-delay: -.6s; }
@keyframes sway {
  0% { transform: rotate(-3deg) skewY(1.2deg); }
  100% { transform: rotate(3deg) skewY(-1.2deg); }
}
@media (min-width: 700px) {
  .flags { height: 110px; }
  .flag { width: 44px; height: 66px; }
  .flag:nth-child(n+10) { display: block; }
}

.hero-grid { display: grid; gap: 40px; padding-top: 12px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 12vw, 6.4rem); line-height: .94; letter-spacing: -.02em; max-width: 11ch; }
.hero h1 em { color: var(--terra); font-style: italic; font-weight: 600; }
.lead { font-size: 18px; max-width: 34em; margin-top: 24px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.hero-photo { margin: 0; background: #fffaf1; padding: 12px 12px 0; box-shadow: 0 22px 40px -26px rgba(42,33,27,.55), 0 0 0 1px rgba(42,33,27,.06); transform: rotate(1.2deg); max-width: 560px; justify-self: center; }
.hero-photo figcaption { font-family: var(--serif); font-style: italic; font-size: 18px; padding: 12px 4px 14px; color: var(--muted); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-top: 24px; }
  .hero { padding-bottom: 96px; }
}

/* ---------- Facts ---------- */
.facts { background: var(--terra); color: #fbf1e3; }
.facts-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.facts-list li { padding: 20px 14px 20px 0; border-bottom: 1px solid rgba(251,241,227,.22); }
.facts-list li:nth-child(odd) { padding-right: 18px; border-right: 1px solid rgba(251,241,227,.22); }
.facts-list li:nth-child(even) { padding-left: 18px; }
.facts-list strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1; }
.facts-list span { font-size: 14px; opacity: .9; }
@media (min-width: 900px) {
  .facts-list { grid-template-columns: repeat(4, 1fr); }
  .facts-list li, .facts-list li:nth-child(odd), .facts-list li:nth-child(even) { padding: 26px 24px; border-bottom: 0; border-right: 1px solid rgba(251,241,227,.22); }
  .facts-list li:first-child { padding-left: 0; }
  .facts-list li:last-child { border-right: 0; }
  .facts-list strong { font-size: 23px; }
}

/* ---------- Cucina ---------- */
.cucina { padding: 88px 0 40px; }
.cucina-grid { display: grid; gap: 48px; }
.cucina h2 { font-size: clamp(2.3rem, 6vw, 3.9rem); max-width: 14ch; margin-bottom: 22px; }
.cucina-text > p { max-width: 36em; }
.dish-list { list-style: none; padding: 0; margin: 28px 0 0; columns: 2; column-gap: 28px; }
.dish-list li { break-inside: avoid; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; padding: 9px 0; border-top: 1px solid var(--line); }
.cucina-photos { position: relative; padding-bottom: 80px; }
.ph { margin: 0; }
.ph figcaption { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); margin-top: 8px; }
.ph-tall img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.ph-offset { position: absolute; right: 0; bottom: 0; width: 58%; }
.ph-offset .zoom { border: 8px solid var(--cream); }
.ph-offset figcaption { text-align: right; }
.ph-tall { width: 90%; }
@media (min-width: 900px) {
  .cucina { padding: 120px 0 60px; }
  .cucina-grid { grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; }
  .cucina-photos { margin-top: 30px; padding-bottom: 120px; }
  .ph-offset { width: 52%; right: -10px; }
}

.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.zoom img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img { transform: scale(1.035); }

.ricetta {
  margin-top: 64px; display: grid; gap: 22px; align-items: start;
}
.ricetta-img { width: 150px; border-radius: 2px; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line); }
.ricetta-body { background: var(--paper); border: 1px solid var(--line); padding: 26px 22px; position: relative; }
.ricetta h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 12px; }
.ricetta-det summary { cursor: pointer; font-weight: 600; color: var(--terra-d); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.ricetta-det summary::-webkit-details-marker { display: none; }
.ricetta-det summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 15px; line-height: 1; transition: transform .2s; }
.ricetta-det[open] summary::before { transform: rotate(45deg); }
.ricetta-cols { display: grid; gap: 18px; margin-top: 18px; }
.ricetta-cols ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.ricetta-cols ul li { padding: 4px 0; border-bottom: 1px dotted var(--line); }
.ricetta-cols ol { margin: 0; padding-left: 20px; font-size: 15px; }
.ricetta-cols ol li { margin-bottom: 8px; }
.vino { font-family: var(--serif); font-style: italic; font-size: 19px; margin: 14px 0 0; color: var(--siena); }
@media (min-width: 900px) {
  .ricetta { grid-template-columns: 230px 1fr; gap: 40px; margin-top: 40px; max-width: 1040px; margin-left: auto; margin-right: auto; }
  .ricetta-img { width: 100%; transform: rotate(-2deg); margin-top: 24px; }
  .ricetta-body { padding: 34px 40px; }
  .ricetta-cols { grid-template-columns: 220px 1fr; gap: 32px; }
}

/* ---------- Menu ---------- */
.menu-sec { background: #2f2119; color: #f1e5d1; padding: 88px 0 96px; margin-top: 60px; position: relative; }
.menu-sec::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--terra) 0 48px, var(--ochre) 48px 96px, var(--olive) 96px 144px, #6b4430 144px 192px);
}
.menu-sec .kicker { color: var(--ochre); }
.menu-head { display: grid; gap: 4px; margin-bottom: 36px; }
.menu-sec h2 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 16ch; }
.menu-intro { color: #d8c8b0; max-width: 40em; margin-top: 18px; }
@media (min-width: 900px) {
  .menu-sec { padding: 120px 0 130px; }
  .menu-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 60px; row-gap: 6px; }
  .menu-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
  .menu-intro { margin: 0; }
}
.tablist { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(241,229,209,.2); margin-bottom: 30px; -webkit-overflow-scrolling: touch; }
.tablist::-webkit-scrollbar { display: none; }
.tablist button {
  flex: none; background: none; border: 0; color: #cbb89c; cursor: pointer;
  font: 600 20px/1 var(--serif); padding: 14px 14px 16px; position: relative; letter-spacing: .01em;
}
.tablist button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--ochre); transform: scaleX(0); transition: transform .25s; }
.tablist button[aria-selected="true"] { color: #fff6e8; }
.tablist button[aria-selected="true"]::after { transform: scaleX(1); }
.tablist button:hover { color: #fff6e8; }
@media (min-width: 700px) { .tablist button { font-size: 24px; padding: 14px 20px 18px; } .tablist button::after { left: 20px; right: 20px; } }
.tabpanel { display: grid; gap: 22px; }
.tabpanel[hidden] { display: none; }
.tabpanel.fade { animation: panelIn .45s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .tabpanel { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } .carta-alt { margin-top: 48px; } }
.carta { background: var(--paper); color: var(--ink); padding: 30px 24px 26px; border-radius: 2px; position: relative; box-shadow: 0 30px 50px -36px rgba(0,0,0,.8); }
.carta::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(164,70,43,.28); pointer-events: none; }
.carta h3 { font-size: 30px; font-style: italic; color: var(--terra-d); margin-bottom: 14px; }
.carta h4 { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin: 18px 0 6px; }
.carta p { font-family: var(--serif); font-size: 20px; line-height: 1.35; margin: 0; }
.carta .carta-note { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0 0 4px; line-height: 1.5; }
.carta p.carta-note:last-child { margin-top: 20px; }
.formula { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.formula-n { font: 600 52px/0.85 var(--serif); color: var(--terra); flex: none; width: 34px; }
@media (min-width: 700px) { .carta { padding: 40px 40px 34px; } }

/* ---------- Sale ---------- */
.sale { padding: 96px 0 0; }
.sale-grid { display: grid; gap: 40px; }
.sale-photo { margin: 0; }
.sale-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sale-photo figcaption { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); margin-top: 10px; }
.sale h2 { font-size: clamp(2.3rem, 6vw, 3.8rem); max-width: 13ch; margin-bottom: 20px; }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 26px 0 18px; border-top: 2px solid var(--ink); }
.rooms div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rooms div:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.rooms div:nth-child(even) { padding-left: 18px; }
.rooms dt { font: 600 44px/1 var(--serif); color: var(--terra); letter-spacing: -.02em; }
.rooms dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .sale { padding: 130px 0 0; }
  .sale-grid { grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
  .sale-photo { margin-left: calc(-1 * var(--gutter)); }
  .rooms dt { font-size: 54px; }
}
.occasioni { margin-top: 72px; }
.occ-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 24px; font-style: italic; }
.occ-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.occ-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.occ-n { font: 600 15px/1.6 var(--sans); color: var(--terra); letter-spacing: .08em; flex: none; width: 30px; }
.occ-list h4 { font: 600 25px/1.15 var(--serif); margin-bottom: 6px; }
.occ-list p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (min-width: 900px) {
  .occasioni { display: grid; grid-template-columns: 280px 1fr; gap: 48px; margin-top: 100px; }
  .occ-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- Storia ---------- */
.storia { background: var(--paper); padding: 80px 0 90px; margin-top: 64px; border-top: 1px solid var(--line); }
.storia h2 { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 15ch; margin-bottom: 40px; }
.storia-grid { display: grid; gap: 40px; }
.storia-photo { margin: 0; }
.storia-photo img { filter: sepia(.12); }
.storia-photo figcaption { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); margin-top: 10px; }
.timeline { list-style: none; padding: 0 0 0 26px; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; background: repeating-linear-gradient(180deg, var(--terra) 0 30px, var(--ochre) 30px 60px, var(--olive) 60px 90px); }
.timeline li { padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }
.year { display: block; font: 600 40px/1 var(--serif); color: var(--terra); margin-bottom: 6px; letter-spacing: -.01em; }
.timeline p { margin: 0; max-width: 36em; }
@media (min-width: 900px) {
  .storia { padding: 110px 0 130px; margin-top: 90px; }
  .storia-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
  .year { font-size: 46px; }
}
.quote { margin: 72px 0 0; padding: 0 0 0 24px; border-left: 4px solid var(--terra); max-width: 860px; }
.quote p { font: italic 500 clamp(1.8rem, 4.4vw, 3rem)/1.12 var(--serif); margin: 0 0 12px; color: var(--ink); }
.quote cite { font-style: normal; font-size: 14px; color: var(--muted); }
.premio { margin: 48px 0 0 auto; max-width: 380px; background: #fff; padding: 10px 10px 0; box-shadow: 0 18px 34px -24px rgba(42,33,27,.6); transform: rotate(-1.5deg); }
.premio figcaption { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); padding: 8px 2px 10px; }
@media (min-width: 900px) {
  .storia .wrap { position: relative; }
  .quote { margin-top: 100px; max-width: 640px; }
  .premio { position: absolute; right: var(--gutter); bottom: -30px; margin: 0; width: 340px; }
}

/* ---------- Magenta ---------- */
.magenta { background: var(--olive); color: #f4ecdd; padding: 72px 0; }
.magenta-grid { display: grid; gap: 32px; align-items: center; }
.magenta-img { width: 100%; max-width: 520px; border: 6px solid rgba(244,236,221,.14); }
.magenta .kicker { color: #e8cf9a; }
.magenta .kicker::before { background: #e8cf9a; }
.magenta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-style: italic; margin-bottom: 14px; }
.magenta p { max-width: 34em; }
.magenta-links { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
@media (min-width: 900px) { .magenta-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } .magenta { padding: 90px 0; } }

/* ---------- Prenota ---------- */
.prenota { background: var(--terra); color: #fbf1e3; padding: 88px 0; }
.prenota .kicker { color: #fbe2bf; }
.prenota .kicker::before { background: #fbe2bf; }
.prenota-grid { display: grid; gap: 40px; }
.prenota h2 { font-size: clamp(2.3rem, 6vw, 3.8rem); max-width: 12ch; margin-bottom: 20px; }
.prenota-text p { max-width: 32em; }
.prenota-text a:not(.btn) { color: #fff; font-weight: 600; }
.prenota-text .btn { margin-top: 12px; }
@media (min-width: 900px) { .prenota { padding: 120px 0; } .prenota-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; } .prenota-text { position: sticky; top: 120px; } }

.form { background: var(--paper); color: var(--ink); padding: 26px 20px; border-radius: 2px; box-shadow: 0 30px 50px -30px rgba(42,20,10,.7); }
@media (min-width: 700px) { .form { padding: 36px 36px 32px; } }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-width: 0; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #cdbfa9; border-radius: 2px; padding: 11px 12px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(164,70,43,.18); }
input[aria-invalid="true"] { border-color: #b3261e; }
.err { color: #a3221a; font-size: 13px; margin: 6px 0 0; }
.warn { background: #f6e3c0; border-left: 4px solid var(--ochre); padding: 10px 12px; font-size: 14px; margin: 0 0 16px; }
.riepilogo { margin-top: 22px; border-top: 2px solid var(--ink); padding-top: 18px; }
.riep-title { font: italic 600 24px/1 var(--serif); color: var(--terra-d); margin-bottom: 10px; }
.riepilogo pre { white-space: pre-wrap; font: 15px/1.55 var(--sans); background: #fff; border: 1px dashed #cdbfa9; padding: 14px; margin: 0 0 14px; }
.riep-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.riep-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Dove ---------- */
.dove { padding: 96px 0 90px; }
.dove-grid { display: grid; gap: 36px; }
.dove h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 14px; }
.orari-box { border: 1px solid var(--line); background: var(--paper); padding: 20px 22px; margin: 24px 0; }
.orari-box h3 { font-size: 28px; margin-bottom: 8px; }
.orari-main a { color: var(--terra-d); font-weight: 600; white-space: nowrap; }
.orari-chiuso { margin: 0; }
.today-badge { display: inline-block; margin: 14px 0 0; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 40px; background: #e7dcc8; }
.today-badge.closed { background: #f3d7cf; color: #8a2d18; }
.map { min-height: 340px; background: #e7dcc8; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: sepia(.18) saturate(.9); }
@media (min-width: 900px) { .dove { padding: 130px 0 110px; } .dove-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .map, .map iframe { min-height: 460px; } }

.faq { margin-top: 80px; }
.faq-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-style: italic; margin-bottom: 18px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 22px/1.2 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--sans); color: var(--terra); transition: transform .25s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0 0 20px; max-width: 46em; color: var(--ink-2); }
@media (min-width: 900px) { .faq { display: grid; grid-template-columns: 280px 1fr; gap: 48px; margin-top: 110px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #e5d7c0; font-size: 15px; }
.flag-rule { height: 10px; background: repeating-linear-gradient(90deg, var(--terra) 0 48px, var(--ochre) 48px 96px, var(--olive) 96px 144px, #6b4430 144px 192px); }
.footer-grid { display: grid; gap: 26px; padding-top: 48px; padding-bottom: 48px; }
.footer a { color: #fff3df; }
.footer-brand { font: italic 700 36px/1 var(--serif); color: #f0b48f; margin-bottom: 14px; }
.footer .small { color: #b9a78d; font-size: 13px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; } }

/* ---------- Action bar (mobile) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); border-top: 3px solid var(--terra);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; color: #f4ecdd; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.action-bar a + a { border-left: 1px solid rgba(244,236,221,.15); }
.action-bar svg { width: 21px; height: 21px; fill: currentColor; }
.action-bar a:active { background: #3d2f25; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(24,17,12,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 78vh; width: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-cap { color: #e9dcc6; font-family: var(--serif); font-style: italic; font-size: 19px; margin-top: 14px; text-align: center; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(233,220,198,.4); background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-photo.reveal { transform: translateY(16px) rotate(1.2deg); }
.js .hero-photo.reveal.in { transform: rotate(1.2deg); }
.js .premio.reveal.in { transform: rotate(-1.5deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-photo.reveal { transform: rotate(1.2deg); }
}
