:root {
  --bg: #f7f8fa;
  --white: #ffffff;
  --text: #111827;
  --muted: #5b6472;
  --line: #e5e7eb;
  --dark: #0f172a;
  --gold: #b08d57;
  --gold-dark: #8e6f43;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --max: 1180px;
  --content-width: 920px;
  --text-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-only {
  margin: 0 auto;
}

.logo {
  height: 106px;
  width: auto;
}

.menu {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.menu a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
}

.hero {
  padding: 110px 0 90px;
  background:
    radial-gradient(circle at top left, rgba(176, 141, 87, 0.12), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #172033 100%);
  color: var(--white);
}

.hero-inner {
  max-width: var(--content-width);
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 24px;
  max-width: var(--text-width);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0;
  max-width: var(--text-width);
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-full {
  width: 100%;
}

.profilo,
.servizi,
.contatti {
  padding: 88px 0;
}

.profilo,
.contatti {
  background: var(--white);
}

.servizi {
  background: var(--bg);
}

.content-offset {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading-narrow {
  max-width: var(--text-width);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2,
.section-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  max-width: var(--text-width);
}

.profile-pic {
  width: 94px;
  height: 94px;
  min-width: 94px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(176, 141, 87, 0.22);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.profile-identity h3 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.profile-role {
  margin: 0;
  font-size: 1rem;
  color: #6b7280;
  max-width: 620px;
}

.profile-text {
  max-width: var(--text-width);
  text-align: left;
}

.profile-text p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1f2937;
}

.profile-text .intro {
  font-size: 1.1rem;
  font-weight: 500;
  color: #0f172a;
}

.profile-text .highlight {
  font-weight: 600;
  font-size: 1.08rem;
  color: #0f172a;
  border-left: 3px solid #b08d57;
  padding-left: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.1);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.2;
}

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

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  max-width: var(--content-width);
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.contact-item small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-item a {
  color: var(--gold-dark);
  font-weight: 600;
}

.form-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(176, 141, 87, 0.9);
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.privacy-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--muted);
}

.privacy-consent a {
  color: var(--gold-dark);
  font-weight: 600;
}

.hidden-field {
  display: none;
}

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 28px 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 220px;
}

.footer-brand strong {
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.7);
}

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

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .nav {
    min-height: 110px;
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 58%;
    transform: translateY(-50%);
    justify-self: end;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .menu.open {
    display: flex;
  }

  .hero {
    padding: 88px 0 74px;
  }

  .grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .content-offset,
  .hero-inner,
  .profile-header,
  .profile-text,
  .section-heading-narrow {
    max-width: 100%;
  }
}

@media (min-width: 901px) {
  .menu {
    display: flex !important;
  }

  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .logo {
    height: 96px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-lead,
  .profile-text p,
  .section-heading p,
  .card p {
    font-size: 0.98rem;
  }

  .profile-header {
    align-items: flex-start;
  }

  .profile-pic {
    width: 82px;
    height: 82px;
    min-width: 82px;
  }

  .profile-identity h3 {
    font-size: 1.45rem;
  }

  .card,
  .form-box {
    padding: 22px;
  }
}