/* Portable behaviour and accessibility additions to the supplied design. */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { overflow-wrap: break-word; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 5rem; }
:focus-visible { outline: 3px solid #a84c29; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: white; color: #2a1b12; transform: translateY(-180%); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
body[data-page="home"] #site-header:not(.is-scrolled):not(.menu-open) nav a:not([href="index.html#prenota"]),
body[data-page="home"] #site-header:not(.is-scrolled):not(.menu-open) #menu-toggle { color: #fff; }
#site-header.is-scrolled, #site-header.menu-open, body:not([data-page="home"]) #site-header { background: hsl(var(--background) / .96); backdrop-filter: blur(14px); border-bottom: 1px solid hsl(var(--border)); box-shadow: 0 2px 18px #2a1b1209; }
#mobile-menu { background: hsl(var(--background)); max-height: calc(100svh - 4rem); overflow-y: auto; }
body[data-page="home"] #home h1 { font-size: clamp(3rem, 9.5vw, 8rem); }
.reveal { opacity: 1; transform: none; }
.location-card { height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 20px; text-align: center; background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.location-card small { max-width: 310px; font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.location-link { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 100px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 16px; }
.location-link:hover { filter: brightness(.92); }
.map-load:hover { filter: brightness(.92); }
.loaded-map { position: relative; height: 100%; min-height: 360px; }
.loaded-map iframe { height: 100%; min-height: 360px; width: 100%; display: block; border: 0; }
.map-unload { position: absolute; right: 12px; bottom: 12px; font-size: 14px; box-shadow: 0 2px 10px #0003; }
.legal-content { max-width: 900px; margin: auto; padding: 140px 24px 90px; font-size: 17px; line-height: 1.8; }
.legal-content h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.12; margin: 24px 0 30px; }
.legal-content h2 { font-family: 'Fraunces', Georgia, serif; font-size: 27px; line-height: 1.3; margin: 32px 0 12px; }
.legal-content p { margin-bottom: 20px; }
.legal-content a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 4px; }
.legal-draft { background: hsl(var(--secondary)); border-left: 3px solid hsl(var(--primary)); padding: 14px 18px; font-size: 15px; margin-top: 28px; }

/* Photographic update: real supplied images, the existing brand palette. */
.content-shell { max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
.photo-section { padding-block: 104px; }
.section-tinted { background: hsl(var(--secondary) / .4); }
.section-heading { max-width: 800px; }
.section-kicker { color: hsl(var(--primary)); font-size: 14px; text-transform: uppercase; letter-spacing: .3em; margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; text-wrap: balance; }
.section-description { font-size: 18px; line-height: 1.75; color: hsl(var(--foreground) / .72); max-width: 620px; margin-top: 24px; }
.story-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; margin-top: 48px; }
.story-copy { font-size: 18px; line-height: 1.8; color: hsl(var(--foreground) / .82); }
.story-copy > p { margin-top: 20px; }
.story-copy > p:first-child { margin-top: 0; }
.story-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 18px 40px #2a1b1215; }
.text-link { display: inline-block; color: hsl(var(--primary)); font-size: 16px; font-weight: 500; line-height: 1.5; border-bottom: 1px solid hsl(var(--primary) / .45); padding-bottom: 4px; margin-top: 28px; }
.text-link:hover { border-bottom-color: currentColor; }
.food-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 48px; }
.food-card { position: relative; min-height: 360px; overflow: hidden; border-radius: 3px; color: white; }
.food-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.food-card:hover > img { transform: scale(1.035); }
.food-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, #1b100d33 42%, #1b100def 100%); }
.food-card-copy { position: absolute; left: 26px; right: 26px; bottom: 26px; }
.food-card h3 { font-size: 32px; line-height: 1.15; }
.food-card p { font-size: 16px; line-height: 1.6; color: #ffffffe0; margin-top: 12px; }
.menu-photo-link { margin-top: 30px; }
.wine-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.wine-images { position: relative; padding: 0 56px 62px 0; }
.wine-main { width: 100%; height: 560px; object-fit: cover; border-radius: 3px; }
.wine-detail { position: absolute; bottom: 0; right: 0; width: 66%; aspect-ratio: 1.55; object-fit: cover; border: 7px solid hsl(var(--background)); border-radius: 3px; box-shadow: 0 10px 35px #2a1b1226; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.gallery-photo { margin: 0; aspect-ratio: 1.25; border-radius: 3px; overflow: hidden; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-photo:hover img { transform: scale(1.035); }
.gallery-photo:last-child img { object-position: center 57%; }
.gather-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gather-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.gather-cta { display: inline-flex; justify-content: center; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 14px 28px; border-radius: 100px; font-size: 16px; font-weight: 500; margin-top: 30px; }
.gather-cta:hover { filter: brightness(.94); }
.facebook-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; color: #ffffffe0; border-bottom: 1px solid #ffffff44; padding-block: 8px; }
.facebook-link:hover { color: white; border-bottom-color: white; }
@media(max-width: 900px) {
  .photo-section { padding-block: 76px; }
  .story-layout, .wine-layout, .gather-layout { gap: 32px; }
  .food-grid { gap: 18px; }
  .food-card { min-height: 330px; }
  .food-card-copy { left: 20px; right: 20px; bottom: 22px; }
  .food-card h3 { font-size: 28px; }
  .wine-main { height: 450px; }
  .wine-images { padding-right: 28px; }
}
@media(max-width: 639px) {
  .content-shell { padding-inline: 20px; }
  .photo-section { padding-block: 64px; }
  .story-layout, .wine-layout, .gather-layout { grid-template-columns: 1fr; gap: 30px; }
  .story-layout { margin-top: 30px; }
  .story-image { grid-row: 1; }
  .story-copy, .section-description { font-size: 17px; line-height: 1.75; }
  .food-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .food-card { min-height: 340px; }
  .food-card h3 { font-size: 32px; }
  .food-card-copy { left: 24px; right: 24px; bottom: 24px; }
  .wine-images { padding: 0 28px 46px 0; }
  .wine-main { height: 420px; }
  .wine-detail { width: 68%; border-width: 5px; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .gallery-photo { aspect-ratio: 1; }
  .gather-image { aspect-ratio: 4 / 3; }
}
@media(max-width: 639px) {
  html { scroll-padding-top: 4.5rem; }
  body[data-page="home"] #home { padding-bottom: 80px; }
  #home h1 { max-width: 100%; }
  .legal-content { padding-top: 110px; }
  .fixed.bottom-0 span { font-size: 12px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
