/* ============================================================
   DAL SYRIANO SNACK — one-page
   Palette: ink / warm paper / paprika — stile editoriale bold
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("../vendor/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../vendor/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Cairo: usato SOLO per i glifi arabi (unicode-range), Anton/Inter non li hanno */
@font-face {
  font-family: "Cairo";
  src: url("../vendor/fonts/cairo-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --ink: #101014;
  --ink-2: #1a1a20;
  --paper: #f6f1e7;
  --paper-dim: #eee7d8;
  /* rossi ufficiali dal pannello menu stampato (logo bg: #782a2d) */
  --accent: #ce4148;
  --accent-deep: #782a2d;
  --dim: rgba(246, 241, 231, 0.64);
  --display: "Anton", "Cairo", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", "Cairo", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 8px 0 18px;
}
.kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.kicker--light { color: var(--accent); }
.body { max-width: 54ch; font-size: 1.05rem; }
.body--dim { color: var(--dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 26px;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 8px 24px rgba(206, 65, 72, 0.35); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.btn--ghost-light { border-color: var(--paper); color: var(--paper); }
.btn--call {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  padding: 9px 18px;
  min-height: 40px;
  font-size: 0.85rem;
}
.btn--call:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--big {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
  padding: 18px 44px;
}
.btn--big:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 14px 34px rgba(16, 16, 20, 0.35); }

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.7s var(--ease);
}
.loader.done { transform: translateY(-100%); }
.loader__inner { text-align: center; overflow: hidden; }
.loader__logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px rgba(246, 241, 231, 0.08);
  animation: loadIn 0.75s var(--ease) both;
}
.loader__word {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 6rem);
  color: var(--paper);
  letter-spacing: 0.04em;
  animation: loadIn 0.75s var(--ease) both;
}
.loader__sub {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: loadIn 0.75s 0.15s var(--ease) both;
}
@keyframes loadIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(16, 16, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246, 241, 231, 0.1);
  transition: transform 0.35s var(--ease);
}
.header.hide { transform: translateY(-100%); }
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.header__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(246, 241, 231, 0.18);
}
.header__logo em { font-style: normal; color: var(--accent); }
.header__nav { display: flex; gap: 26px; }
.header__nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}
.header__nav a:hover { opacity: 1; color: var(--accent); }
.header__side { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1.5px solid rgba(246, 241, 231, 0.3); border-radius: 999px; overflow: hidden; }
.lang__btn {
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 7px 11px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.lang__btn:hover { opacity: 1; }
.lang__btn.is-on { background: var(--accent); opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__arabic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(14rem, 38vw, 34rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 241, 231, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero__grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 9.5vw, 8.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.line { display: block; overflow: hidden; padding-top: 0.09em; margin-top: -0.09em; }
.line__in {
  display: inline-block;
  transform: translateY(115%);
  animation: lineUp 0.9s 0.55s var(--ease) forwards;
}
.line--accent .line__in {
  color: var(--accent);
  animation-delay: 0.7s;
}
@keyframes lineUp { to { transform: none; } }
.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--dim);
  animation: fadeUp 0.8s 1s var(--ease) both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  animation: fadeUp 0.8s 1.15s var(--ease) both;
}
.hero__addr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dim);
  animation: fadeUp 0.8s 1.3s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* — piatto rotante + scritta araba circolare attorno — */
.hero__visual {
  position: relative;
  justify-self: center;
  --plate: clamp(210px, 30vw, 400px);
  width: calc(var(--plate) * 1.5);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: fadeUp 1s 0.9s var(--ease) both;
}
.bowl {
  grid-area: 1 / 1;
  width: var(--plate);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(246, 241, 231, 0.06), 0 26px 70px rgba(0, 0, 0, 0.5);
  animation: spin 30s linear infinite;
}
.bowl img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }

/* anello di testo: gira attorno al piatto, in senso opposto */
.ring {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  animation: spinBack 28s linear infinite;
  pointer-events: none;
}
.ring svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ring__txt {
  direction: ltr; /* fa progredire il testo lungo il path; le legature arabe restano corrette */
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  fill: var(--paper);
}
@keyframes spinBack { to { transform: rotate(-360deg); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--accent-deep);
  color: var(--paper);
  overflow: hidden;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 30s linear infinite;
}
.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about__feats { list-style: none; margin-top: 26px; display: grid; gap: 13px; }
.about__feats li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
}
.about__feats svg { color: var(--accent-deep); flex-shrink: 0; }
.about__media { position: relative; }
.about__photo {
  border: 3px solid var(--ink);
  box-shadow: 16px 16px 0 var(--accent);
  overflow: hidden;
  transform: rotate(1.2deg);
  transition: transform 0.4s var(--ease);
}
.about__photo:hover { transform: rotate(0deg) scale(1.01); }
.about__photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ============================================================
   SIGNATURE CAROUSEL
   ============================================================ */
