/* ===================================================================
   Francucci – Ristorante dal 1962
   Deep Brunello red · white · Cormorant Garamond + Jost (self-hosted)
   =================================================================== */

:root {
  --rosso: #8e1216;        /* Brunello red – brand */
  --rosso-vivo: #a91820;   /* hover / accents */
  --nero: #221a17;         /* espresso ink */
  --bianco: #ffffff;
  --carta: #f8f4ef;        /* warm paper panel */
  --linea: #e6ddd3;        /* hairline */
  --grigio: #6e635c;       /* muted text */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-ui: 'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --measure: 44rem;
  --wide: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
:target, section[id] { scroll-margin-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--nero);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }

a { color: var(--rosso); text-decoration-color: color-mix(in srgb, var(--rosso) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--rosso-vivo); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -200vw; top: 0; z-index: 100;
  background: var(--rosso); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; }

.kicker {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--rosso);
  margin: 0 0 1rem;
}

/* ---------- header ---------- */

.site-header { position: relative; z-index: 10; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--linea); background: var(--bianco);
  transition: background-color .25s ease, border-color .25s ease;
}

body.is-page { padding-top: 4.7rem; }

.is-home .topbar {
  background: transparent; border-color: transparent;
}
.is-home.header-scrolled .topbar {
  background: var(--bianco); border-color: var(--linea);
}


.wordmark { display: flex; flex-direction: column; text-decoration: none; color: var(--nero); }
.is-home .wordmark { color: #fff; }
.wordmark-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.wordmark-sub {
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--rosso); margin-top: .3rem;
}
.is-home .wordmark-sub { color: #f3d9ca; }

.topnav { display: flex; align-items: center; gap: 1.4rem; }
.topnav-menu, .lang-switch {
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--nero);
}
.is-home .topnav-menu, .is-home .lang-switch { color: #fff; }
.topnav-menu:hover, .lang-switch:hover { color: var(--rosso); }
.is-home .topnav-menu:hover, .is-home .lang-switch:hover { color: #f3d9ca; }

.btn {
  display: inline-block; font-family: var(--font-ui);
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: .75rem 1.6rem; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn-reserve { background: var(--rosso); color: #fff; border: 1px solid var(--rosso); }
.btn-reserve:hover { background: var(--rosso-vivo); color: #fff; }

.nav-toggle {
  appearance: none; background: none; border: 0; padding: .4rem;
  display: flex; flex-direction: column; gap: 6px; cursor: pointer;
}
.nav-toggle-bar { width: 26px; height: 1.5px; background: var(--nero); transition: transform .2s ease; }
.is-home .nav-toggle-bar { background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--nero); }

.nav-overlay[hidden] { display: none; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 9; background: var(--bianco);
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow-y: auto; padding: 6rem 1.5rem 3rem;
}
.nav-overlay ul { list-style: none; margin: 0; padding: 0; }
.nav-overlay li + li { margin-top: .35rem; }
.nav-overlay a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4.2vh, 2.2rem); font-weight: 500;
  color: var(--nero); text-decoration: none;
}
.nav-overlay a:hover, .nav-overlay a[aria-current="page"] { color: var(--rosso); }
.nav-overlay-contact { margin-top: 2.5rem; font-size: .85rem; color: var(--grigio); }

.is-home.header-scrolled .wordmark, .is-home.header-scrolled .topnav-menu, .is-home.header-scrolled .lang-switch { color: var(--nero); }
.is-home.header-scrolled .topnav-menu:hover, .is-home.header-scrolled .lang-switch:hover { color: var(--rosso); }
.is-home.header-scrolled .wordmark-sub { color: var(--rosso); }
.is-home.header-scrolled .nav-toggle-bar { background: var(--nero); }

body.nav-open { overflow: hidden; }
body.nav-open .topbar { background: var(--bianco); border-bottom: 1px solid var(--linea); }
body.nav-open .wordmark, body.nav-open .topnav-menu, body.nav-open .lang-switch { color: var(--nero); }
body.nav-open .wordmark-sub { color: var(--rosso); }

/* ---------- hero ---------- */

.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: var(--nero); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20, 10, 8, .45), rgba(20, 10, 8, .15) 45%, rgba(20, 10, 8, .55));
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 1.5rem;
}
.hero-logo { width: clamp(104px, 12vw, 132px); height: auto; margin-bottom: 1.6rem; }

