:root {
  --bg: #F6F2EA;
  --surface: #FFFDF8;
  --alt: #E9E6DA;
  --ink: #3A3F3A;
  --ink-strong: #263029;
  --muted: #5F665E;
  --accent: #5F7F68;
  --accent-hover: #4D6A55;
  --accent-ink: #4A6652;
  --on-accent: #fff;
  --line: #E0D8C8;
  --font-head: "Lora", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --head-weight: 500;
  --btn-radius: 14px;
  --photo-radius: 50%;
  --photo-bg: #D5DECF;
  --photo-fg: #AFC0AB;
  --header-bg: rgba(246, 242, 234, .94);
  --star: #C9A14A;
}

/* Foglio di stile del sito */

@font-face { font-family: "Lora"; src: url(fonts/lora-normal-400-600.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(fonts/lora-italic-400-600.woff2) format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/nunitosans-normal-300-700.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/nunitosans-italic-300-700.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight, 400); line-height: 1.15; margin: 0 0 .5em; color: var(--ink-strong, var(--ink)); }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); margin-bottom: .9em; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:last-child { color: var(--muted); }

/* Pulsanti e link */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em; border-radius: var(--btn-radius);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--accent-ink); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn-small { padding: .55em 1.2em; font-size: .95rem; }
.link-arrow { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--accent-ink); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--font-head); font-weight: var(--head-weight, 400); font-size: 1.3rem; color: var(--ink-strong, var(--ink)); }
.logo-text small { font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.nav ul { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: .98rem; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--accent-ink); }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  }
  .menu-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); display: none; }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 16px; width: 100%; }
  .logo-text strong { font-size: 1.15rem; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-note { font-size: .92rem; color: var(--muted); }

/* Segnaposto foto */
.photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--photo-bg); border-radius: var(--photo-radius);
  display: flex; align-items: flex-end; justify-content: center;
}
.photo svg { width: 78%; fill: var(--photo-fg); }
.photo span {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--bg); color: var(--muted); padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
figure { margin: 0; }

/* Aree */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap, 24px); }
.card p { margin: 0; color: var(--muted); }

/* Metodo */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); }
.steps p { color: var(--muted); margin: 0; }

/* Chi sono */
.chi-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chi-text blockquote { font-family: var(--font-head); font-style: italic; font-size: 1.4rem; line-height: 1.4; margin: 28px 0; color: var(--ink-strong, var(--ink)); }
.meta { font-size: .92rem; color: var(--muted); }

