/* ==========================================================================
   il Castello – Ludwigsburg
   Design tokens are defined on :root so they can later be mapped 1:1
   to Elementor Global Colors / Global Fonts in the Hello theme.
   ========================================================================== */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* Colors – taken from logo gold + the restaurant's night palette */
  --ink:        #0B0C10;
  --ink-2:      #121419;
  --ink-3:      #1B1E26;
  --paper:      #F2EADC;
  --paper-2:    #E9DFCD;
  --cream:      #F4ECDF;
  --cream-dim:  rgba(244, 236, 223, .68);
  --cream-mute: rgba(244, 236, 223, .42);
  --line:       rgba(244, 236, 223, .14);
  --line-ink:   rgba(11, 12, 16, .16);
  --gold:       #EFAE0A;   /* logo */
  --gold-hi:    #F7C94B;
  --gold-deep:  #B98300;
  --azure:      #2B5BFF;   /* the blue light line in the dining room */

  /* Type */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero:  clamp(2.9rem, 6.9vw, 7.4rem);
  --fs-h2:    clamp(2.4rem, 5.6vw, 5.2rem);
  --fs-h3:    clamp(1.5rem, 2.4vw, 2.1rem);
  --fs-lead:  clamp(1.05rem, 1.3vw, 1.25rem);

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw:   1360px;
  --radius: 2px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }

.cs-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; overflow: visible; white-space: normal; top: 8px; left: 8px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   Elementor adapter
   Sections are Elementor containers (class "cs-section"). Spacing is set via
   Elementor's CSS variables (--padding-*, --row-gap …) so values changed in the
   Elementor panel still win. Layout-critical properties use ".cs-section .e-con.x".
   ========================================================================== */
.cs-section.e-con,
.cs-section .e-con {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
}
.cs-section .elementor-heading-title {
  font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit;
  text-transform: inherit; font-variation-settings: inherit; margin: 0; padding: 0;
}
.cs-section .elementor-widget-text-editor p:last-child,
.cs-section .elementor-widget-text-editor ul:last-child { margin-bottom: 0; }
.cs-section .elementor-widget-image { text-align: left; }
.cs-section .elementor-widget-image img { display: block; width: 100%; height: auto; max-width: 100%; }
.cs-section .elementor-widget-image figure { margin: 0; }
.cs-section .elementor-widget-shortcode .elementor-shortcode { height: 100%; }

.e-con.cs-container {
  --padding-left: var(--gutter); --padding-right: var(--gutter);
}
.cs-section .e-con.cs-container { width: 100%; max-width: var(--maxw); margin-inline: auto; }

/* reveal on elements (Elementor sets its own transitions on elements) */
.elementor .elementor-element.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.elementor-editor-active .reveal,
.elementor-editor-preview .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Shared components ---------- */
.eyebrow,
.section-label {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); padding-bottom: 1.4rem;
}
.eyebrow .elementor-heading-title,
.section-label .elementor-heading-title { display: inline-flex; align-items: center; gap: .8em; }
.section-label span { font-family: var(--f-display); font-style: italic; letter-spacing: 0; font-size: 1.05rem; text-transform: none; font-weight: 500; }
.section-label span::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; margin-left: .8em; vertical-align: middle; opacity: .7; }
.eyebrow__dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(239,174,10,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,174,10,.55); } 70% { box-shadow: 0 0 0 12px rgba(239,174,10,0); } 100% { box-shadow: 0 0 0 0 rgba(239,174,10,0); } }

.section-title {
  font-family: var(--f-display); font-size: var(--fs-h2); line-height: .98;
  letter-spacing: -.02em; font-weight: 500; font-variation-settings: "opsz" 96;
}
.section-title em { color: var(--gold); font-weight: 400; }
.section-intro { color: var(--cream-dim); font-size: var(--fs-lead); padding-top: 1.4rem; }
.section-intro p { max-width: 34ch; }
.e-con.section-head { --margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.cs-section .e-con.section-head--split { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; }
.e-con.section-head--split { --column-gap: 2rem; --row-gap: 1rem; }

/* Buttons – plain links (.btn) and Elementor button widgets (.cs-btn) */
.btn,
.cs-btn .elementor-button {
  --b-bg: transparent; --b-fg: var(--cream); --b-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.05em 1.7em; line-height: 1.2;
  background: var(--b-bg); color: var(--b-fg);
  border: 1px solid var(--b-bd); border-radius: var(--radius);
  font-family: var(--f-body); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before,
.cs-btn .elementor-button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--b-hover, var(--cream));
  transform: translateY(101%); transition: transform .45s var(--ease);
}
@media (hover: hover) {
  .btn:hover::before, .cs-btn .elementor-button:hover::before { transform: translateY(0); }
  .btn:hover, .cs-btn .elementor-button:hover { color: var(--b-hover-fg, var(--ink)); border-color: var(--b-hover, var(--cream)); }
}
.btn:focus-visible::before, .cs-btn .elementor-button:focus-visible::before { transform: translateY(0); }
.btn:focus-visible, .cs-btn .elementor-button:focus-visible { color: var(--b-hover-fg, var(--ink)); }
.btn--gold  { --b-bg: var(--gold); --b-fg: var(--ink); --b-bd: var(--gold); --b-hover: var(--cream); }
.btn--ghost { --b-bd: rgba(244,236,223,.35); }
.btn--ink   { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink); --b-hover: var(--gold); }
.cs-btn.btn--gold .elementor-button  { --b-bg: var(--gold); --b-fg: var(--ink); --b-bd: var(--gold); --b-hover: var(--cream); }
.cs-btn.btn--ghost .elementor-button { --b-bd: rgba(244,236,223,.35); }
.btn--sm    { padding: .8em 1.2em; font-size: .72rem; }
.btn--block { width: 100%; }