.hero-sub { font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; margin: 1.6rem 0 0; color: rgba(255,255,255,.85); }
.hero-hours { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; margin: 1.1rem 0 2.2rem; color: #fff; }
/* GloriaFood's ewm2.js injects inline styles on .glf-button – override hard */
.btn-order.glf-button, .btn-order {
  background: var(--rosso) !important; color: #fff !important;
  border: 1px solid var(--rosso) !important; border-radius: 0 !important;
  box-shadow: none !important; text-shadow: none !important;
  font-family: var(--font-ui) !important; font-size: .8rem !important;
  font-weight: 500 !important; letter-spacing: .18em !important;
  padding: .75rem 1.6rem !important; cursor: pointer;
}
.btn-order.glf-button:hover, .btn-order:hover {
  background: var(--rosso-vivo) !important; border-color: var(--rosso-vivo) !important;
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
}
.hero-scroll span {
  display: block; width: 1px; height: 44px; background: rgba(255,255,255,.7);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue { 0%, 100% { transform: scaleY(1); opacity: .8; } 50% { transform: scaleY(.55); opacity: .4; } }

/* ---------- sections / layout ---------- */

.measure { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section-intro { text-align: center; }
.section-intro p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.5; }

.section-title {
  text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 3rem;
  position: relative; padding-bottom: 1.2rem;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 3rem; height: 2px; background: var(--rosso);
}

.section-features { background: var(--carta); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem 3rem; }
.feature h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.feature p { margin: 0; color: var(--grigio); }

.section-hours { text-align: center; }
.hours-line { font-family: var(--font-display); font-size: 1.3rem; }
.hours-address { color: var(--grigio); }

/* ---------- article pages ---------- */

.page-head {
  text-align: center; padding: clamp(3rem, 8vh, 5rem) 1.5rem clamp(2rem, 5vh, 3rem);
  border-bottom: 1px solid var(--linea); margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.page-head .kicker { margin-bottom: 1.2rem; }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); max-width: 56rem; margin: 0 auto; }

.page-article { padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.intro p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; }
.article-section { margin-top: 3rem; display: flow-root; }
.article-section h2 { font-size: 1.75rem; margin-bottom: .9rem; }
.article-section ul { padding-left: 1.2rem; }
.article-section li { margin-bottom: .5rem; }
.article-section li::marker { color: var(--rosso); }

/* article images – placeholders until the real photos arrive */
.article-figure { margin: 0 0 1.5rem; }
.article-figure img { display: block; width: 100%; height: auto; }
@media (min-width: 64rem) {
  .article-figure { width: min(46%, 21rem); margin-top: .4rem; }
  .article-figure.align-rechts { float: right; margin-left: 2.2rem; margin-right: -5rem; }
  .article-figure.align-links { float: left; margin-right: 2.2rem; margin-left: -5rem; }
}

/* ---------- faq ---------- */

.faq-item { margin-top: 2.6rem; padding-top: 2.4rem; border-top: 1px solid var(--linea); }
.faq-item:first-of-type { border-top: 0; padding-top: 0; }
.faq-item h2 { font-size: 1.55rem; margin-bottom: .7rem; }
.faq-item p { margin: 0; }

/* ---------- events ---------- */

.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li {
  display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--linea);
}
.event-list time { font-weight: 500; letter-spacing: .04em; min-width: 15rem; }
.event-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--rosso); }

/* ---------- menu ---------- */

.page-menu .page-head { border-bottom: 0; margin-bottom: 1rem; }
.menu-meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grigio); margin-top: 1.4rem; }
.page-menu .intro { text-align: center; }

