/* ============================================================
   OTTIN — Landing page · main.css
   ============================================================ */
/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Hanken+Grotesk:wght@300;400;500&display=swap');
/* --- Shipley (self-hosted) --- */
@font-face {
  font-family: 'Shipley';
  src: url('../fonts/Shipley/ShipleyRegular.woff2') format('woff2'), url('../fonts/Shipley/ShipleyRegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Shipley';
  src: url('../fonts/Shipley/ShipleyItalic.woff2') format('woff2'), url('../fonts/Shipley/ShipleyItalic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
/* --- Variables --- */ :root {
  --black-color: #0c0b0a;
  --white-color: #efe7d8;
  --cream-color: #e7dfd1;
  --text-color: #46402f;
  --ink-color: #1b1813;
  --border-color: rgba(12, 11, 10, 0.18);
}
/* --- Reset base --- */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--white-color);
  color: var(--text-color);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.7;
}
ul, ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
p {
  margin: 0 0 0.9rem;
}
p:last-child {
  margin-bottom: 0;
}
::selection {
  color: var(--white-color);
  background: var(--black-color);
}
::-moz-selection {
  color: var(--white-color);
  background: var(--black-color);
}
/* --- Layout --- */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}
/* --- Logo --- */
.site-logo {
  margin-bottom: 3rem;
}
.site-logo img {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: invert(1);
}
/* --- Main message --- */
.landing-title {
  font-family: 'Shipley', Georgia, serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.1;
  color: var(--ink-color);
  margin: 0 0 1rem;
}
.landing-contact {
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 2.5rem;
}
.landing-contact a:hover {
  opacity: 0.6;
}
/* --- Buttons --- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink-color);
  color: var(--ink-color);
  background: transparent;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-pill:hover {
  background: var(--ink-color);
  color: var(--white-color);
  opacity: 1;
}
.btn-pill svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
  display: none;
}
.btn-pill:hover svg {
  transform: translateY(2px);
}
/* --- Divider --- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--border-color);
  margin: 2.5rem auto;
}
/* --- Footer --- */
.site-footer {
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  position: fixed;
  bottom: 0;
  left: 0;
  background: var(--white-color);
}
.site-footer p {
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-color);
  margin: 0;
  line-height: 1.8;
}
/* ============================================================
   VARIANTE DARK — body.black
   ============================================================ */

/* Grain overlay (pseudo-element su body) */
body.black::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../img/grain.png');
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body.black,
body.black .page-wrap,
body.black .site-footer {
  position: relative;
  z-index: 1;
}

body.black {
  background-color: var(--black-color);
  color: var(--white-color);
}

/* Logo: su fondo nero rimane bianco, no invert */
body.black .site-logo img {
  filter: none;
}

/* Titolo e testo */
body.black .landing-title {
  color: var(--white-color);
}
body.black .landing-contact {
  color: rgba(239, 231, 216, 0.7);
}

/* Bottoni */
body.black .btn-pill {
  border-color: rgba(239, 231, 216, 0.5);
  color: var(--white-color);
}
body.black .btn-pill:hover {
  background: var(--white-color);
  color: var(--black-color);
  border-color: var(--white-color);
}

/* Footer */
body.black .site-footer {
  background: var(--black-color);
  border-top-color: rgba(239, 231, 216, 0.15);
}
body.black .site-footer p {
  color: rgba(239, 231, 216, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Responsive --- */
@media (max-width: 767px) {
  html, body {
    font-size: 16px;
  }
  .site-logo img {
    height: 55px;
  }
  .page-wrap {
    padding: 3rem 1.5rem 2.5rem;
  }
  .btn-pill {
    font-size: 10px;
    padding: 0.7rem 1.2rem;
  }
  .site-footer {
    position: static;
    background: transparent;
  }
  body.black .site-footer {
    position: static;
    background: transparent;
  }
}