.round-btn {
  width: 54px; height: 54px; border-radius: 50%; color: var(--cream);
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.1rem;
  transition: background .3s, color .3s, border-color .3s;
}
.round-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.link-arrow { color: var(--gold); text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .3s; }
.link-arrow:hover { border-color: currentColor; }

/* The signature "frame" – echoes the square frame of the logo */
.frame { position: relative; margin: 0; }
.cs-section .frame::after,
.frame::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--gold);
  transform: translate(var(--fx, 16px), var(--fy, 16px));
  pointer-events: none; z-index: 2;
  transition: transform .8s var(--ease);
}
.frame:hover::after { transform: translate(calc(var(--fx, 16px) * .55), calc(var(--fy, 16px) * .55)); }

.dish-tag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: .35em .7em; border: 1px solid var(--line-ink); border-radius: 99px; white-space: nowrap; color: rgba(11,12,16,.65); }
.dish-tag--gold { border-color: var(--gold-deep); color: var(--gold-deep); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Paper sections (light) */
.cs-section.e-con.section--paper { background-color: var(--paper); color: var(--ink); }
.section--paper .section-label { color: var(--gold-deep); }
.section--paper .section-title em { color: var(--gold-deep); }
.section--paper .section-intro { color: rgba(11,12,16,.66); }

/* ==========================================================================
   Hero
   ========================================================================== */
.cs-section.e-con.hero {
  --padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
  position: relative; min-height: 100svh; overflow: hidden;
  background-color: var(--ink);
  background-image: radial-gradient(45% 55% at 72% 100%, rgba(43,91,255,.26), transparent 70%);
}
.cs-section .e-con.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center;
  flex: 1; width: 100%; max-width: var(--maxw); margin-inline: auto;
}
.e-con.hero__grid {
  --padding-left: var(--gutter); --padding-right: var(--gutter); --padding-bottom: clamp(3rem, 6vw, 5rem);
  --column-gap: clamp(2rem, 5vw, 5rem); --row-gap: 3.5rem;
}
.hero__title {
  font-family: var(--f-display); font-size: var(--fs-hero); line-height: .92; letter-spacing: -.035em; font-weight: 500;
  font-variation-settings: "opsz" 96; padding-bottom: 2rem; position: relative; z-index: 3; --d: .08s;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .line:nth-child(2) { padding-left: .9em; }
.hero__title em { font-weight: 400; }
.hero__title .gold { color: var(--gold); font-style: italic; font-weight: 400; }
.hero__lead { color: var(--cream-dim); font-size: var(--fs-lead); --d: .18s; }
.hero__lead p { max-width: 44ch; }
.e-con.hero__cta { --padding-top: 2.2rem; --row-gap: 1rem; --column-gap: 1rem; --d: .26s; }
.cs-section .e-con.hero__cta > .elementor-widget { width: auto; }

.cs-section .e-con.hero__media { display: block; position: relative; height: min(72vh, 720px); }
.cs-section .e-con.hero__main { display: block; position: absolute; inset: 0 0 0 12%; width: auto; max-width: none; }
.cs-section .e-con.hero__main::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(11,12,16,.55)); opacity: 1; mix-blend-mode: normal; }
.cs-section .hero__main > .elementor-widget { position: absolute; inset: 0; }
.hero__main .elementor-widget-container { height: 100%; }
.hero__main img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.hero__main img.is-active,
.no-js .hero__main > .elementor-widget:first-child img,
.elementor-editor-active .hero__main > .elementor-widget:first-child img { opacity: 1; transform: scale(1); }
.cs-section .elementor-widget.hero__inset { position: absolute; left: 0; bottom: -2rem; width: 38%; aspect-ratio: 4/5; z-index: 3; --fx: -12px; --fy: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.5); --d: .4s; }
.hero__inset .elementor-widget-container, .hero__inset img { width: 100%; height: 100% !important; object-fit: cover; }
.cs-section .elementor-widget.hero__badge { position: absolute; top: -2.5rem; right: -1.5rem; width: 150px; height: 150px; z-index: 4; }
.hero__badge .elementor-widget-container { height: 100%; }

