/* Capra Antonio - foglio di stile principale */

:root {
  --accent: #12305c;
  --accent-dark: #0d2445;
  --text: #22262b;
  --text-muted: #55606d;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #dde3ea;
  --maxw: 880px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

h1,
h2 {
  color: var(--accent);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* Header */

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.hero-text {
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  margin: 24px 0 0;
}

/* Bottoni */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 4px;
}

.btn:hover,
.btn:focus {
  background: var(--accent-dark);
}

/* Sezioni */

.section {
  padding: 48px 0;
}

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

.section-intro {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Dati aziendali */

.data-list {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.data-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-list dt {
  flex: 0 0 200px;
  font-weight: 600;
  color: var(--text-muted);
}

.data-list dd {
  flex: 1 1 260px;
  margin: 0;
  word-break: break-word;
}

/* Contatti */

.contact-block {
  font-style: normal;
  line-height: 1.8;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.contact-name {
  display: block;
  font-weight: 700;
}

.contact-actions {
  margin: 26px 0 0;
}

/* Footer */

.site-footer {
  background: var(--accent);
  color: #ffffff;
  padding: 32px 0;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0 0 6px;
}

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

.site-footer a {
  color: #ffffff;
}

.footer-legal {
  font-weight: 700;
  font-size: 1rem;
}

/* Responsive */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 18px;
  }

  .hero {
    padding: 40px 0;
  }

  .section {
    padding: 36px 0;
  }

  .data-list dt {
    flex: 1 1 100%;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .btn {
    display: block;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
