/* Caterina Palmiotto — stile del sito */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/roboto-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: "Roboto";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/roboto-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: "Raleway";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/raleway-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: "Raleway";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/raleway-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 {
  --text: #323335;
  --white: #ffffff;
  --pink: #f7f1f1;
  --black: #000000;
  --header: 74px;
  --pad: 60px;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --display: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 300 18px/1.6 var(--sans);
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.3;
}
h1 { font-size: 48px; }
h1.huge, .split h1, .overlap h1, .full h1 { font-size: 64px; }
h2 { font-size: 36px; }
h3, h4 { font-size: 24px; }
p { margin: 0; }
strong, b { font-weight: 500; }
a { color: inherit; }
.center { text-align: center; }
.right { text-align: right; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--white);
}

/* Pulsanti */

.button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--black);
  border-radius: 25px;
  background: var(--black);
  color: var(--white);
  font: 300 16px/24px var(--sans);
  text-decoration: none;
  transition: opacity .2s;
}
.button:hover { opacity: .8; }
.button--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.actions { margin-top: 30px; }
.actions .button + .button { margin-left: 12px; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 35px;
  background: var(--white);
  font-size: 16px;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { position: relative; }
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
}
.site-nav a[aria-current="page"],
.site-nav .is-active > a {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-nav .has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
  vertical-align: 3px;
}
.site-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  min-width: 200px;
  padding: 8px 0;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.site-nav .has-sub:hover .sub,
.site-nav .has-sub:focus-within .sub { display: flex; }
.site-nav .sub a { display: block; padding: 8px 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand img { width: 61px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--text);
  transition: transform .2s, opacity .2s;
}

main { padding-top: var(--header); }

/* Sfondi */

.bg-white { background: var(--white); --overlay: rgba(255, 255, 255, .8); --box: var(--pink); }
.bg-pink { background: var(--pink); --overlay: rgba(247, 241, 241, .8); --box: var(--white); }

/* Immagine e testo affiancati */

.split, .overlap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.overlap { grid-template-columns: 55% 45%; }
.hero { min-height: calc(100vh - var(--header)); }
.split__media, .overlap__media { position: relative; min-height: 400px; }
.split__media img, .overlap__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split--right .split__media { order: 2; }
.split__text, .overlap__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: calc(563px + 2 * var(--pad));
  padding: 80px var(--pad);
}
.split--right .split__text { justify-self: start; }
.split--left .split__text { justify-self: start; }
.split__text > * + *, .overlap__text > * + * { margin-top: 0; }

/* Il titolo si sovrappone all'immagine dentro un riquadro */
.overlap__text {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-left: -125px;
  padding-left: 0;
}
/* Il primo blocco sta in un riquadro pieno che copre il bordo dell'immagine */
.overlap__text > :first-child {
  margin-right: calc(-1 * var(--pad));
  padding: 40px var(--pad);
  background: var(--box);
}
.overlap__text > :is(h1, h2, h3):first-child { padding-block: 24px; }
.overlap__text > :first-child:not(:last-child) { margin-bottom: 80px; }
/* Rientro di 245px a 1366px come l'originale, ridotto sugli schermi più piccoli */
.overlap__text > :not(:first-child) {
  padding: 0 clamp(0px, (100vw - 1024px) * .16, 55px) 0 clamp(125px, 125px + (100vw - 800px) * .21, 245px);
}
.overlap__text > .actions { margin-top: 60px; }

/* Immagine a tutto schermo con riquadro di testo */

.full {
  position: relative;
  min-height: 100vh;
  padding: 140px 130px;
}
.full__media { position: absolute; inset: 0; }
.full__media img { width: 100%; height: 100%; object-fit: cover; }
.full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
}
.full__text {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

/* Fascia con immagine di sfondo */

.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 80px 20px;
  overflow: hidden;
}
.band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Velatura sopra l'immagine per rendere leggibile la frase */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
}
.band__text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 730px;
  margin: 0 auto;
}

/* Colonna centrata */

.stack { padding: 80px 20px; }
.stack .container { margin: 0 auto; }
.stack--narrow .container { max-width: 730px; }
.stack--wide .container { max-width: 1160px; }
.stack__img {
  width: 100%;
  max-width: 653px;
  margin: 0 auto 40px;
}
.stack .container > .actions:only-child { margin-top: 0; text-align: center; }
.stack--wide .actions, .stack .center ~ .actions { text-align: center; }

.spacer { height: 120px; }

/* Agile Coaching: attività su due colonne, righe separate da una linea */
.stack h2 { margin-bottom: 20px; }
.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}
.offer {
  padding: 11px 0 40px;
  border-top: 1px solid #e6e7f0;
}
.offer:nth-child(odd) { padding-right: 30px; }