.cs-badge { position: relative; width: 150px; height: 150px; }
.hero__badge .cs-badge { width: 100%; height: 100%; }
.cs-badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; overflow: visible; }
.cs-badge text { fill: var(--cream); font-size: 13px; letter-spacing: 0; text-transform: uppercase; font-family: var(--f-body); font-weight: 600; }
.cs-badge__core {
  position: absolute; inset: 32%; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  font-family: var(--f-display); font-style: italic; font-size: 2.1rem; font-weight: 600; line-height: 1; padding-bottom: .15em;
}
@keyframes spin { to { transform: rotate(360deg); } }

.marquee { position: relative; border-block: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; background: var(--ink); }
.marquee__track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--cream); white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Manifesto
   ========================================================================== */
.cs-section.e-con.manifesto { --padding-top: clamp(5rem, 11vw, 10rem); --padding-bottom: clamp(5rem, 11vw, 10rem); }
.manifesto__text {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.3vw, 4.1rem); line-height: 1.16; letter-spacing: -.015em;
}
.manifesto__text p { max-width: 1150px; margin: 0; }
.manifesto__text em { color: var(--gold-deep); }
.pill {
  display: inline-block; vertical-align: middle;
  width: 1.9em; height: .95em; border-radius: 99px; overflow: hidden;
  margin: 0 .08em; transform: translateY(-.06em);
}
.pill img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: transform .8s var(--ease); display: block; }
.pill:hover img { transform: scale(1.2); }
.cs-section .e-con.manifesto__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; border-top: 1px solid var(--line-ink); }
.e-con.manifesto__foot { --margin-top: clamp(3rem, 6vw, 5rem); --padding-top: 2.4rem; --column-gap: 3rem; --row-gap: 2rem; }
.manifesto__about p { max-width: 58ch; color: rgba(11,12,16,.72); font-size: 1.05rem; margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); }
.facts li { display: flex; flex-direction: column; }
.facts b { font-family: var(--f-display); font-size: 2rem; font-weight: 500; line-height: 1; }
.facts span { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(11,12,16,.55); margin-top: .5rem; }

/* ==========================================================================
   La Cucina – sticky process
   ========================================================================== */
.cs-section.e-con.cucina { --padding-top: clamp(5rem, 11vw, 10rem); --padding-bottom: clamp(5rem, 11vw, 10rem); position: relative; }
.cs-section .e-con.process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.e-con.process { --column-gap: clamp(2rem, 6vw, 6rem); }
.e-con.process__step {
  --justify-content: center; --padding-top: 3rem; --padding-bottom: 3rem;
  min-height: 72vh; border-top: 1px solid var(--line);
  opacity: .28; transition: opacity .6s var(--ease);
}
.e-con.process__step:first-child { --justify-content: flex-start; --padding-top: 0px; border-top: 0; min-height: 55vh; }
.e-con.process__step.is-active { opacity: 1; }
.process__num { font-family: var(--f-display); font-style: italic; color: var(--gold); font-size: 1.2rem; padding-bottom: 1rem; }
.process__title { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; padding-bottom: 1.2rem; font-style: italic; }
.process__text { color: var(--cream-dim); font-size: var(--fs-lead); }
.process__text p { max-width: 38ch; }
.cs-section .elementor-widget.process__img-mobile { display: none; }

.cs-section .e-con.process__stage { display: block; position: sticky; top: calc(var(--header-h) + 5vh); height: 78vh; align-self: start; }
.cs-section .e-con.process__frame { display: block; position: absolute; inset: 0 16px 16px 0; width: auto; max-width: none; }
.cs-section .process__frame > .elementor-widget { position: absolute; inset: 0; }
.process__frame .elementor-widget-container { height: 100%; }
.process__frame img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.process__frame img.is-active,
.no-js .process__frame > .elementor-widget:first-child img,
.elementor-editor-active .process__frame > .elementor-widget:first-child img { opacity: 1; transform: scale(1); }
.cs-section .elementor-widget.process__counter-wrap { position: absolute; left: 0; bottom: -2.8rem; width: auto; }
.process__counter { font-size: .78rem; letter-spacing: .2em; color: var(--cream-mute); }
.process__counter span { color: var(--gold); font-family: var(--f-display); font-style: italic; font-size: 1.6rem; letter-spacing: 0; }

.cs-section .e-con.chef { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; background-color: var(--ink-2); border: 1px solid var(--line); }
.e-con.chef { --margin-top: clamp(5rem, 10vw, 9rem); }
.chef__img .elementor-widget-container, .chef__img img { width: 100%; height: 100% !important; object-fit: cover; }
.chef__img img { aspect-ratio: 3/2; }
.e-con.chef__caption { --justify-content: center; --padding-top: clamp(2rem, 5vw, 4.5rem); --padding-bottom: clamp(2rem, 5vw, 4.5rem); --padding-left: clamp(2rem, 5vw, 4.5rem); --padding-right: clamp(2rem, 5vw, 4.5rem); }
.chef__quote { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.2; }

