/* ─── FONT ──────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */

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

/* ─── BASE ──────────────────────────────────────────────────────────────── */

html, body {
  height: 100%;
}

body {
  background-color: #e8823f;
  color: #1a1a1a;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.lang {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status {
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-line {
  font-size: 1.1rem;
  line-height: 1.5;
}

a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
}

.br-mobile {
  display: none;
}

/* ─── PORTRAIT ──────────────────────────────────────────────────────────── */

/* Mobile portrait (≤ 599px) */
@media (orientation: portrait) and (max-width: 599px) {

  html {
    font-size: clamp(13px, 4vw, 16px);
  }

  body {
    padding: 2rem 1.2rem;
  }

  main {
    gap: 1.6rem;
  }

  h1 {
    font-size: 2rem;
  }

  .status {
    font-size: 1.1rem;
  }

  .contact-line {
    font-size: 1rem;
  }

  .br-mobile {
    display: inline;
  }
}

/* Tablet portrait (600px – 1023px) */
@media (orientation: portrait) and (min-width: 600px) {

  html {
    font-size: clamp(16px, 2.5vw, 22px);
  }
}

/* Tablet portrait grande (≥ 1024px) */
@media (orientation: portrait) and (min-width: 1024px) {

  html {
    font-size: clamp(16px, 1.6vw, 18px);
  }
}

/* ─── LANDSCAPE ─────────────────────────────────────────────────────────── */

@media (orientation: landscape) {

  html {
    font-size: clamp(14px, 0.833vw, 22px);
  }
}

/* Mobile ruotato (schermo basso) */
@media (orientation: landscape) and (max-height: 500px) {

  html {
    font-size: 1.5vh;
  }

  body {
    padding: 1.5rem 2rem;
  }

  main {
    gap: 1.2rem;
  }
}
