/* Pagina di cortesia — stesso stile del tema "loggia-massonica" (loggia.test):
   Marcellus + PT Serif, palette #342E2E / #E8E8E8 / #FBFBFB / #CFCDC7. */

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/marcellus-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/marcellus-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ptserif-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ptserif-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --lm-black: #342e2e;
  --lm-bg: #e8e8e8;
  --lm-white: #fbfbfb;
  --lm-accent: #cfcdc7;
  --lm-muted: #6d6565;
  --lm-line: rgba(52, 46, 46, 0.18);
  --lm-font-heading: "Marcellus", Georgia, "Times New Roman", serif;
  --lm-font-body: "PT Serif", Georgia, "Times New Roman", serif;
  --lm-width: 1500px;
  --lm-pad: 4vw;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--lm-bg);
  color: var(--lm-black);
  font-family: var(--lm-font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--lm-black);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--lm-muted);
}

h1,
h2 {
  font-family: var(--lm-font-heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4vw + 0.6rem, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.wrap {
  max-width: var(--lm-width);
  margin: 0 auto;
  padding-inline: var(--lm-pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lm-white);
  padding: 12px 20px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Intestazione ---------- */

.site-header {
  background: var(--lm-black);
  color: var(--lm-white);
}

.header-inner {
  display: flex;
  align-items: center;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--lm-font-heading);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand img {
  width: 42px;
  flex: 0 0 auto;
}

/* ---------- Apertura ---------- */

.hero {
  display: flex;
  align-items: center;
  background: var(--lm-black);
  color: var(--lm-white);
  min-height: calc(100vh - 86px);
  min-height: calc(100svh - 86px);
  padding-block: clamp(48px, 7vw, 110px);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-emblem {
  width: clamp(150px, 17vw, 220px);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.kicker {
  margin: 0 0 18px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lm-accent);
}

.hero h1 {
  margin-bottom: 0.35em;
}

.lead {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  color: rgba(251, 251, 251, 0.86);
}

.cta {
  margin: clamp(28px, 3vw, 40px) 0 0;
}

.btn {
  display: inline-block;
  padding: 19px 32px;
  border-radius: 300px;
  background: var(--lm-accent);
  color: var(--lm-black);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--lm-white);
  outline: 2px solid var(--lm-accent);
  outline-offset: 2px;
}

/* ---------- Principi ---------- */

.motto {
  background: var(--lm-accent);
  padding-block: clamp(28px, 4vw, 52px);
}

.motto p {
  margin: 0;
  text-align: center;
  font-family: var(--lm-font-heading);
  font-size: clamp(1.1rem, 1.3vw + 0.65rem, 1.75rem);
  letter-spacing: 0.02em;
}

.motto span {
  color: rgba(52, 46, 46, 0.5);
  padding-inline: 0.3em;
}

/* ---------- Piè di pagina ---------- */

.site-footer {
  background: var(--lm-white);
  padding: clamp(40px, 5vw, 64px) 0 26px;
  font-size: 0.94rem;
}

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

.footer-inner h2 {
  font-size: 1.15rem;
  margin-bottom: 0.8em;
}

.footer-inner p {
  margin: 0 0 1.1em;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}

.footer-inner a {
  text-decoration-color: var(--lm-line);
}

.copyright {
  max-width: var(--lm-width);
  margin: 32px auto 0;
  padding: 18px var(--lm-pad) 0;
  border-top: 1px solid var(--lm-line);
  font-size: 0.82rem;
  color: var(--lm-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .brand {
    gap: 10px;
    font-size: 0.92rem;
  }

  .brand img {
    width: 36px;
  }

  .hero {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
  }

  .btn {
    padding: 16px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