/* ==========================================================================
   La Carta
   ========================================================================== */
.cs-section.e-con.carta { --padding-top: clamp(5rem, 11vw, 10rem); --padding-bottom: clamp(5rem, 11vw, 10rem); position: relative; }
.carta .section-head--split .section-intro p { max-width: 38ch; }

/* ==========================================================================
   Preferiti rail
   ========================================================================== */
.cs-section.e-con.preferiti { --padding-top: clamp(5rem, 11vw, 10rem); --padding-bottom: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.e-con.preferiti__head { --justify-content: space-between; --align-items: flex-end; --column-gap: 2rem; --row-gap: 1.5rem; --margin-bottom: 3.5rem; }
.cs-section .e-con.preferiti__head > .elementor-element { width: auto; }
.preferiti__nav { display: flex; gap: .8rem; }

.cs-section .e-con.rail {
  flex-direction: row; flex-wrap: nowrap;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  cursor: grab;
}
.e-con.rail {
  --column-gap: clamp(1rem, 2vw, 1.8rem);
  --padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging img { pointer-events: none; }
.cs-section .e-con.rail__item { flex: 0 0 clamp(260px, 26vw, 380px); width: auto; max-width: none; scroll-snap-align: start; position: relative; overflow: hidden; }
.cs-section .e-con.rail__item--wide { flex-basis: clamp(320px, 44vw, 640px); }
.rail__img img { width: 100%; height: clamp(360px, 52vh, 560px) !important; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); user-select: none; -webkit-user-drag: none; }
.rail__item:hover .rail__img img { transform: scale(1.04); filter: saturate(1.08); }
.cs-section .elementor-widget.rail__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.4rem 1.3rem;
  background: linear-gradient(transparent, rgba(11,12,16,.85));
  font-family: var(--f-display); font-size: 1.5rem; font-style: italic; line-height: 1.2;
}
.rail__caption .elementor-heading-title { display: flex; align-items: baseline; gap: .8rem; }
.rail__caption span { font-family: var(--f-body); font-style: normal; font-size: .72rem; letter-spacing: .18em; color: var(--gold); }
.cs-section .elementor-widget.cs-container-widget { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.rail-progress { height: 1px; background: var(--line); margin-top: 2.2rem; position: relative; }
.rail-progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--gold); transition: width .2s linear; }

/* ==========================================================================
   Ambiente
   ========================================================================== */
.cs-section.e-con.ambiente { --padding-top: clamp(4rem, 9vw, 8rem); --padding-bottom: clamp(5rem, 11vw, 10rem); }
.cs-section .e-con.ambiente__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
.e-con.ambiente__grid { --row-gap: clamp(1rem, 2vw, 1.8rem); --column-gap: clamp(1rem, 2vw, 1.8rem); }
.cs-section .e-con.ambiente__intro { grid-column: 1 / 6; grid-row: 1; align-self: end; }
.e-con.ambiente__intro { --padding-bottom: 2rem; }
.ambiente__intro .section-intro p { max-width: 40ch; }
.cs-section .elementor-widget.amb { overflow: hidden; position: relative; }
.amb .elementor-widget-container, .amb figure, .amb img { width: 100%; height: 100% !important; object-fit: cover; }
.amb img { transition: transform 1.4s var(--ease); }
.amb:hover img { transform: scale(1.04); }
.cs-section .elementor-widget.amb--a { grid-column: 6 / 13; grid-row: 1 / 3; aspect-ratio: 4/3.4; overflow: visible; --fx: -16px; --fy: 16px; }
.amb--a img { position: relative; z-index: 1; }
.cs-section .elementor-widget.amb--b { grid-column: 1 / 6; grid-row: 2 / 4; aspect-ratio: 4/3; align-self: start; }
.cs-section .elementor-widget.amb--c { grid-column: 6 / 9; grid-row: 3; aspect-ratio: 1; margin-top: 1rem; }
.cs-section .elementor-widget.amb--d { grid-column: 9 / 13; grid-row: 3; aspect-ratio: 4/3; margin-top: 1rem; }
.amb figure { position: relative; }
.amb figcaption { position: absolute; left: 1rem; bottom: .9rem; margin: 0; font-family: var(--f-display); font-style: italic; font-size: 1.6rem; color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,.6); }

/* ==========================================================================
   Aperitivo
   ========================================================================== */
.cs-section.e-con.aperitivo { display: grid; grid-template-columns: 1fr 1fr; background-color: var(--ink-2); border-block: 1px solid var(--line); }
.cs-section .elementor-widget.aperitivo__media { position: relative; min-height: 520px; overflow: hidden; }
.aperitivo__media .elementor-widget-container { position: absolute; inset: 0; }
.aperitivo__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.cs-section .e-con.aperitivo__copy { max-width: 680px; }
.e-con.aperitivo__copy { --justify-content: center; --padding-top: clamp(3rem, 7vw, 7rem); --padding-bottom: clamp(3rem, 7vw, 7rem); --padding-left: var(--gutter); --padding-right: var(--gutter); }
.aperitivo__copy .section-intro p { max-width: none; }
.drinks { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.drinks li { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); font-family: var(--f-display); font-style: italic; font-size: 1.25rem; }
.drinks li span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); margin-right: .6em; vertical-align: .25em; }

