:root {
  --ink: #1a1814;
  --muted: #5c574e;
  --line: #e4dfd4;
  --paper: #f6f4ef;
  --white: #fffcf8;
  --gold: #6e5420;
  --gold-bright: #a67c2d;
  --night: #1b1916;
  --night-text: #e7e1d6;
  --night-muted: #b7b0a4;
  --measure: 40rem;
  --wide: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-bright);
  z-index: 30;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.bar {
  width: min(var(--wide), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo img {
  display: block;
  width: 168px;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold-bright);
}

main {
  width: min(var(--wide), calc(100% - 3rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.8fr);
  column-gap: 4rem;
  row-gap: 1.75rem;
  align-items: start;
  padding: 4.25rem 0 3.5rem;
}

.hero .eyebrow,
.hero h1 {
  grid-column: 1 / -1;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 0.95rem;
  text-decoration: none;
}

.button.solid {
  color: var(--white);
  background: var(--night);
  border-color: var(--night);
}

.button:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.offerte {
  display: grid;
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid var(--line);
  list-style: none;
}

.offerte a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.disegno {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
  margin-bottom: 0.85rem;
  color: #5c4630;
}

.disegno img,
.disegno svg {
  display: block;
  width: 100%;
  height: 100%;
}

.offerte .disegno {
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
}

.offerte li:first-child a {
  padding-top: 0;
}

.offerte li:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.offerte span {
  color: inherit;
}

.offerte strong {
  display: block;
  color: var(--gold-bright);
  font-weight: 650;
}

.offerte small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.offerte a:hover strong,
.offerte a:hover .disegno {
  color: var(--gold);
}

.fascia {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.25rem 0 3rem;
}

.fascia article,
.settore,
.blocco {
  padding: 1.35rem 1.35rem 1.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.fascia article {
  position: relative;
  overflow: hidden;
}

.fascia-capo {
  margin-bottom: 0.55rem;
}

.fascia-capo h2 {
  margin: 0;
}

.fascia .disegno {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 0;
  width: 3.55rem;
  height: 3.55rem;
  margin: 0;
  opacity: 0.32;
  pointer-events: none;
}

.fascia h2,
.fascia p {
  position: relative;
  z-index: 1;
}

.fascia h2,
.blocco h2,
.settore h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.fascia p,
.blocco p,
.settore p,
.page-intro p {
  margin: 0;
  color: var(--muted);
}

.fascia p + p,
.settore p + p {
  margin-top: 0.8rem;
}

.fascia a,
.chiusura a {
  color: var(--gold);
  text-decoration: none;
}

.fascia a:hover,
.chiusura a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

main.con-studio {
  position: relative;
}

main.con-studio::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: var(--studio);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

main.con-studio > * {
  position: relative;
  z-index: 1;
}

main.con-studio .page-intro,
main.con-studio .chiusura,
main.con-studio .contatti-layout > div:first-child {
  position: relative;
  isolation: isolate;
}

main.con-studio .page-intro::after,
main.con-studio .chiusura::after,
main.con-studio .contatti-layout > div:first-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 18% 42%, rgba(246, 244, 239, 0.96) 0%, rgba(246, 244, 239, 0.82) 46%, rgba(246, 244, 239, 0.28) 70%, rgba(246, 244, 239, 0) 82%);
}

main.con-studio .page-intro::after {
  top: 10%;
  bottom: -4%;
  left: -8%;
  width: min(50rem, 108%);
}

main.con-studio .chiusura::after {
  inset: -35% -8%;
}

main.con-studio .contatti-layout > div:first-child::after {
  inset: -30% -12% -30% -8%;
}

main.con-studio .page-intro :is(h1, .eyebrow, .lede),
main.con-studio .chiusura,
main.con-studio .mail-grande,
main.con-studio .contatti-layout .lede {
  text-shadow:
    0 0 8px #f6f4ef,
    0 0 8px #f6f4ef,
    0 0 16px #f6f4ef,
    0 0 16px #f6f4ef;
}

main.con-studio .page-intro .lede,
main.con-studio .chiusura,
main.con-studio .contatti-layout .lede {
  color: #2a261f;
}

.page-intro {
  max-width: none;
  padding: 4.2rem 0 2.5rem;
}

.page-intro .kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.page-intro .disegno {
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  flex: none;
}

.page-intro .eyebrow {
  margin: 0;
  color: var(--gold);
}

.page-intro h1 {
  max-width: none;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.page-intro .lede {
  max-width: 44rem;
  margin-top: 1.15rem;
  font-size: 1.15rem;
}

.sezioni {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.blocco h2 {
  font-size: 1.35rem;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 500;
}

.blocco p + p {
  margin-top: 0.85rem;
}

.settori-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.settore h2 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.chiusura {
  max-width: 44rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.contatti-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.8fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 1rem;
}

.mail-grande {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail-grande:hover {
  color: var(--gold);
}

.scheda {
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.scheda p,
.scheda address {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-style: normal;
}

.scheda .nome {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-weight: 650;
}

.site-footer {
  background: var(--night);
  color: var(--night-muted);
}

.site-footer .bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 2rem;
  padding: 2.75rem 0 3rem;
}

.site-footer strong,
.foot-name {
  color: var(--night-text);
}

.foot-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.site-footer p,
.site-footer address,
.site-footer ul {
  margin: 0;
  font-style: normal;
}

.site-footer address + p {
  margin-top: 0.75rem;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  color: var(--night-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot-label {
  margin: 0 0 0.55rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero,
  .fascia,
  .settori-grid,
  .contatti-layout,
  .site-footer .bar {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.2rem;
    padding-top: 3rem;
  }

  .offerte {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.4rem;
  }

  .site-header .bar {
    align-items: stretch;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
  }
}