/* Schede servizi */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: calc(1160px + 2 * 20px);
  margin: 0 auto;
  padding: 80px 20px;
}
.cards { max-width: none; padding-inline: max(20px, calc((100% - 1160px) / 2)); }
.card { display: flex; flex-direction: column; }
.card .actions { margin-top: auto; padding-top: 30px; }
.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 30px;
}
.card h2 { margin-bottom: 20px; }

/* Home: apertura con ritratto incorniciato */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
  max-width: none;
  min-height: calc(85vh - var(--header));
  padding: 80px max(var(--pad), calc((100% - 1160px) / 2));
}
.intro__roles {
  margin-top: 12px;
  font-size: 20px;
  letter-spacing: .02em;
}
.intro .actions { margin-top: 40px; }
.intro__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
/* Cornice sfalsata dietro la foto */
.intro__media::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--text);
  opacity: .35;
}
.intro__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

/* Home: presentazione */

.about { padding: 100px 20px; }
.about .container { max-width: 720px; margin: 0 auto; }
.about h2 { margin-bottom: 30px; }
.about p + p { margin-top: 1.1em; }
.about__goal {
  padding-left: 24px;
  border-left: 2px solid var(--text);
  font-size: 20px;
}
.about .actions { margin-top: 40px; }

.cards--compact h3 { margin-bottom: 16px; }

/* Freccia "scorri" nelle sezioni di apertura */

.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  transform: translateX(-50%) rotate(45deg);
}
.split--right .scroll-down { left: 25%; }
.split--left .scroll-down { left: 75%; }
.overlap .scroll-down { left: 77.5%; }

/* Footer */

.site-footer {
  padding: 50px var(--pad) 40px;
  font-size: 14px;
}
.social {
  display: flex;
  gap: 20px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.social svg { width: 22px; height: 22px; fill: var(--text); }
.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.legal .button { padding: 8px 20px; font-size: 14px; }
.company { margin-top: 24px; }

/* Testi legali */

.legal-text h1 { margin-bottom: 30px; }
.legal-text h2 { margin: 40px 0 12px; font-size: 24px; }
.legal-text p + p { margin-top: 1em; }

/* Segnaposto ancora da compilare: ben visibile, così non sfugge prima di pubblicare */
.todo { background: #ffe58a; }

/* Tablet e telefono */

@media (max-width: 1024px) {
  :root { --pad: 40px; }
  .full { padding: 100px 40px; }
}

@media (max-width: 800px) {
  :root { --pad: 20px; --header: 64px; }
  h1, h1.huge, .split h1, .overlap h1, .full h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3, h4 { font-size: 22px; }
  body { font-size: 17px; }

  .site-header { padding: 0 12px 0 4px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    display: none;
    padding: 20px;
    overflow-y: auto;
    background: var(--white);
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 8px; font-size: 20px; }
  .site-nav .sub {
    position: static;
    display: flex;
    padding: 0 0 0 16px;
    box-shadow: none;
  }
  .site-nav .sub a { font-size: 17px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand span { font-size: 15px; }
  .brand img { width: 48px; }

  .split, .overlap { grid-template-columns: 1fr; min-height: 0; }
  .split--right .split__media { order: 0; }
  .split__media, .overlap__media { min-height: 0; aspect-ratio: 4 / 3; }
  .split__text, .overlap__text { max-width: none; margin: 0; padding: 40px var(--pad) 60px; }
  .overlap__text > :first-child,
  .overlap__text > :is(h1, h2, h3):first-child { margin: -60px 0 0; padding: 20px; }
  .overlap__text > :first-child:not(:last-child) { margin-bottom: 24px; }
  .overlap__text > :not(:first-child) { padding: 0; }
  .overlap__text > .actions { margin-top: 30px; }
  .hero { min-height: 0; }
  .scroll-down { display: none; }

  .full { padding: 60px var(--pad); min-height: 0; }

  .intro {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: 0;
    padding: 50px var(--pad) 70px;
  }
  .intro__media { order: -1; max-width: 220px; justify-self: start; }
  .intro__media::before { inset: 12px -12px -12px 12px; }
  .intro__roles { font-size: 18px; }
  .intro .actions .button { margin: 0 8px 12px 0; }
  .about { padding: 60px var(--pad); }

  .stack { padding: 60px var(--pad); }
  .band { padding: 60px var(--pad); min-height: 300px; }
  .cards { grid-template-columns: 1fr; gap: 50px; padding: 60px var(--pad); }
  .spacer { height: 60px; }
  .offers { grid-template-columns: 1fr; }
  .offer { padding: 16px 0 24px; }
  .offer:nth-child(odd) { padding-right: 0; }
}
