/* ==========================================================================
   Ristorante Il Moro — GLOBAL
   Font, design token, reset e tipografia di base.
   Ordine dei file CSS: global → layout → header → footer → components → pages/*
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT (self-hosted, nessuna richiesta a Google)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Big Caslon";
  src: url("../fonts/BigCaslonFB-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Big Caslon";
  src: url("../fonts/BigCaslonFB-Bold.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Big Caslon";
  src: url("../fonts/BigCaslonFB-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Il taglio "Black" usato per bottoni, menu e titoli dei menu */
@font-face {
  font-family: "Big Caslon Black";
  src: url("../fonts/BigCaslonFB-Black.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kunstler Script";
  src: url("../fonts/KunstlerScript.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tangerine";
  src: url("../fonts/Tangerine-400.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tangerine";
  src: url("../fonts/Tangerine-700.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cantarell";
  src: url("../fonts/Cantarell-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKEN
   -------------------------------------------------------------------------- */
:root {
  /* Colori */
  --c-primary: #8B3224;      /* rosso mattone */
  --c-secondary: #DCA26B;    /* caramello */
  --c-text: #2F2621;         /* testo scuro */
  --c-black: #231F1F;
  --c-grey: #C5B8B8;
  --c-peach: #F1D6BD;        /* pesca: sfondi chiari */
  --c-cream: #E5CFBD;        /* crema: testi su rosso, card */
  --c-white: #FFFFFF;
  --c-cream-50: #E5CFBD80;
  --c-cream-25: #E5CFBD40;
  --c-frame: #FFCB7957;      /* cornice immagini / mappa */
  --c-frame-dish: #F1B275AB; /* cornice foto piatti */

  --shadow-soft: 0 0 10px rgba(0, 0, 0, .21);
  --shadow-card: 0 0 10px rgba(0, 0, 0, .5);

  /* Famiglie */
  --f-body: "Source Sans Pro", system-ui, sans-serif;
  --f-serif: "Big Caslon", "Times New Roman", Georgia, serif;
  --f-black: "Big Caslon Black", "Big Caslon", Georgia, serif;
  --f-script: "Tangerine", cursive;
  --f-hero: "Kunstler Script", "Tangerine", cursive;
  --f-display: "Playfair Display", Georgia, serif;

  /* Scala tipografica (desktop) */
  --fs-primary: 19px;   /* testi principali */
  --fs-secondary: 17px; /* testi secondari, sottomenu */
  --fs-text: 18px;
  --fs-button: 16px;
  --fs-nav: 16px;
  --fs-script: 110px;   /* titoli Tangerine */
  --fs-item: 23px;      /* nomi dei piatti */
  --fs-menu-title: 30px;/* titoli categorie menu */

  --ls-primary: 1px;
  --ls-secondary: .7px;

  /* Layout */
  --container: 1140px;
  --gutter: 10px;
  --header-h: 13vh;

  --radius-pill: 100px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 1024px) {
  :root {
    --fs-primary: 18px;
    --ls-secondary: 1px;
    --fs-nav: 18px;
    --fs-script: 100px;
    --fs-item: 21px;
    --container: 1024px;
  }
}

@media (max-width: 767px) {
  :root {
    --fs-primary: 17px;
    --fs-nav: 17px;
    --fs-script: 70px;
    --fs-item: 19px;
    --fs-menu-title: 25px;
    --container: 767px;
  }
}

/* --------------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-primary);
  color: var(--c-cream);
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s, background-color .3s, border-color .3s;
}

p {
  margin: 0 0 .9em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFIA DI BASE
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  color: var(--c-cream);
  font-family: var(--f-display);
  font-size: 110px;
}

h2 {
  color: var(--c-cream);
  font-family: var(--f-display);
  font-size: 45px;
  text-transform: capitalize;
}

h3 {
  color: var(--c-cream);
  font-family: var(--f-body);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

h4 {
  color: var(--c-primary);
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: capitalize;
}

h5 {
  color: var(--c-cream);
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  h1 { font-size: 72px; }
  h2 { font-size: 35px; }
}

@media (max-width: 767px) {
  h1 { font-size: 35px; }
  h2 { font-size: 30px; }
  h3 { line-height: 1.5; }
}

/* Testi con il font del sito */
.t-primary {
  font-family: var(--f-serif);
  font-size: var(--fs-primary);
  font-weight: 500;
  letter-spacing: var(--ls-primary);
}

.t-secondary {
  font-family: var(--f-serif);
  font-size: var(--fs-secondary);
  letter-spacing: var(--ls-secondary);
}

.t-text {
  font-family: var(--f-serif);
  font-size: var(--fs-text);
}

/* Titolo calligrafico (Tangerine) */
.script-title {
  font-family: var(--f-script);
  font-size: var(--fs-script);
  font-weight: 500;
  line-height: 1.1;
  text-transform: capitalize;
  color: var(--c-primary);
  -webkit-text-stroke: 1px currentColor;
}

.script-title--stroke-2 {
  -webkit-text-stroke-width: 2px;
}

.script-title--light {
  color: var(--c-cream);
}

@media (max-width: 767px) {
  .script-title,
  .script-title--stroke-2 {
    -webkit-text-stroke-width: 1px;
  }
}

/* --------------------------------------------------------------------------
   5. UTILITY E ACCESSIBILITÀ
   -------------------------------------------------------------------------- */
.visually-hidden {
  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 {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--c-peach);
  color: var(--c-primary);
  font-family: var(--f-black);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 12px;
}

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

.text-center { text-align: center; }

/* Il nome del ristorante non va tradotto da Google Translate */
.notranslate { unicode-bidi: isolate; }

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