@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=Spectral:wght@400;500&display=swap');


/* ==================================================
   RESEDA / PALETTE, TIPOGRAFIA E GABBIA
   ================================================== */

:root {
  --paper: #F2F2F0;
  --concrete: #B8B8B5;
  --charcoal: #34343A;

  --blue-soft: #A2B4DB;
  --periwinkle: #7C8DC9;
  --blue-violet: #5F6EB5;

  --sans:
    "Inter Tight",
    Arial,
    Helvetica,
    sans-serif;

  --serif:
    "Spectral",
    Georgia,
    serif;

  --page-gutter: clamp(28px, 5vw, 76px);
  --main-width: min(54vw, 880px);
  --module-gap: var(--page-gutter);
}


/* ==================================================
   RESET
   ================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;

  width: 100%;
  min-height: 100%;

  background: var(--paper);
  color: var(--charcoal);
}

body {
  font-family: var(--sans);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure,
p {
  margin: 0;
}


/* ==================================================
   STRUTTURA PRINCIPALE
   ================================================== */

.home {
  width: 100%;
}

.main-column {
  width: var(--main-width);
}


/* ==================================================
   APERTURA
   ================================================== */

.hero {
  min-height: 74svh;

  padding:
    clamp(28px, 4vw, 56px)
    var(--page-gutter);

  display: flex;
  align-items: flex-start;
}

.wordmark {
  width: 100%;
  height: auto;
}

.claim {
  margin:
    clamp(10px, 1.1vw, 16px)
    0
    0;

  font-family: var(--sans);
  font-size: clamp(9px, 0.78vw, 12px);
  font-weight: 500;

  line-height: 1.2;
  letter-spacing: 0.25em;

  color: var(--charcoal);
  text-transform: uppercase;
}


/* ==================================================
   PRIMO ELEMENTO VISIVO
   ================================================== */

.visual-entry {
  padding: 0 var(--page-gutter);
}

.visual-entry__figure {
  width: 100%;
}

.visual-entry__image {
  width: 100%;
  height: auto;
}


/* ==================================================
   TESTO EDITORIALE
   ================================================== */

.text-entry {
  padding:
    calc(var(--module-gap) * 2)
    var(--page-gutter)
    0;
}

.editorial-text {
  width: 100%;

  font-family: var(--serif);
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 400;

  line-height: 1.28;
  letter-spacing: -0.012em;

  text-align: justify;

  hyphens: auto;
  -webkit-hyphens: auto;

  text-wrap: pretty;
}

.editorial-text p + p {
  margin-top: clamp(22px, 2.5vw, 34px);
}


/* ==================================================
   LOOP / VIADOTTO
   ================================================== */

.loop-entry {
  padding:
    calc(var(--module-gap) * 2)
    var(--page-gutter)
    0;
}

.viadotto-loop {
  width: 100%;
}

.viadotto-loop__image {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 30 / 11;
  object-fit: contain;

  background: var(--paper);

  border: 0;
  border-radius: 0;
}


/* ==================================================
   CLAIM SOTTO IL LOOP
   ================================================== */

.loop-claim {
  margin:
    clamp(10px, 1.1vw, 16px)
    0
    0;

  font-family: var(--sans);
  font-size: clamp(9px, 0.78vw, 12px);
  font-weight: 500;

  line-height: 1.2;
  letter-spacing: 0.25em;

  color: var(--charcoal);
  text-transform: uppercase;
}


/* ==================================================
   CONTATTI / COLOPHON
   ================================================== */

.site-footer {
  padding:
    calc(var(--module-gap) * 4)
    var(--page-gutter)
    var(--module-gap);
}

.footer-colophon {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  align-items: center;

  font-family: var(--sans);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 400;

  line-height: 1.4;
  letter-spacing: -0.01em;

  color: var(--charcoal);
}

.footer-colophon__item {
  min-width: 0;

  text-align: center;
  white-space: nowrap;
}

.footer-colophon a {
  color: var(--charcoal);

  text-decoration: none;
  text-underline-offset: 4px;
}

.footer-colophon a:hover {
  text-decoration: underline;
}

.footer-colophon a:focus-visible {
  outline: 1px solid var(--charcoal);
  outline-offset: 5px;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1000px) {

  :root {
    --main-width: 64vw;
  }

  .hero {
    min-height: 70svh;
  }

}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 700px) {

  :root {
    --page-gutter: 20px;
    --main-width: 74vw;
    --module-gap: var(--page-gutter);
  }

  .hero {
    min-height: 66svh;

    padding:
      24px
      var(--page-gutter);
  }

  .claim {
    margin-top: 12px;

    font-size: 9px;
    letter-spacing: 0.21em;
  }

  .visual-entry {
    padding:
      0
      var(--page-gutter);
  }

  .text-entry {
    padding:
      calc(var(--module-gap) * 2)
      var(--page-gutter)
      0;
  }

  .editorial-text {
    font-size: 21px;

    line-height: 1.3;
    letter-spacing: -0.008em;

    text-align: left;

    hyphens: none;
    -webkit-hyphens: none;
  }

  .editorial-text p + p {
    margin-top: 24px;
  }

  .loop-entry {
    padding:
      calc(var(--module-gap) * 2)
      var(--page-gutter)
      0;
  }

  .loop-claim {
    margin-top: 12px;

    font-size: 9px;
    letter-spacing: 0.21em;
  }

  .site-footer {
    padding:
      calc(var(--module-gap) * 4)
      var(--page-gutter)
      var(--module-gap);
  }

  .footer-colophon {
    font-size: 10px;

    line-height: 1.35;
    letter-spacing: -0.02em;
  }

}