/* ==========================================================================
   Tavolata
   ========================================================================== */
.cs-section.e-con.tavolata {
  --padding-top: clamp(6rem, 14vw, 12rem); --padding-bottom: clamp(6rem, 14vw, 12rem);
  position: relative; overflow: hidden; background-color: var(--ink); background-size: cover; background-position: center;
}
.cs-section.e-con.tavolata::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,12,16,.92) 0%, rgba(11,12,16,.7) 40%, rgba(11,12,16,.1) 80%); }
.cs-section.tavolata > .e-con { position: relative; z-index: 1; }
.cs-section .e-con.tavolata__card { max-width: 560px; background-color: rgba(11,12,16,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.e-con.tavolata__card { --padding-top: clamp(2rem, 4vw, 3.4rem); --padding-bottom: clamp(2rem, 4vw, 3.4rem); --padding-left: clamp(2rem, 4vw, 3.4rem); --padding-right: clamp(2rem, 4vw, 3.4rem); }
.tavolata__card .section-title { font-size: clamp(2.2rem, 4.4vw, 3.8rem); padding-bottom: 1.4rem; }
.tavolata__text { color: var(--cream-dim); }
.ticks { list-style: none; margin: 1.6rem 0 2.2rem; padding: 0; color: var(--cream); }
.ticks li { padding: .55rem 0 .55rem 1.8rem; position: relative; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.1rem; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ==========================================================================
   Besuch / Reservierung
   ========================================================================== */
.cs-section.e-con.besuch {
  --padding-top: clamp(5rem, 11vw, 10rem); --padding-bottom: clamp(5rem, 11vw, 10rem);
  position: relative; overflow: hidden; background-color: var(--ink);
  background-image: radial-gradient(40% 45% at 10% 45%, rgba(43,91,255,.16), transparent 70%);
}
.cs-section .e-con.besuch__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.e-con.besuch__grid { --column-gap: clamp(3rem, 7vw, 7rem); --row-gap: 3rem; }
.cs-section .e-con.reserve { background-color: var(--ink-2); border: 1px solid var(--line); }
.e-con.reserve { --padding-top: clamp(1.6rem, 4vw, 3.2rem); --padding-bottom: clamp(1.6rem, 4vw, 3.2rem); --padding-left: clamp(1.6rem, 4vw, 3.2rem); --padding-right: clamp(1.6rem, 4vw, 3.2rem); }
.reserve__title { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; padding-bottom: 1rem; }
.reserve__title em { color: var(--gold); }
.reserve__note { color: var(--cream-dim); padding-bottom: 2rem; }

/* Carta menu – rendered by [castello_carta] */
.carta__layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); }
.carta__tabs {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  position: sticky; top: calc(var(--header-h) + 2rem); align-self: start;
  max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; scrollbar-width: none;
}
.carta__tabs::-webkit-scrollbar { display: none; }
.carta__tabs button {
  background: none; border: 0; padding: .25rem 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.15;
  color: rgba(11,12,16,.32); transition: color .35s, transform .45s var(--ease);
}
.carta__tabs button sup { font-family: var(--f-body); font-size: .7rem; letter-spacing: .08em; vertical-align: top; margin-left: .3em; }
.carta__tabs button:hover { color: rgba(11,12,16,.7); }
.carta__tabs button[aria-selected="true"] { color: var(--ink); font-style: italic; transform: translateX(14px); }
.carta__tabs button[aria-selected="true"]::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--gold); margin-right: .45em; vertical-align: .18em; transform: rotate(45deg); }

.dishes:not([hidden]) { animation: fadeUp .7s var(--ease) both; }
.dishes__list { list-style: none; margin: 0; padding: 0; }
.dishes__subtitle { margin: 0 0 1.8rem; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: rgba(11,12,16,.6); }
.carta__tabs-group { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: rgba(11,12,16,.45); margin: 1.6rem 0 .6rem; }
.carta__tabs-group:first-child { margin-top: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.dish { padding: 1.6rem 0; border-bottom: 1px solid var(--line-ink); cursor: default; position: relative; }
.dish:first-child { padding-top: 0; }
.dish__row { display: flex; align-items: center; gap: 1rem; }
.dish h3 { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.1; transition: color .3s, transform .45s var(--ease); }
.dish__row { flex-wrap: nowrap; }
.dish h3 { min-width: 0; }
.dish__line { flex: 1; height: 1px; background-image: linear-gradient(90deg, rgba(11,12,16,.35) 1px, transparent 1px); background-size: 6px 1px; min-width: 20px; }
.dish p { margin: .5rem 0 0; color: rgba(11,12,16,.6); }
.dish:hover h3 { color: var(--gold-deep); transform: translateX(6px); }
.dish__thumb { display: none; }

.carta__foot { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 3rem; padding: 1.8rem 2rem; background: var(--paper-2); }
.carta__foot p { margin: 0; color: rgba(11,12,16,.7); max-width: 46ch; }

.dish-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 260px; aspect-ratio: 4/5;
  pointer-events: none; overflow: hidden; border-radius: 999px 999px 4px 4px;
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.85) rotate(-4deg);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow: 0 30px 60px rgba(11,12,16,.35);
}
.dish-preview.is-visible { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(-4deg); }
.dish-preview img { width: 100%; height: 100%; object-fit: cover; }


