/* KETER S.R.L. — foglio di stile unico, nessuna risorsa esterna */

:root {
  --accent: #0b5d73;
  --accent-dark: #084656;
  --accent-soft: #e6f0f3;
  --text: #1d2327;
  --muted: #545d63;
  --border: #d9dee1;
  --bg: #ffffff;
  --bg-alt: #f5f7f8;
  --radius: 8px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Link per saltare al contenuto */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 10;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Intestazione */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.975rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

/* Hero */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 4rem;
}

.hero p {
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Sezioni */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Card dei servizi */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Blocchi a due colonne */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Contatti */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.contact-list div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.contact-list dt {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

/* Pagine legali */
.legal {
  padding: 3rem 0 4rem;
}

.legal .container {
  max-width: 48rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.legal h3 {
  margin-top: 1.5rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal ol,
.legal ul {
  padding-left: 1.4rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0.75rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header nav,
  .skip-link,
  .button {
    display: none;
  }

  .hero,
  .section-alt,
  .site-footer {
    background: none;
  }
}
