/* Pagina "in lavorazione" + pagine pubbliche dei ristoranti */
:root {
  --ink: #1b1f2a;
  --ink-soft: #5a6070;
  --bg: #faf7f2;
  --card: #ffffff;
  --accent: #e85d3f;
  --accent-dark: #c9472c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 31, 42, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }

/* Pagina "in lavorazione" (vetrina provvisoria) */
.wip-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; text-align: center; }
.wip-brand { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.wip-brand img.brand-logo { height: 64px; width: auto; }
.wip-brand .brand-text { font-size: 2rem; }
.wip h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 .5rem; }
.wip p { color: var(--ink-soft); margin: 0; font-size: 1.1rem; }

/* ---------- Pagina pubblica ristorante (aperta dal tag, mobile first): tema scuro e oro ---------- */
/* Caratteri ospitati sul sito (licenza SIL OFL, vedi assets/fonts/OFL-*.txt): nessuna richiesta a Google */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

.r-page {
  --gold-1: #fbe7a1; --gold-2: #e3b95c; --gold-3: #b8862f;
  --cream: #f6e6bd; --cream-soft: #e9d3a0;
  --serif: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --italic: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  min-height: 100vh; min-height: 100svh;
  display: flex; justify-content: center;
  padding: .9rem .8rem calc(3.4rem + env(safe-area-inset-bottom));
  background: #0b0a08; color: var(--cream);
  overflow-x: hidden;
}
/* Sfondo: livello fisso (funziona anche su iPhone, a differenza di background-attachment: fixed) */
.r-bg { position: fixed; inset: 0; z-index: 0; background: center / cover no-repeat; }
.r-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 35%, rgba(0,0,0,.05), rgba(0,0,0,.45)),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0) 40%, rgba(0,0,0,.5));
}
/* Schermi larghi (PC, tablet orizzontale): lo sfondo è verticale, quindi si mostra intero in una colonna
   centrale con i bordi sfumati nel nero, invece di ingrandirlo fino a vederne solo la fascia centrale */
@media (min-aspect-ratio: 4/5) {
  .r-bg {
    left: 50%; right: auto; width: max(56.25vh, 560px); transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  }
}
.r-defs { position: absolute; }
.r-card { position: relative; z-index: 1; width: 100%; max-width: 440px; text-align: center; padding-top: .2rem; }

/* Logo (o nome) e riga sotto il logo */
.r-head { display: flex; justify-content: center; align-items: center; min-height: 120px; margin-bottom: .4rem; }
/* Il logo sta in un riquadro (max 300x175, meno su schermi bassi) senza deformarsi e senza essere ingrandito oltre la sua misura */
.r-logo { width: auto; height: auto; max-width: min(100%, 300px); max-height: min(175px, 21svh); object-fit: contain; filter: drop-shadow(0 10px 28px rgba(0,0,0,.55)); }
.r-name {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 2.1rem; line-height: 1.15;
  color: var(--gold-1); text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.r-tagline {
  display: flex; align-items: center; gap: .9rem; margin: 0 0 .6rem;
  font-family: var(--serif); font-weight: 500; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream);
}
.r-tagline::before, .r-tagline::after { content: ""; flex: 1; height: 1px; min-width: 1.5rem; }
.r-tagline::before { background: linear-gradient(90deg, transparent, var(--gold-2)); }
.r-tagline::after  { background: linear-gradient(90deg, var(--gold-2), transparent); }
.r-tagline span { flex: 0 1 auto; }

/* Benvenuto */
.r-welcome { margin: 0 0 1rem; }
.r-welcome-title {
  margin: 0; font-family: "Great Vibes", "Brush Script MT", cursive; font-size: 3.1rem; line-height: 1.05;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.r-welcome-sub { margin: .1rem 0 0; font-family: var(--italic); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--cream); }
.r-swoosh { display: block; width: 72%; height: 14px; margin: .45rem auto 0; }