/* Info, form, map – rendered by [castello_info], [castello_reservierung], [castello_map] */
.info__block { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.info__block:first-child { border-top: 0; padding-top: 0; }
.info__block h3 { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; flex-wrap: wrap; }
.info address { font-style: normal; font-family: var(--f-display); font-weight: 500; font-variant-numeric: lining-nums; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.2; margin-bottom: 1rem; }
.info p a { text-decoration: none; font-family: var(--f-display); font-weight: 500; font-variant-numeric: lining-nums; font-size: 1.5rem; line-height: 1.5; transition: color .3s; }
.info p a:hover { color: var(--gold); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--cream-dim); }
.hours dd { margin: 0; text-align: right; }
.hours div.is-today dt, .hours div.is-today dd { color: var(--gold); }


.cs-form { display: grid; gap: 1.1rem; }
.cs-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cs-form__row--3 { grid-template-columns: 1.3fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-mute); font-weight: 600; }
.field small { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid rgba(244,236,223,.28); border-radius: 0;
  padding: .7rem 0; font: inherit; font-size: 1.02rem;
  transition: border-color .3s;
  color-scheme: dark;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.6rem; }
.field select option { background: var(--ink-2); }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.is-invalid input, .field.is-invalid select { border-color: #E0574B; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .86rem; color: var(--cream-dim); margin-top: .4rem; }
.check input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: .15rem; flex: 0 0 auto; }
.check.is-invalid { color: #F08A80; }
.cs-form__msg { margin: 0; font-size: .92rem; color: var(--gold); min-height: 1.4em; }

.map { position: relative; margin-top: clamp(4rem, 8vw, 6rem); height: clamp(320px, 45vw, 480px); overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); }
.map__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; filter: grayscale(1) blur(2px); }
.map__consent { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .4rem; }
.map__consent p { max-width: 52ch; color: var(--cream-dim); font-size: .9rem; }
.map__address { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem) !important; color: var(--cream) !important; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) invert(.9) hue-rotate(185deg) contrast(.9); }

/* ==========================================================================
   Header
   ========================================================================== */
.cs-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .4s, backdrop-filter .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.cs-header.is-scrolled { background: rgba(11,12,16,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.cs-header.is-hidden { transform: translateY(-100%); }
.cs-header__inner { height: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 2rem; }
.cs-header__logo img { width: 52px; height: 52px; transition: transform .5s var(--ease); }
.cs-header__logo:hover img { transform: rotate(-4deg) scale(1.05); }

.cs-nav { margin-right: auto; }
.cs-nav__list { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.cs-nav__list a {
  text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--cream-dim); position: relative; padding: .4em 0; transition: color .3s;
}
.cs-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.cs-nav__list a:hover, .cs-nav__list a.is-current { color: var(--cream); }
.cs-nav__list a:hover::after, .cs-nav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.cs-nav__mobile-meta { display: none; }

.cs-header__actions { display: flex; align-items: center; gap: 1.2rem; }

.open-status { display: inline-flex; align-items: center; gap: .55em; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); white-space: nowrap; }
.open-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cream-mute); }
.open-status.is-open i { background: #43D17A; box-shadow: 0 0 10px #43D17A; }
.open-status.is-closed i { background: #E0574B; }
.open-status--inline { margin-left: .8em; font-family: var(--f-body); vertical-align: middle; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.cs-footer { border-top: 1px solid var(--line); padding-top: clamp(4rem, 8vw, 6rem); background: var(--ink); }
.cs-footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.cs-footer__logo { width: clamp(110px, 12vw, 160px); height: auto; }
.cs-footer__claim { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.2; margin: 0; color: var(--cream-dim); }
.cs-footer__claim em { color: var(--gold); }
.cs-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-block: 3rem; }
.cs-footer h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.cs-footer p { color: var(--cream-dim); margin: 0; }
.cs-footer p a { text-decoration: none; transition: color .3s; }
.cs-footer p a:hover { color: var(--gold); }
.cs-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem 2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--cream-mute); }
.cs-footer__bottom p { color: var(--cream-mute); }



