@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("raleway.woff2") format("woff2");
}

:root {
  --teal: #00a39a;
  --teal-text: #006e68;
  --green: #2b9d38;
  --ink: #242c3c;
  --brown: #5d463e;
  --leaf: #90c187;
  --beige: #f3eee8;
  --beige-veil: rgba(243, 238, 232, 0.6);
  --white: #ffffff;
  --line: rgba(36, 44, 60, 0.14);
  --gradient: linear-gradient(90deg, #00a39a, #2b9d38);
  --radius: 12px;
  --width: 1080px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Raleway", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(var(--beige-veil), var(--beige-veil)),
    var(--beige) url("motivo-puntini.png") repeat top left;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Intestazione */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand img {
  display: block;
  height: 46px;
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 2px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

/* Parentesi quadre dei titoli */

.bracket {
  color: var(--teal);
  font-weight: 300;
}

/* Sezioni */

section {
  padding: 64px 0;
}

.hero {
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
}

h3 {
  font-size: 1.3rem;
}

.lead {
  max-width: 62ch;
  font-size: 1.2rem;
  line-height: 1.6;
}

.section-intro {
  max-width: 64ch;
  margin: 0 0 32px;
}

.section-white {
  background: var(--white);
}

.section-line::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-bottom: 20px;
  background: var(--gradient);
  border-radius: 3px;
}

/* Pulsanti */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  background: var(--teal-text);
  border: 2px solid var(--teal-text);
  border-radius: 999px;
}

.button:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button-outline:hover {
  color: var(--white);
}

/* Schede */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
}

.section-white .card {
  background: var(--beige);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .meta {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-text);
}

.card .more {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 800;
}

/* Elenco domande e risposte */

.qa {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.qa li {
  display: grid;
  gap: 6px 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.qa strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.note {
  margin: 28px 0 0;
  padding: 16px 20px;
  background: var(--white);
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section-white .note {
  background: var(--beige);
}

/* Certificazioni */

.cert-name {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--teal-text);
}

/* Contatti */

.contact {
  color: var(--white);
  background: var(--ink);
}

.contact h2 {
  color: var(--white);
}

.contact a {
  color: var(--white);
}

.contact a:hover {
  color: var(--leaf);
}

.contact .bracket {
  color: var(--leaf);
}

.contact address {
  font-style: normal;
}

.contact .button {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.contact .button:hover {
  color: var(--ink);
  background: var(--leaf);
  border-color: var(--leaf);
}

.contact-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 4px;
}

/* Piè di pagina */

.site-footer {
  padding: 36px 0;
  color: var(--white);
  background: var(--ink);
  border-top: 5px solid var(--teal);
  border-image: var(--gradient) 1;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer img {
  display: block;
  height: 40px;
  width: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--leaf);
}

@media (max-width: 720px) {
  section {
    padding: 48px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .qa li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