.sig__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.sig__arrows { display: flex; gap: 10px; }
.arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.arrow:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.arrow:active { transform: scale(0.95); }

#sigSwiper { overflow: visible; }
.card {
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  height: auto;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translate(-5px, -5px) rotate(-0.5deg);
  box-shadow: 10px 10px 0 var(--accent);
}
.card__img { overflow: hidden; border-bottom: 2.5px solid var(--ink); }
.card__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__body h3 { font-size: 1.06rem; font-weight: 800; line-height: 1.25; }
.card__body p { font-size: 0.88rem; color: rgba(16, 16, 20, 0.62); }
.card__price {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--accent-deep);
}

/* ============================================================
   MENU COMPLETO
   ============================================================ */
.menu__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 30px;
}
.tab {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 11px 20px;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.tab:hover { transform: translateY(-2px); }
.tab.is-on { background: var(--ink); color: var(--paper); }

.menu__panel { max-width: 780px; }
.mrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1.5px solid rgba(16, 16, 20, 0.14);
  animation: fadeUp 0.4s var(--ease) both;
}
.mrow:nth-child(2) { animation-delay: 0.04s; }
.mrow:nth-child(3) { animation-delay: 0.08s; }
.mrow:nth-child(4) { animation-delay: 0.12s; }
.mrow:nth-child(5) { animation-delay: 0.16s; }
.mrow:nth-child(6) { animation-delay: 0.2s; }
.mrow:nth-child(7) { animation-delay: 0.24s; }
.mrow:nth-child(8) { animation-delay: 0.28s; }
.mrow__name { font-weight: 800; font-size: 1.02rem; }
.mrow__desc { display: block; font-weight: 400; font-size: 0.86rem; color: rgba(16, 16, 20, 0.58); margin-top: 2px; }
.mrow__dots {
  flex: 1;
  border-bottom: 2px dotted rgba(16, 16, 20, 0.3);
  transform: translateY(-5px);
  min-width: 30px;
}
.mrow__price {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--accent-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LOCATION
   ============================================================ */
.loc__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
}
.loc__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.loc__map {
  border: 3px solid var(--paper);
  box-shadow: 14px 14px 0 var(--accent);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.loc__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s var(--ease);
}
.loc__map:hover iframe { filter: none; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--accent-deep);
  color: var(--paper);
  padding: clamp(64px, 9vw, 110px) 0;
  border-top: 2px solid var(--ink);
}
.cta__inner { text-align: center; }
.cta__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.04;
  text-transform: uppercase;
  margin-bottom: 34px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer__logo {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.footer__logo em { font-style: normal; color: var(--accent); }
.footer__col { font-size: 0.9rem; display: grid; gap: 6px; }
.footer__col a { color: var(--paper); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.footer__col a:hover { color: var(--accent); }
.footer__col--meta { text-align: right; color: rgba(246, 241, 231, 0.45); font-size: 0.78rem; }

/* ============================================================
   ARABO / RTL
   ============================================================ */
/* il letter-spacing spezza le legature arabe: azzerato quando lang=ar */
html[lang="ar"] .hero__title,
html[lang="ar"] .h2,
html[lang="ar"] .cta__head,
html[lang="ar"] .kicker,
html[lang="ar"] .loader__sub,
html[lang="ar"] .marquee__track span { letter-spacing: 0; }
html[lang="ar"] .hero__title { line-height: 1.15; }
html[lang="ar"] .h2 { line-height: 1.2; }
/* il carousel resta LTR meccanicamente, ma i testi delle card vanno a destra */
html[lang="ar"] .card__body { direction: rtl; text-align: right; }
html[lang="ar"] .btn { direction: rtl; }
/* i numeri di telefono restano sempre LTR (altrimenti i gruppi si invertono) */
html[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }
/* il textPath del badge ha bisogno di progressione LTR anche col documento in RTL */
.badge svg text { direction: ltr; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.is-in { opacity: 1 !important; transform: none !important; }
/* senza JS: tutto visibile, niente loader */
html:not(.js) .loader { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .header__nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { order: -1; margin-top: 10px; }
  .hero { padding-top: 104px; }
  .about__grid, .loc__grid { grid-template-columns: 1fr; }
  .about__media { margin: 8px 8px 20px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__col--meta { text-align: left; }
}
@media (max-width: 560px) {
  .btn--call span { display: none; }
  .btn--call { padding: 9px 12px; }
  .sig__head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bowl, .ring, .marquee__track { animation: none; }
  .line__in, .hero__sub, .hero__cta, .hero__addr, .hero__visual { animation: none; transform: none; opacity: 1; }
  .loader__word, .loader__sub { animation: none; opacity: 1; }
  /* .js aumenta la specificità così batte .js .reveal{opacity:0} — niente sezioni invisibili con reduced-motion */
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .mrow { animation: none; }
}