/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .open-status:not(.open-status--inline) { display: none; }
  .cs-nav__list { gap: 1.5rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .cs-header__logo img { width: 44px; height: 44px; }
  .nav-toggle { display: block; }
  .cs-header__actions .btn { display: none; }
  .cs-header__actions { margin-left: auto; }

  .cs-nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--ink);
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--header-h) var(--gutter) 2rem;
    clip-path: circle(0 at calc(100% - 44px) 36px);
    transition: clip-path .7s var(--ease);
    visibility: hidden;
  }
  .nav-open .cs-nav { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
  .nav-open .cs-header { background: transparent; border-color: transparent; backdrop-filter: none; }
  .cs-nav__list { flex-direction: column; gap: .2rem; }
  .cs-nav__list a { font-family: var(--f-display); font-size: clamp(2.4rem, 10vw, 3.4rem); text-transform: none; letter-spacing: -.01em; color: var(--cream); }
  .cs-nav__list a::after { display: none; }
  .cs-nav__list li:nth-child(odd) a { font-style: italic; }
  .cs-nav__mobile-meta { display: block; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--cream-dim); }

  /* Hero */
  .cs-section .e-con.hero__grid { grid-template-columns: minmax(0, 1fr); }
  .cs-section .e-con.hero__media { height: 60vh; min-height: 380px; margin-right: 16px; }
  .cs-section .e-con.hero__main { inset: 0 0 0 10%; }
  .cs-section .elementor-widget.hero__inset { width: 42%; bottom: -1.5rem; }
  .cs-section .elementor-widget.hero__badge { width: 116px; height: 116px; top: -2rem; right: -.5rem; }

  .cs-section .e-con.section-head--split,
  .cs-section .e-con.manifesto__foot { grid-template-columns: minmax(0, 1fr); }

  /* Process */
  .cs-section .e-con.process { grid-template-columns: minmax(0, 1fr); }
  .cs-section .e-con.process__stage { display: none; }
  .e-con.process__step, .e-con.process__step:first-child { min-height: 0; opacity: 1; --padding-top: 2.4rem; --padding-bottom: 2.4rem; }
  .e-con.process__step:first-child { --padding-top: 0px; }
  .cs-section .elementor-widget.process__img-mobile { display: block; padding-top: 1.4rem; }
  .process__img-mobile img { aspect-ratio: 3/2; object-fit: cover; }
  .cs-section .e-con.chef { grid-template-columns: minmax(0, 1fr); }

  /* Carta (shortcode) */
  .carta__layout { grid-template-columns: 1fr; gap: 2rem; }
  .carta__tabs {
    position: sticky; top: var(--header-h); z-index: 5;
    flex-direction: row; overflow-x: auto; gap: 1.4rem; scrollbar-width: none;
    background: var(--paper); margin-inline: calc(var(--gutter) * -1); padding: .8rem var(--gutter);
    border-bottom: 1px solid var(--line-ink);
  }
  .carta__tabs::-webkit-scrollbar { display: none; }
  .carta__tabs button { font-size: 1.5rem; white-space: nowrap; }
  .carta__tabs-group { display: none; }
  .carta__tabs button[aria-selected="true"] { transform: none; }
  .carta__tabs button[aria-selected="true"]::before { display: none; }
  .carta__tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--gold); }
  .dish { display: grid; grid-template-columns: 76px 1fr; gap: 0 1rem; align-items: start; }
  .dish__thumb { display: block; grid-row: span 2; width: 76px; height: 76px; object-fit: cover; border-radius: 50%; }
  .dish__row { flex-wrap: wrap; gap: .5rem .8rem; }
  .dish__line { display: none; }
  .carta__foot { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .dish-preview { display: none; }

  /* Rail */
  .preferiti__nav { display: none; }

  /* Ambiente */
  .cs-section .e-con.ambiente__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .cs-section .e-con.ambiente__intro { grid-column: 1 / -1; grid-row: auto; }
  .e-con.ambiente__intro { --padding-bottom: 1rem; }
  .cs-section .elementor-widget.amb--a { grid-column: 1 / -1; grid-row: auto; margin-right: 16px; }
  .cs-section .elementor-widget.amb--b { grid-column: 1 / -1; grid-row: auto; margin-top: 1.5rem; }
  .cs-section .elementor-widget.amb--c,
  .cs-section .elementor-widget.amb--d { grid-column: auto; grid-row: auto; aspect-ratio: 1; margin-top: 0; }

  /* Aperitivo */
  .cs-section.e-con.aperitivo { grid-template-columns: minmax(0, 1fr); }
  .cs-section .elementor-widget.aperitivo__media { min-height: 340px; }

  /* Tavolata */
  .cs-section.e-con.tavolata::after { background: linear-gradient(180deg, rgba(11,12,16,.35), rgba(11,12,16,.9) 55%); }
  .cs-section.e-con.tavolata { --padding-top: 40vh; }
  .cs-section .e-con.tavolata__card { margin-right: 16px; width: auto; }

  /* Besuch */
  .cs-section .e-con.besuch__grid { grid-template-columns: minmax(0, 1fr); }
  .cs-section .e-con.reserve { margin-right: 16px; width: auto; }

  .cs-footer__top { grid-template-columns: 1fr; justify-items: start; }
  .cs-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero__title .line:nth-child(2) { padding-left: .5em; }
  .cs-section .e-con.hero__cta > .elementor-widget { width: 100%; }
  .hero__cta .elementor-button { width: 100%; }
  .cs-form__row, .cs-form__row--3 { grid-template-columns: 1fr; }
  .facts { gap: 1.4rem; }
  .facts b { font-size: 1.5rem; }
  .drinks li { grid-template-columns: 1fr 1fr; font-size: 1.1rem; }
  .cs-footer__cols { grid-template-columns: 1fr; }
  .cs-section .e-con.rail__item, .cs-section .e-con.rail__item--wide { flex-basis: 78vw; }
}

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

