/* ==========================================================================
   aureliobard.com · foglio di stile
   Colori e caratteri si cambiano tutti da qui (:root).
   ========================================================================== */

:root {
  --navy: #1c2f52;
  --navy-deep: #13213b;
  --blue: #3d5a8a;
  --blue-soft: #d3deed;
  --blue-tint: #eaf0f7;
  --page: #f4f7fb;
  --white: #ffffff;
  --text: #1c2638;
  --muted: #535e72;
  --line: #dbe3ee;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1120px;
  --header-h: 76px;

  color-scheme: light;
}

/* --- Base --------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

[id] {
  scroll-margin-top: 24px;
}

/* --- Header ------------------------------------------------------------- */

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 18px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--navy);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--blue);
}

@media (min-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .header-inner {
    min-height: var(--header-h);
    padding-block: 0;
  }

  [id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-tint) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 48px 56px;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-specialty {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--blue);
}

.hero-lead {
  max-width: 38ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-photo {
  margin: 0;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  justify-self: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue-soft);
  box-shadow: 0 24px 48px -28px rgba(19, 33, 59, 0.45);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    padding-block: 72px;
  }

  .hero-photo {
    justify-self: end;
  }
}

/* --- Pulsante ----------------------------------------------------------- */

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* --- Pannelli: Cosa faccio / Chi sono ----------------------------------- */

.panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-block: 56px 24px;
}

@media (min-width: 900px) {
  .panels {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 80px 32px;
  }
}

.panel {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

@media (min-width: 600px) {
  .panel {
    padding: 44px 40px;
  }
}

.panel--tinted {
  border-color: transparent;
  background: var(--blue-soft);
}

.panel-title {
  margin-bottom: 28px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 480px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

.service {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
}

.icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.service p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue-tint);
}

.avatar .icon {
  width: 36px;
  height: 36px;
  margin: 0;
}

.panel-subtitle {
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--blue);
}

.prose p + p {
  margin-top: 14px;
}

.facts {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 480px) {
  .facts div {
    grid-template-columns: 9.5rem 1fr;
  }
}

.facts dt {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* --- Contatti ----------------------------------------------------------- */

.contact {
  padding-block: 24px 72px;
}

@media (min-width: 900px) {
  .contact {
    padding-block: 32px 96px;
  }
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #dfe7f2;
}

@media (min-width: 760px) {
  .contact-card {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px;
  }
}

.contact-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  color: var(--white);
}

.contact-card .lead {
  margin-top: 14px;
  max-width: 36ch;
}

.contact-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: center;
}

.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-list .icon {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  stroke: var(--white);
  stroke-width: 1.6;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fb3d1;
}

.contact-list a,
.contact-value {
  color: var(--white);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--blue-soft);
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

.footer-name {
  color: var(--navy);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: flex-start;
}

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

/* --- Pagina privacy ----------------------------------------------------- */

.legal {
  max-width: 760px;
  padding-block: 56px 80px;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.legal .updated {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.legal p,
.legal ul {
  margin: 0 0 14px;
}

.legal ul {
  padding-left: 1.2em;
}