/* Recensioni */
.stars { color: var(--star, var(--accent)); letter-spacing: .08em; display: block; font-size: 1.2rem; margin-bottom: 6px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quotes blockquote { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.5; margin-bottom: 14px; }
.quotes p { margin: 0; font-weight: 600; color: var(--muted); font-size: .95rem; }

/* Articoli */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.posts a { display: block; height: 100%; text-decoration: none; }
.posts p { color: var(--muted); margin: 0; }
.post-tag { display: inline-block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 10px; }

/* Contatti */
.contatti-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; }
.contact-list svg { width: 22px; height: 22px; fill: var(--accent-ink); flex: none; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--accent-ink); }
.address { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.35; }
.address a { text-decoration: none; }
.studio dl { margin: 24px 0 0; display: grid; gap: 14px; }
.studio dt { font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
.studio dd { margin: 0; color: var(--muted); }

/* Piè di pagina */
.site-footer { padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* Mobile */
@media (max-width: 880px) {
  .hero-inner, .chi-inner, .contatti-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-photo { max-width: 260px; width: 62%; margin-inline: auto; order: -1; }
  .chi-photo { max-width: 320px; width: 75%; }
  .cards, .steps, .quotes, .posts { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
  .site-footer { padding-bottom: 88px; }
}
@media (min-width: 881px) and (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    }
/* Forme e dettagli */
.logo-text strong { font-size: 1.45rem; font-weight: 500; }
.psi { color: var(--accent); font-family: var(--font-head); font-weight: 600; }

h1 { font-weight: 500; }
h2 em, h1 em { font-weight: 400; }

.hero { position: relative; overflow: hidden; }
.hero-photo { position: relative; }
.hero-photo .photo { aspect-ratio: 1; }
.hero-photo::before {
  content: ""; position: absolute; inset: -8% -12% -10% -6%; z-index: -1;
  background: var(--alt); border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  transform: rotate(-8deg);
}
.hero-inner { position: relative; z-index: 0; }

.card { background: var(--alt); border-radius: 26px; padding: 32px 28px; }
.card-num { display: none; }
.card h3 { display: flex; align-items: center; gap: 12px; }
.card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

.metodo .section-head h2 { font-style: italic; font-weight: 400; }
.steps li { background: var(--surface); border-radius: 26px; padding: 32px 28px; box-shadow: 0 8px 28px rgba(120, 80, 50, .07); }
.steps li::before {
  display: block; font-family: var(--font-head); font-style: italic; font-size: 2.6rem; line-height: 1;
  color: var(--accent); margin-bottom: 14px;
}

.chi-photo .photo { aspect-ratio: 1; }
.chi-text blockquote { color: var(--accent-ink); }

.recensioni { background: var(--alt); }
.quotes li { background: var(--surface); border-radius: 26px; padding: 32px 28px; }
.quotes blockquote { font-style: italic; }

.posts a { border-radius: 26px; padding: 30px 28px; background: var(--surface); box-shadow: 0 8px 28px rgba(120, 80, 50, .07); transition: transform .2s; }
.posts a:hover { transform: translateY(-3px); }

.studio { background: var(--alt); border-radius: 26px; padding: 34px 32px; }


.steps li, .posts a { box-shadow: 0 8px 28px rgba(60, 75, 60, .07); }
.site-footer { background: #263029; color: #D5DECF; }
.site-footer strong { color: #fff; }
.site-footer a { color: #C6D9C6; }

/* Pagine interne */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.wrap-testo { width: min(700px, 100% - 40px); }
.page-head .lead { max-width: 640px; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.page-head .lead { margin: 0; }
.prose-wrap { padding-bottom: clamp(64px, 9vw, 104px); }
.prose { max-width: 700px; margin-inline: auto; width: min(700px, 100% - 40px); }
.prose h2 { margin-top: 1.7em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--accent-ink); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 1.4em 0; }
.prose .nota { color: var(--muted); font-size: .96rem; border-bottom: 1px solid var(--line); padding-bottom: 1em; }
.lettera { background: var(--alt); border-radius: 22px; padding: 26px 28px; margin-bottom: 1.6em; }
.lettera p:last-child { margin: 0; }
.cover { width: min(700px, 100% - 40px); margin: 0 auto 36px; border-radius: 22px; overflow: hidden; }
.cover img { width: 100%; height: auto; }
.cta-box { background: var(--alt); border-radius: 26px; padding: 32px; margin-top: 48px; }
.cta-box h2 { margin-top: 0; font-size: 1.45rem; }
.cta-box p:last-child { margin: 0; }
.prose .btn { color: var(--on-accent); }
.prose .btn-ghost { color: var(--accent-ink); }

.post-img { display: block; border-radius: 16px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 16 / 9; background: var(--alt); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.posts-wrap { padding-bottom: clamp(48px, 7vw, 80px); }
.section-more { margin-top: 28px; }

.cv-list { margin: 0 0 1em; display: grid; gap: 14px; }
.cv-list li { padding-left: 16px; border-left: 2px solid var(--line); margin: 0; }
.prose ul.cv-list { list-style: none; padding-left: 0; }
.cv-list strong { color: var(--ink-strong); }
.cv-list span { display: block; color: var(--muted); font-size: .96rem; }

.contatti-page { padding-bottom: clamp(64px, 9vw, 104px); }
.not-found { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }

/* Piè di pagina sempre in fondo, anche nelle pagine corte */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.testa-ritratto { display: flex; align-items: center; gap: 32px; }
.ritratto { width: 148px; height: 148px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 40%; box-shadow: 0 0 0 10px var(--alt); }
@media (max-width: 560px) {
  .testa-ritratto { flex-direction: column; align-items: flex-start; gap: 24px; }
  .ritratto { width: 120px; height: 120px; }
}

/* Foto dello studio */
.studio-foto { padding-top: 0; }
.galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.galleria img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.galleria-4 { grid-template-columns: repeat(4, 1fr); }
.galleria-wrap { margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 720px) {
  .galleria { grid-template-columns: 1fr; }
  .galleria-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .galleria img { border-radius: 16px; }
}
