/* Miraform shared shell: tokens, header, footer, buttons, generic section
   patterns reused across every page. Page-specific layout lives in its own
   stylesheet (home.css, ristoranti.css, ...). */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #101114;
  --paper: #f2f0e9;
  --paper-soft: #e7e5de;
  --muted: #71716d;
  --line: rgba(16, 17, 20, .15);
  --acid: #d8ec93;
  --coral: #ec8d76;
  --blue: #9db8db;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --display-italic: "Cormorant Garamond", "Newsreader", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --label: "Manrope", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

.section-shell { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }

/* Header */
.site-header {
  height: 92px;
  width: min(1240px, calc(100% - 72px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--label); font-size: 17px; font-weight: 750; letter-spacing: -.04em; }
.brand-mark { display: inline-flex; align-items: end; gap: 3px; width: 22px; height: 22px; }
.brand-mark i { display: block; width: 5px; border-radius: 3px; background: var(--ink); transform: skew(-18deg); }
.brand-mark i:nth-child(1) { height: 12px; opacity: .5; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 15px; opacity: .7; }

.main-nav { display: flex; align-items: center; gap: 29px; font-family: var(--label); color: #555650; font-size: 13px; font-weight: 550; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--ink); }
.nav-cta { padding: 12px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); }
.nav-cta span { margin-left: 12px; }

.menu-toggle { display: none; border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 1px; background: var(--ink); margin: 5px 0; }
.menu-toggle b { display: none; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; color: #777770; margin: 0 0 24px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; }

h1 em, h2 em { font-family: var(--display-italic); color: #777a4c; font-style: italic; }

/* Buttons */
.hero-actions, .concept-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 100px;
  padding: 15px 20px;
  font-family: var(--label);
  font-size: 13px;
  font-weight: 750;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #2b2c2d; }
.button-light { background: var(--paper); color: var(--ink); }
.text-link { color: #64655f; font-family: var(--label); font-size: 13px; font-weight: 650; }
.text-link span { margin-left: 10px; }

/* Generic two-column statement block */
.statement { padding: 140px 0 160px; border-top: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; }
.statement h2, .section-heading h2, .method-intro h2 {
  font: 400 clamp(45px, 5.5vw, 80px)/.96 var(--display);
  letter-spacing: -.065em;
  margin: 0;
}
.statement-body { padding-top: 11px; max-width: 420px; color: #5f605b; font-size: 16px; }
.statement-body p { margin-bottom: 27px; }
.muted { color: #999991; }

/* Generic section heading (label + title + intro paragraph) */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 68px; }
.section-heading > p { max-width: 315px; color: #777770; font-size: 14px; margin-bottom: 3px; }

/* Generic numbered row list (method steps, includes, etc.) */
.method { padding: 0 0 165px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.method-intro { align-self: start; }
.method-list { border-top: 1px solid var(--line); }
.method-row { min-height: 143px; padding: 28px 0; display: grid; grid-template-columns: 55px 1fr 25px; gap: 20px; border-bottom: 1px solid var(--line); }
.method-index { font-family: var(--label); font-size: 11px; color: #878781; }
.method-row h3 { font: 400 29px/1 var(--display); letter-spacing: -.04em; margin-bottom: 11px; }
.method-row p { color: #777770; font-size: 13px; max-width: 420px; margin: 0; }
.method-symbol { font-size: 20px; color: #777770; }

/* Generic dark closing CTA card */
.closing { padding-bottom: 94px; }
.closing-card { min-height: 470px; padding: 70px 85px; border: 1px solid rgba(82,96,66,.34); border-radius: 10px; background: #e4e2d6; color: var(--ink); position: relative; overflow: hidden; }
.closing-card::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -290px;
  border: 1px solid rgba(83,100,65,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(83,100,65,.055), 0 0 0 110px rgba(83,100,65,.028);
}
.closing-card .eyebrow { color: #6d7364; }
.closing-card .eyebrow span { background: #65784f; }
.closing-card h2 { max-width: 700px; font: 400 clamp(50px, 6vw, 86px)/.93 var(--display); letter-spacing: -.07em; margin: 0 0 28px; }
.closing-card h2 em { color: #65784f; font-family: var(--display-italic); }
.closing-card > p:not(.eyebrow) { max-width: 360px; color: #65685f; font-size: 14px; margin-bottom: 33px; }
.closing-card .button-light { background: var(--ink); color: var(--paper); }
.closing-card .button-light:hover { background: #3a4034; }

/* Footer */
.site-footer { min-height: 112px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #7c7d76; font-size: 11px; }
.footer-brand { color: var(--ink); }
.footer-brand .brand-mark i { background: var(--ink); }
.footer-year { color: #a3a39c; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }

/* Simple content page (legal placeholders) */
.plain-content { padding: 60px 0 160px; max-width: 720px; }
.plain-content h1 { font: 400 clamp(40px, 6vw, 60px)/1 var(--display); letter-spacing: -.05em; margin-bottom: 24px; }
.plain-content p { color: #5f605b; font-size: 16px; margin-bottom: 18px; }

@media (max-width: 800px) {
  .section-shell, .site-header { width: min(100% - 40px, 620px); }
  .site-header { height: 77px; }
  .menu-toggle { display: block; position: relative; z-index: 6; }
  .main-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(242,240,233,.97);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 16px 32px rgba(16,17,20,.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .main-nav a { padding: 12px 8px; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .statement { padding: 100px 0 110px; }
  .statement-grid, .method { grid-template-columns: 1fr; gap: 40px; }
  .statement h2, .section-heading h2, .method-intro h2 { font-size: clamp(45px, 13vw, 70px); }
  .section-heading { display: block; margin-bottom: 45px; }
  .section-heading > p { margin-top: 28px; }
  .method { padding-bottom: 110px; gap: 55px; }
  .method-row { grid-template-columns: 38px 1fr 15px; gap: 10px; }
  .method-row h3 { font-size: 26px; }
  .closing { padding-bottom: 60px; }
  .closing-card { min-height: 440px; padding: 47px 28px; }
  .closing-card h2 { font-size: clamp(49px, 14vw, 76px); }
  .site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 26px 0; }
  .site-footer p { grid-column: 1 / -1; order: 3; margin: 0; }
}

/* Keyboard and motion preferences are part of the finished experience. */
:where(a, button):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

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