@font-face {
  font-family: "AthelasCustom";
  src: url("Documenti/Athelas.ttc") format("truetype");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-accent: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(40, 9, 13, 0.12);
  --text: #28090d;
  --muted: rgba(40, 9, 13, 0.72);
  --contact-text: #28090d;
  --shadow: 0 18px 50px rgba(40, 9, 13, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(40, 9, 13, 0.03), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(40, 9, 13, 0.02), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
  font-family: "AthelasCustom", "Athelas", Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(40, 9, 13, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 9, 13, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 68%);
  opacity: 0.28;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.brand-logo {
  display: block;
  width: min(240px, 56vw);
  height: auto;
  margin: 0 auto 18px;
}

.brand-logo + h1 {
  margin-top: 0;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.logos-section {
  padding: 22px;
  border: 1px solid rgba(40, 9, 13, 0.12);
  border-radius: 30px;
  background: #f9f4ac;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 16px;
}

.logo-card {
  display: grid;
  place-items: center;
  min-height: 155px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(40, 9, 13, 0.1);
  box-shadow: 0 10px 25px rgba(40, 9, 13, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(40, 9, 13, 0.12);
  border-color: rgba(40, 9, 13, 0.16);
}

.logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contacts-section {
  margin-top: 28px;
  padding: 22px 24px 24px;
  border: 1px solid rgba(40, 9, 13, 0.12);
  border-radius: 30px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--contact-text);
}

.contacts-section h2 {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.contacts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.contact-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(40, 9, 13, 0.1);
  color: var(--contact-text);
}

.contact-name {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  font-size: 24px;
}

.contact-item a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1280px);
    padding: 44px 0 56px;
  }

  .logos-section {
    padding: 14px;
    border-radius: 22px;
  }

  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }

  .logo-card {
    min-height: 130px;
    padding: 14px;
    border-radius: 18px;
  }

  .contacts-section {
    margin-top: 20px;
    padding: 18px 16px 20px;
    border-radius: 22px;
  }

  .contacts-list {
    grid-template-columns: 1fr;
  }
}