.menu-section { max-width: var(--measure); margin: 0 auto; padding: clamp(2rem, 5vh, 3.2rem) 1.5rem 0; }
.menu-section-title {
  text-align: center; font-family: var(--font-ui); font-size: .95rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--rosso);
  display: flex; align-items: center; gap: 1.2rem;
}
.menu-section-title::before, .menu-section-title::after {
  content: ""; flex: 1; height: 1px; background: var(--linea);
}
.menu-section-intro { text-align: center; font-family: var(--font-display); font-size: 1.15rem; color: var(--grigio); margin: 1rem auto 0; max-width: 38rem; }

.dishes { list-style: none; margin: 2rem 0 0; padding: 0; }
.dish { padding: 1.15rem 0; border-bottom: 1px solid var(--linea); }
.dish:last-child { border-bottom: 0; }
.dish-line { display: flex; align-items: baseline; gap: .8rem; }
.dish-name { font-size: 1.3rem; font-weight: 600; flex: 1; }
.dish-badge {
  font-family: var(--font-ui); font-size: .58rem; font-weight: 600; letter-spacing: .22em;
  color: #fff; background: var(--rosso); padding: .22em .6em; vertical-align: .35em; white-space: nowrap;
}
.dish-price { font-weight: 500; color: var(--rosso); white-space: nowrap; }
.dish-desc { margin: .3rem 0 0; color: var(--grigio); }
.dish-tags { margin: .45rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.tag {
  font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--linea); color: var(--grigio); padding: .18em .55em;
}
.tag-vegan, .tag-glutenfree { border-color: color-mix(in srgb, var(--rosso) 40%, transparent); color: var(--rosso); }
.dish-addons { list-style: none; margin: .45rem 0 0; padding: 0; font-size: .92rem; color: var(--grigio); }
.addon-price { color: var(--rosso); }

.menu-outro { text-align: center; padding-top: clamp(2.5rem, 6vh, 4rem); }
.menu-outro h2 { font-size: 1.6rem; margin: 2.5rem 0 .8rem; }
.menu-stand { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grigio); margin-top: 2rem; }

/* ---------- allergens ---------- */

.allergen-legend ul {
  list-style: none; padding: 1.5rem; margin: 2rem 0; background: var(--carta);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .45rem 1.5rem;
  font-size: .92rem;
}
.legend-letter {
  display: inline-block; width: 1.5rem; font-weight: 600; color: var(--rosso);
}
.allergen-section { margin-top: 2.6rem; }
.allergen-section h2 {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--rosso); margin-bottom: .8rem;
}
.allergen-table { width: 100%; border-collapse: collapse; }
.allergen-table td { padding: .55rem 0; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.allergen-dish { font-size: 1rem; }
.allergen-note { display: block; font-size: .8rem; color: var(--grigio); }
.allergen-sym { text-align: right; white-space: nowrap; }
.allergen-sym .ic { margin-left: .35rem; vertical-align: middle; }
.allergen-none { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grigio); }
.allergen-approval { margin-top: 3rem; font-size: .85rem; color: var(--grigio); }

/* ---------- legal ---------- */

.page-legal h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--nero); color: #efe6dd; text-align: center; padding: clamp(3.5rem, 8vh, 5.5rem) 1.5rem; }
.footer-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: #d9a08c; margin: 0 0 1rem; }
.footer-name { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 1.4rem; }
.footer-address { font-style: normal; line-height: 1.8; }
.site-footer a { color: #efe6dd; }
.site-footer a:hover { color: #fff; }
.footer-hours { color: #bfb2a7; font-size: .95rem; }
.footer-reserve { margin: 1.8rem 0; }
.footer-social { font-size: .9rem; }
.footer-legal { margin-top: 2.5rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #bfb2a7; }
.footer-legal a:hover { color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .topnav-menu { display: none; }
  .topnav .btn-reserve { padding: .55rem 1rem; font-size: .72rem; }
  .dish-line { flex-wrap: wrap; }
  .event-list time { min-width: 0; }
}
