:root {
  --ink: #23302d;
  --muted: #66736f;
  --paper: #fffaf4;
  --soft: #f4eee5;
  --white: #ffffff;
  --accent: #d75d2a;
  --accent-dark: #a84522;
  --sage: #55766d;
  --mint: #e3efe7;
  --line: rgba(35, 48, 45, 0.14);
  --shadow: 0 18px 42px rgba(35, 48, 45, 0.12);
  --radius: 8px;
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 8px 18px rgba(35, 48, 45, 0.14);
}

.brand span {
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  color: var(--ink);
}

.main-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(215, 93, 42, 0.24);
}

.button.secondary {
  background: var(--sage);
  box-shadow: 0 12px 22px rgba(85, 118, 109, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(25, 36, 33, 0.74), rgba(25, 36, 33, 0.26)),
    url("../img/chi-siamo.jpg") center 24% / cover;
}

.hero-content {
  width: min(760px, 100%);
  padding: 130px 0 104px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.45rem;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

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

.section {
  padding: 88px 0;
}

.section.soft {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.media-stack {
  position: relative;
}

.media-stack .main-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-stack .badge-photo {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 170px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.copy p {
  margin: 18px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.service {
  min-height: 92px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(35, 48, 45, 0.06);
}

.feature-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(35, 48, 45, 0.88), rgba(35, 48, 45, 0.58)),
    url("../img/571a1a_da2c2c6007104dcb971fe0d91d4fff23mv2-scaled.webp") center / cover;
}

.feature-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-band p {
  color: rgba(255, 255, 255, 0.86);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.review {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(35, 48, 45, 0.08);
}

.stars {
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.review cite {
  display: block;
  margin-top: 18px;
  color: var(--sage);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  padding: 112px 0 78px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(35, 48, 45, 0.78), rgba(35, 48, 45, 0.28)),
    url("../img/banner_contatti.jpg") center / cover;
}

.page-hero.gallery {
  background:
    linear-gradient(90deg, rgba(35, 48, 45, 0.75), rgba(35, 48, 45, 0.2)),
    url("../img/gallery1.jpg") center / cover;
}

.gallery-grid {
  columns: 4 230px;
  column-gap: 16px;
}

.gallery-grid a {
  display: block;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(35, 48, 45, 0.1);
}

.gallery-grid img {
  width: 100%;
  transition: transform 180ms ease;
}

.gallery-grid a:hover img {
  transform: scale(1.035);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-item strong {
  display: block;
  color: var(--sage);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-item a,
.contact-item span {
  color: var(--ink);
  font-weight: 800;
}

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

.form-notice {
  margin: 0 0 18px;
  padding: 13px 16px;
  color: #214c36;
  background: var(--mint);
  border: 1px solid rgba(33, 76, 54, 0.18);
  border-radius: var(--radius);
  font-weight: 800;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
}

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

.honeypot {
  position: absolute;
  left: -9999px;
}

.map {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 44px 0 28px;
  color: var(--white);
  background: #23302d;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-top {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.social-links a {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .split,
  .feature-band .container,
  .contact-layout,
  .reviews {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 560px;
    background-position: center 34%;
  }

  .media-stack .badge-photo {
    right: 14px;
    bottom: -22px;
    width: 132px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand span {
    max-width: 145px;
    line-height: 1.15;
  }

  .section {
    padding: 62px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
