/* Palette */
:root {
  --background: #fffffe;
  --headline: #094067;
  --paragraph: #5f6c7b;
  --button: #3da9fc;
  --button-text: #fffffe;
  --stroke: #094067;
  --main: #fffffe;
  --highlight: #3da9fc;
  --secondary: #90b4ce;
  --tertiary: #ef4565;
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--paragraph);
  line-height: 1.6;
}
h1, h2, h3, h4 { color: var(--headline); line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: .75rem; }
h3 { margin-bottom: .5rem; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
section { scroll-margin-top: 72px; }

/* Bottoni */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--button);
  color: var(--button-text);
  border: 2px solid var(--button);
  border-radius: 6px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(9, 64, 103, .25); }
.btn--small { padding: .5rem 1.1rem; }
.btn--outline { background: transparent; border-color: var(--main); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--main);
  border-bottom: 1px solid var(--secondary);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  flex-wrap: wrap;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--headline); }
.logo span { color: var(--highlight); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--headline); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--highlight); }
.menu-toggle, .menu-icon { display: none; }

/* Cover (per usare una foto: aggiungere url("img/cover.jpg") dopo il gradiente) */
.cover {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(9, 64, 103, .97), rgba(9, 64, 103, .75)) center / cover;
  background-color: var(--secondary);
}
.cover__inner { padding-block: 4rem; }
.cover h1 { color: var(--main); font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; }
.cover h1 em { font-style: normal; color: var(--highlight); }
.eyebrow {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  margin-bottom: 1rem;
}
.cover__text { color: var(--main); font-size: 1.15rem; max-width: 48ch; margin: 1.25rem 0 2rem; }
.cover__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cover .btn--outline { color: var(--main); }

/* Sezioni */
.section { padding-block: 5rem; }
.section--alt { background: rgba(144, 180, 206, .18); }
.section__intro { margin-bottom: 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--main);
  padding: 1.75rem;
  border: 1px solid var(--secondary);
  border-top: 4px solid var(--highlight);
  border-radius: 8px;
  transition: transform .2s, border-top-color .2s;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--tertiary); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checklist { list-style: none; margin-top: 1.5rem; }
.checklist li { padding: .35rem 0; }
.checklist li::before { content: "✓"; color: var(--tertiary); font-weight: 700; margin-right: .6rem; }
.placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: var(--secondary);
  color: var(--stroke);
  border: 2px dashed var(--stroke);
  border-radius: 8px;
  font-weight: 600;
}
.placeholder--tall { min-height: 340px; }

/* Call to action */
.cta { background: var(--headline); text-align: center; padding-block: 4rem; }
.cta h2 { color: var(--main); }
.cta p { color: var(--secondary); margin-bottom: 1.5rem; }

/* Footer */
.footer { background: var(--main); border-top: 4px solid var(--highlight); padding-top: 3rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer h4 { margin-bottom: .75rem; }
.footer a { display: block; }
.footer a:hover { color: var(--highlight); }
.footer__bottom {
  text-align: center;
  font-size: .9rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--secondary);
}

/* Mobile */
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .menu-toggle { display: block; position: absolute; opacity: 0; right: 1rem; width: 40px; height: 40px; }
  .menu-icon { display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
  .menu-toggle { z-index: 2; cursor: pointer; }
  .menu-icon span, .menu-icon span::before, .menu-icon span::after {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--headline);
    border-radius: 2px;
  }
  .menu-icon span { position: relative; }
  .menu-icon span::before, .menu-icon span::after { content: ""; position: absolute; }
  .menu-icon span::before { top: -8px; }
  .menu-icon span::after { top: 8px; }
  .menu-toggle:focus-visible + .menu-icon { outline: 2px solid var(--highlight); }
  .nav { display: none; width: 100%; flex-direction: column; gap: 1rem; padding-block: 1rem; }
  .menu-toggle:checked ~ .nav { display: flex; }
}
