:root {
  --ink: #201816;
  --muted: #6f615c;
  --paper: #fbf7f0;
  --soft: #efe4d8;
  --cream: #fffdf8;
  --rose: #c56a72;
  --wine: #762e44;
  --olive: #6f7655;
  --line: rgba(32, 24, 22, 0.14);
  --shadow: 0 24px 80px rgba(65, 35, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-missing {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: #f7d8de;
  border: 1px solid rgba(197, 106, 114, 0.48);
}

.image-missing::after {
  content: "Immagine non disponibile in locale";
  padding: 18px;
  color: var(--wine);
  font-weight: 700;
  text-align: center;
}

.image-missing img {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(251, 247, 240, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 190px;
}

.brand-logo {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  position: static;
  justify-content: center;
  gap: 28px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-item {
  position: static;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.site-nav a:hover,
.nav-item:hover .nav-trigger,
.nav-item:focus-within .nav-trigger,
.nav-item.is-open .nav-trigger {
  color: var(--ink);
  background: #f7d8de;
  border-color: rgba(197, 106, 114, 0.48);
}

.mega-menu {
  position: absolute;
  z-index: 30;
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  top: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(420px, 1fr);
  gap: 18px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 26px 70px rgba(32, 24, 22, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.is-open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-feature {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--cream);
  overflow: hidden;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  isolation: isolate;
  position: relative;
}

.mega-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(32, 24, 22, 0.06), rgba(32, 24, 22, 0.72));
}

.about-feature {
  background-image: url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?auto=format&fit=crop&w=900&q=80");
}

.services-feature {
  background-image: url("https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?auto=format&fit=crop&w=900&q=80");
}

.process-feature {
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
}

.contact-feature {
  background-image: url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=900&q=80");
}

.mega-feature span {
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mega-feature strong {
  max-width: 420px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.mega-feature p {
  max-width: 390px;
  margin: 14px 0 0;
  color: rgba(255, 253, 248, 0.78);
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.mega-links a {
  min-height: 112px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mega-links a:hover {
  color: var(--ink);
  border-color: rgba(197, 106, 114, 0.48);
  background: #f7d8de;
}

.mega-links strong,
.mega-links span {
  display: block;
}

.mega-links strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: var(--ink);
}

.mega-links span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta,
.button.primary {
  color: var(--cream);
  background: var(--wine);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.header-cta:hover,
.button.primary:hover {
  background: #5e2537;
}

.button.secondary:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  isolation: isolate;
  min-height: calc(100vh - 80px);
  padding: clamp(54px, 8vw, 108px) clamp(20px, 5vw, 72px) 42px;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  background-image:
    linear-gradient(90deg, rgba(32, 24, 22, 0.72) 0%, rgba(32, 24, 22, 0.48) 42%, rgba(32, 24, 22, 0.16) 100%),
    url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  max-width: 760px;
}

.hero .eyebrow {
  color: rgba(255, 253, 248, 0.86);
}

.hero .button.secondary {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero .button.secondary:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 8.8vw, 7.8rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5.2vw, 5rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.intro-band {
  padding: clamp(38px, 6vw, 72px) clamp(20px, 8vw, 120px);
  background: var(--wine);
  color: var(--cream);
}

.intro-band p {
  max-width: 1120px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1.15;
}

.section {
  padding: clamp(70px, 9vw, 128px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 96px);
}

.about-section {
  display: grid;
  gap: clamp(34px, 5vw, 64px);
}

.about-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.about-title {
  align-self: start;
}

.rich-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.about-content .rich-text {
  margin-top: -18px;
}

.about-photo {
  width: min(100%, 520px);
  height: clamp(360px, 46vw, 560px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rich-text p {
  margin-bottom: 22px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 300px;
  padding: 30px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card span {
  display: inline-block;
  margin-bottom: 76px;
  color: var(--olive);
  font-weight: 800;
}

.service-card p,
.steps span,
.book p,
.contact p,
.faq p,
.testimonial p {
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.process-image {
  height: clamp(420px, 58vw, 680px);
  overflow: hidden;
  border-radius: 8px;
}

.steps {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  color: var(--wine);
  font-weight: 900;
}

.steps strong,
.steps span {
  grid-column: 2;
}

.steps strong {
  margin-top: -30px;
}

.proof {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  background: var(--soft);
}

.quote-panel,
.testimonial,
.book,
.contact {
  border-radius: 8px;
}

.quote-panel {
  padding: clamp(32px, 5vw, 64px);
  color: var(--cream);
  background: var(--wine);
}

.quote-panel p {
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 1.04;
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--cream);
  border: 1px solid var(--line);
}

.book {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  background: var(--cream);
}

.book-copy {
  max-width: 780px;
}

.book-cover {
  max-width: 360px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-cover img {
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.book .button {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 24px 26px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 26px 24px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: clamp(20px, 5vw, 72px);
  padding: clamp(40px, 6vw, 72px);
  color: var(--cream);
  background: var(--wine);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 253, 248, 0.78);
}

.contact .button.primary {
  background: var(--cream);
  color: var(--wine);
}

.contact .button.secondary {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px) 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 7px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-items: start;
    gap: 16px;
    padding-top: 18px;
  }

  .nav-item,
  .nav-trigger,
  .mega-menu {
    width: 100%;
  }

  .mega-menu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-item:hover .mega-menu,
  .nav-item:focus-within .mega-menu,
  .nav-item.is-open .mega-menu {
    display: grid;
  }

  .mega-feature {
    min-height: 210px;
  }

  .mega-links {
    grid-template-columns: 1fr;
  }

  .split,
  .about-content,
  .process,
  .proof,
  .book,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .service-card {
    min-height: auto;
  }

  .service-card span {
    margin-bottom: 38px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .button,
  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-cover {
    width: 100%;
    max-width: 320px;
  }

  .steps li {
    grid-template-columns: 42px 1fr;
  }
}
