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

/* ================================================
   VARIABILI
   Valori estratti dal Dev Mode Figma
     - Sfondo frame: r=0.141 g=0.416 b=0.639 → #246AA3
     - Testo: #FFFFFF
     - Font: Helvetica Neue (400 e 700)
   ================================================ */
:root {
  --color-bg:   #246AA3;
  --color-text: #FFFFFF;
  --font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Dimensioni dal Figma (canvas 1920×1080) */
  --logo-w-desktop:    368px;
  --logo-h-desktop:    288px;
  --contact-size:       18px;
  --contact-lh:         21.47px;
  --status-size:        25px;
  --gap-logo-contact:  108px;
  --gap-contact-status: 66px;
  --margin-right:       379px; /* 1920 - right edge 1541 */
}

/* ================================================
   BASE
   ================================================ */
html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   ACCESSIBILITÀ – skip link
   ================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 999;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  border-bottom-right-radius: 4px;
}
.skip-link:focus {
  top: 0;
}

/* Focus visibile globale – WCAG 2.4.7 */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ================================================
   HERO – layout principale
   Mobile first: contenuto centrato
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

/* ================================================
   LOGO
   ================================================ */
.hero__logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* ================================================
   CONTATTI
   ================================================ */
.hero__contact {
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.65;
  font-style: normal; /* override tag <address> */
}

.hero__contact a {
  color: inherit;
  text-decoration: none;
}

.hero__contact a:hover,
.hero__contact a:focus-visible {
  text-decoration: underline;
}

/* ================================================
   TAG WEB IN PROGRESS
   ================================================ */
.hero__status {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 700;
}

/* ================================================
   TABLET – 768px
   ================================================ */
@media (min-width: 768px) {
  .hero__logo {
    max-width: 310px;
  }

  .hero__contact {
    font-size: 16px;
    margin-top: 64px;
  }

  .hero__status {
    font-size: 20px;
    margin-top: 50px;
  }
}

/* ================================================
   DESKTOP – 1200px
   Riproduce il layout Figma:
     contenuto allineato a destra con margine fisso
     testo right-aligned
   ================================================ */
@media (min-width: 1200px) {
  .hero {
    justify-content: flex-end;
    /* Margine destro proporzionale: 379px su 1920 = ~19.7%
       clamp: minimo 80px, ideale 19.7vw, max 379px          */
    padding-right: clamp(80px, 19.7vw, 379px);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 24px;
  }

  .hero__content {
    align-items: flex-end;
    text-align: right;
    width: var(--logo-w-desktop);
    max-width: var(--logo-w-desktop);
  }

  .hero__logo {
    width: var(--logo-w-desktop);
    max-width: var(--logo-w-desktop);
    height: var(--logo-h-desktop);
    object-fit: contain;
  }

  .hero__contact {
    font-size: var(--contact-size);
    line-height: var(--contact-lh);
    margin-top: var(--gap-logo-contact);
  }

  .hero__status {
    font-size: var(--status-size);
    font-weight: 700;
    margin-top: var(--gap-contact-status);
  }
}

/* ================================================
   LARGHEZZE MOLTO AMPIE (>1920px)
   Mantiene proporzioni senza eccedere
   ================================================ */
@media (min-width: 1921px) {
  .hero {
    padding-right: 379px;
  }
}