/* ==========================================================================
   WordPress / Hello integration
   ========================================================================== */

/* Admin bar offset for the fixed header */
.admin-bar .cs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cs-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cs-header { top: 0; } .admin-bar .cs-header.is-scrolled { top: 0; } }

/* Inner pages (Impressum, Datenschutz, Elementor pages …) */
body:not(.castello-home) { padding-top: var(--header-h); }
.cs-header--solid { background: rgba(11,12,16,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }

body:not([class*="elementor-page-"]):not(.castello-home) .site-main {
  width: 100%; max-width: 900px; margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}
.site-main .page-header .entry-title {
  font-family: var(--f-display); font-size: var(--fs-h2); line-height: 1; font-weight: 500;
  letter-spacing: -.02em; margin: 0 0 2.5rem;
}
.site-main .page-content { color: var(--cream-dim); }
.site-main .page-content h2,
.site-main .page-content h3 { font-family: var(--f-display); color: var(--cream); margin: 2.4rem 0 1rem; line-height: 1.15; }
.site-main .page-content h2 { font-size: 1.9rem; }
.site-main .page-content h3 { font-size: 1.4rem; }
.site-main .page-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.site-main .page-content ul, .site-main .page-content ol { padding-left: 1.2rem; }
.site-main .page-content blockquote { border-left: 2px solid var(--gold); margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--cream); }
.site-main .page-content table { width: 100%; border-collapse: collapse; }
.site-main .page-content td, .site-main .page-content th { border-bottom: 1px solid var(--line); padding: .6rem .4rem; text-align: left; }

/* Generic form controls (e.g. Contact Form 7 inside pages) */
.page-content input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.page-content select, .page-content textarea {
  width: 100%; background: transparent; color: var(--cream); font: inherit;
  border: 0; border-bottom: 1px solid rgba(244,236,223,.28); border-radius: 0; padding: .7rem 0;
}
.page-content input[type=submit], .page-content button[type=submit] {
  background: var(--gold); color: var(--ink); border: 1px solid var(--gold); padding: 1em 1.7em;
  font: 600 .82rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}

/* WP core alignment helpers */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--cream-mute); }

/* resmio widget: click-to-load placeholder and the loaded widget */
.resmio { min-height: 120px; }
.resmio__consent { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.resmio__consent p { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--cream-mute); max-width: 46ch; }
.resmio.is-loaded {
  background: #fff; border-radius: var(--radius); padding: 10px;
  display: flex; justify-content: center;
}
.resmio.is-loaded iframe { max-width: 100%; border: 0; display: block; }

/* Reservation system button (resmio). A snippet from the provider usually carries
   inline styles, so the adjustment to the house button needs !important. */
.reserve__booking { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.reserve__booking a[class*="RoomRaccoon"],
.reserve__booking a[class*="resmio"],
.reserve__booking .cs-booking-btn {
  background: var(--gold) !important;
  color: var(--ink) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  padding: 1.15em 2em !important;
  min-height: 0 !important;
  font-family: var(--f-body) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  transition: background .35s var(--ease), color .35s var(--ease);
}
@media (hover: hover) {
  .reserve__booking a[class*="RoomRaccoon"]:hover,
  .reserve__booking a[class*="resmio"]:hover,
  .reserve__booking .cs-booking-btn:hover { background: var(--cream) !important; }
}
.reserve__phone { margin: 0; color: var(--cream-dim); font-size: .95rem; }
.reserve__phone a { color: var(--gold); text-decoration: none; }

/* Reservation feedback */
.cs-notice { padding: 1rem 1.2rem; margin-bottom: 1.6rem; border: 1px solid var(--gold); color: var(--cream); font-size: .95rem; }
.cs-notice--error { border-color: #E0574B; }
.cs-notice strong { color: var(--gold); }
.cs-notice--error strong { color: #F08A80; }
.cs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Dish price */
.dish__price { font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; white-space: nowrap; }

.hours__note { margin: 1rem 0 0; font-size: .9rem; color: var(--cream-mute); }
.cs-footer__legal { list-style: none; margin: 0; padding: 0; line-height: 1.6; }
.cs-footer__legal a { color: var(--cream-dim); text-decoration: none; transition: color .3s; }
.cs-footer__legal a:hover { color: var(--gold); }
.castello-extra { padding-block: clamp(3rem, 6vw, 5rem); }