/* Pulsanti */
.r-links { display: flex; flex-direction: column; gap: .7rem; }
.r-link {
  position: relative; display: flex; align-items: center; gap: .9rem;
  min-height: 70px; padding: .55rem .8rem .55rem .85rem; gap: .75rem;
  border: 1.5px solid var(--gold-2); border-radius: 22px;
  background: linear-gradient(180deg, rgba(38,32,22,.82), rgba(10,9,7,.88));
  box-shadow: 0 10px 26px rgba(0,0,0,.45), inset 0 1px 0 rgba(251,231,161,.18), inset 0 0 0 1px rgba(0,0,0,.6);
  color: var(--cream); text-decoration: none; text-align: left;
  transition: transform .12s, box-shadow .12s;
}
.r-link:active { transform: scale(.98); }
.r-link:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.r-link-icon {
  flex: none; display: grid; place-items: center; width: 3.2rem; align-self: stretch;
  padding-right: .75rem; border-right: 1.5px solid rgba(227,185,92,.75);
}
.r-link-icon svg { width: 34px; height: 34px; overflow: visible; }
.r-link-icon .i-fill { fill: url(#r-gold); }
.r-link-icon .i-line { fill: none; stroke: url(#r-gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.r-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.r-link-title {
  font-family: var(--title); font-weight: 600; font-size: 1.18rem; line-height: 1.05; letter-spacing: 0;
  text-transform: uppercase; color: var(--cream); overflow-wrap: anywhere;
}
.r-link-sub { font-family: var(--italic); font-style: italic; font-weight: 500; font-size: 1.04rem; line-height: 1.2; color: var(--cream-soft); }
.r-link-chevron { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.r-desc { margin: 0; font-family: var(--italic); font-style: italic; font-size: 1.2rem; color: var(--cream); }

/* Firma */
.r-powered {
  display: flex; align-items: center; gap: .9rem; margin: 1.3rem 0 0;
  font-family: var(--italic); font-style: italic; font-weight: 500; font-size: 1.05rem;
  color: var(--cream-soft); text-decoration: none;
}
.r-powered::before, .r-powered::after { content: ""; flex: 1; height: 1px; }
.r-powered::before { background: linear-gradient(90deg, transparent, var(--gold-3)); }
.r-powered::after  { background: linear-gradient(90deg, var(--gold-3), transparent); }
.r-powered img.brand-logo { height: 22px; width: auto; }
.r-powered .brand-text { font-size: inherit; font-weight: inherit; color: inherit; }

/* Onda dorata in fondo allo schermo (decorativa) */
.r-wave { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; height: 44px; pointer-events: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Selettore lingua: bandiere */
.r-lang {
  position: fixed; top: 12px; right: 12px; z-index: 2;
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(12,10,8,.72); border: 1px solid rgba(227,185,92,.55);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.r-lang a {
  display: grid; place-items: center;
  width: 44px; height: 34px; border-radius: 999px;
  opacity: .5; filter: grayscale(.6);
  transition: opacity .15s, filter .15s, background .15s;
}
.r-lang a img { width: 30px; height: 20px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.r-lang a.is-current { opacity: 1; filter: none; background: rgba(227,185,92,.16); box-shadow: inset 0 0 0 1.5px var(--gold-2); }
.r-lang a:hover { opacity: 1; filter: none; }

/* Schermi stretti */
@media (max-width: 360px) {
  .r-logo { max-height: min(150px, 20svh); }
  .r-tagline { font-size: .82rem; letter-spacing: .14em; gap: .6rem; }
  .r-welcome-title { font-size: 2.8rem; }
  .r-welcome-sub { font-size: 1.25rem; }
  .r-link { min-height: 66px; gap: .7rem; padding-left: .85rem; }
  .r-link-icon { width: 2.9rem; padding-right: .7rem; }
  .r-link-icon svg { width: 28px; height: 28px; }
  .r-link-title { font-size: 1.15rem; }
  .r-link-sub { font-size: 1rem; }
}

/* Nome azienda al posto del logo (finché il logo reale non c'è) */
.brand-text { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ink); }
