:root,
[data-theme="light"],
[data-theme="dark"] {
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-2: #eceee5;
  --surface-3: #e1e6d9;
  --border: #d6d8cb;
  --divider: #deded3;
  --text: #303b32;
  --muted: #62685b;
  --faint: #6f7367;
  --primary: #526849;
  --primary-hover: #3c5135;
  --primary-soft: #e5e9dd;
  --primary-deep: #3c5135;
  --rose: #e9e3d9;
  --inverse: #fffdf8;
  --taupe: #a69b8b;
  --shadow-sm: none;
  --shadow-md: 0 10px 28px rgb(48 59 50 / 5%);
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-xl: 4px;
  --radius-full: 4px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', sans-serif;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.2rem;
  --text-xl: clamp(2rem, 3.4vw, 3.1rem);
  --text-2xl: clamp(2.6rem, 5.4vw, 4.8rem);
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.8; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: var(--surface-3); color: var(--text); }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: 1.65rem; }
.container { width: min(calc(100% - 80px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; padding: .8rem 1rem; background: var(--surface); }
.site-header { position: sticky; top: 0; z-index: 60; background: rgb(247 245 239 / 97%); border-bottom: 1px solid var(--divider); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 100px; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; flex-shrink: 0; }
.logo { width: 43px; height: 48px; display: grid; place-items: center; background: transparent; border: 0; border-right: 1px solid var(--taupe); border-radius: 0; box-shadow: none; color: var(--primary); font-family: var(--font-display); font-size: 1.75rem; padding-right: 10px; }
.brand-copy strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.brand-copy span { display: block; color: var(--muted); font-size: .65rem; margin-top: .3rem; letter-spacing: .015em; }
.desktop-nav { display: flex; align-items: center; gap: 1.35rem; }
.desktop-nav a { font-size: .75rem; color: var(--muted); padding-block: .6rem; }
.desktop-nav a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: .65rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 48px; padding: .8rem 1.25rem; border: 1px solid var(--primary); border-radius: 3px; font-size: .8rem; line-height: 1.5; font-weight: 600; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; box-shadow: none; }
.btn-primary { color: var(--inverse); background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary, .btn-ghost, .btn-instagram { background: transparent; color: var(--primary-deep); border-color: var(--border); }
.btn-secondary:hover, .btn-ghost:hover, .btn-instagram:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.menu-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 3px; min-width: 44px; min-height: 44px; cursor: pointer; }
.mobile-nav { padding: .5rem 24px 1.2rem; border-top: 1px solid var(--divider); }
.mobile-nav a { display: block; padding: .65rem .25rem; border-bottom: 1px solid var(--divider); font-size: .875rem; }
.hero { padding: 64px 0 0; background: var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: center; }
.hero-copy { padding: .5rem 0 2.5rem; }
.eyebrow, .meta-label { display: block; font-family: var(--font-body); font-size: .65rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.eyebrow { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.5rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--primary); flex-shrink: 0; }
.hero h1 { font-size: clamp(3.4rem, 5.6vw, 5.1rem); letter-spacing: -.045em; line-height: 1.03; max-width: none; }
.hero h1 em { display: block; color: var(--primary); font-weight: 500; }
.lead { color: var(--muted); font-size: 1rem; }
.hero .lead { max-width: 44ch; margin-top: 1.5rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.65rem; }
.text-link { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; font-size: .8rem; border-bottom: 1px solid var(--taupe); }
.text-link:hover { color: var(--primary); }
.hero-microcopy, .microcopy { color: var(--muted); font-size: .75rem; line-height: 1.8; }
.hero-microcopy { max-width: 47ch; margin: 1.1rem 0 0; }
.hero-card { position: relative; margin: 0; padding: 0 20px 0 0; }
.hero-card::before { content: ''; position: absolute; inset: 38px 0 40px 36px; background: #dfe5d7; z-index: 0; }
.photo-wrap { position: relative; margin: 0; overflow: hidden; }
.photo-wrap img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }
.portrait-caption { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--bg); padding: 1.1rem 0; }
.portrait-caption strong { display: block; font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; }
.portrait-caption span { display: block; font-size: .65rem; color: var(--muted); }
.portrait-caption .caption-mark { font-family: var(--font-display); font-size: 2.5rem; color: var(--taupe); font-style: italic; }
.hero-foot { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2.5rem; padding-block: 1.65rem; margin-top: 2rem; border-top: 1px solid var(--divider); }
.hero-foot > div { border-right: 1px solid var(--divider); padding-right: 1.5rem; }
.hero-foot > div:last-child { border-right: 0; }
.hero-foot strong { font-size: .75rem; font-weight: 600; display: block; margin-bottom: .3rem; }
.hero-foot span { font-size: .7rem; color: var(--muted); display: block; line-height: 1.8; }
section { padding-block: 90px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 2.5rem; }
.section-head h2 { max-width: 21ch; letter-spacing: -.025em; }
.section-head p { font-size: .875rem; color: var(--muted); max-width: 55ch; margin: 0; }
.section-kicker { display: block; color: var(--primary); font: 600 .65rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: transparent; border: 1px solid var(--border); border-radius: 3px; box-shadow: none; }
.need-card, .value-card, .step-card, .bio-card, .blog-card, .news-card, .privacy-box { padding: 1.65rem; }
.card p { font-size: .875rem; color: var(--muted); margin: .8rem 0 0; }
.need-card { position: relative; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.need-card small { color: var(--taupe); font-family: var(--font-display); font-size: 1.5rem; display: block; margin-bottom: .7rem; }
.need-card.active, .need-card:hover { background: var(--primary-soft); border-color: var(--primary); }
.need-card.active::after { content: '↗'; position: absolute; right: 1.5rem; top: 1.6rem; color: var(--primary); }
.dynamic-box { padding: 1.8rem 2rem; margin-top: 1.5rem; background: var(--surface-2); border-left: 2px solid var(--primary); }
.dynamic-box strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.dynamic-box p { color: var(--muted); font-size: .875rem; margin: .5rem 0 0; }
#chi-sono { background: var(--surface-2); }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.stack { display: grid; gap: 1.5rem; }
.stack .section-head { display: block; margin-bottom: 1rem; }
.stack .section-head p { margin-top: 1rem; }
.bio-card { padding: 0 0 1.5rem; border: 0; border-bottom: 1px solid var(--border); }
.bio-card h3 { margin-top: .6rem; }
.soft-quote { border: 0; padding: 2.5rem 0 2.5rem 2.5rem; border-left: 1px solid #b7beac; }
.soft-quote::before { content: '“'; font-family: var(--font-display); font-size: 6rem; color: var(--taupe); line-height: .8; display: block; }
.soft-quote strong { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.soft-quote p:first-of-type { font-family: var(--font-display); font-size: 2.15rem; line-height: 1.3; color: var(--text); margin-top: 1.5rem; }
.step-card { border: 0; border-top: 1px solid var(--border); padding: 1.7rem 1.5rem 0 0; }
.step-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--taupe); margin-bottom: .8rem; }
.availability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.availability-grid .card { background: var(--surface-2); border: 0; padding: 2rem; }
#come-lavoro + section { padding-top: 0; }
#approfondimenti { border-block: 1px solid var(--divider); }
.blog-card { height: 100%; border: 0; border-top: 1px solid var(--taupe); border-radius: 0; padding: 1.7rem 0; transition: border-color 180ms ease; }
.blog-card h3 { margin-top: .7rem; }
.blog-card::after { content: 'Leggi l’approfondimento ↗'; display: block; margin-top: 1.5rem; color: var(--primary); font-size: .75rem; }
a:hover .blog-card { border-color: var(--primary); }
#news .news-card { height: 100%; background: var(--surface); }
#news .news-card img { filter: saturate(.65); }
.cta-band { padding: 3.5rem 4rem; background: var(--surface-2); border: 1px solid var(--border); text-align: center; }
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band p { color: var(--muted); margin-top: 1.2rem; font-size: .875rem; }
.cta-band .hero-microcopy { margin-inline: auto; font-size: .75rem; }
.faq-list { max-width: 960px; margin-inline: auto; }
.faq-item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; color: var(--text); background: transparent; border: 0; text-align: left; font-weight: 500; font-size: .9rem; cursor: pointer; }
.faq-question .icon { color: var(--primary); font-size: 1.4rem; flex-shrink: 0; transition: transform 180ms ease; }
.faq-item.open .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 2.5rem 1.5rem 0; }
.faq-answer p { margin: 0; }
#contatti { background: #e5e9df; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-card { padding: 0; background: transparent; border: 0; }
.contact-card h2 { font-size: var(--text-xl); margin-bottom: 1.2rem; }
.contact-links { list-style: none; margin: 2rem 0; padding: 0; }
.contact-links li { padding: .85rem 0; border-bottom: 1px solid #c6cebf; font-size: .8rem; }
.contact-links a { display: inline-block; color: var(--primary-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-links a:hover { text-decoration-thickness: 2px; }
.form-shell { background: var(--surface); padding: 2.5rem; border: 1px solid var(--border); border-radius: 3px; }
.form-shell h3 { margin-bottom: .4rem; }
.form-intro { color: var(--muted); font-size: .8rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-size: .75rem; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 3px; color: var(--text); background: var(--surface); font-size: 1rem; }
input::placeholder, textarea::placeholder { color: var(--muted); font-size: .8rem; opacity: 1; }
textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: .75rem; font-size: .7rem; font-weight: 400; color: var(--muted); }
.consent input { flex-shrink: 0; width: 18px; height: 18px; min-height: 0; margin: .2rem 0 0; accent-color: var(--primary); }
.consent a, .privacy-box a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: .85rem; margin: 0; }
.form-status[data-state="success"] { color: var(--primary-deep); }
.form-status[data-state="error"] { color: #873e32; }
.privacy-box { border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 2rem 0 0; }
.privacy-box ul { font-size: .875rem; color: var(--muted); padding-left: 1.2rem; }
.footer { background: var(--bg); color: var(--muted); padding: 2.5rem 0; font-size: .75rem; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.footer strong { color: var(--text); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.footer p { margin: .5rem 0 0; }
.floating-actions { display: none; }
.page-section { padding-block: 5rem; }
.article-shell { max-width: 820px; }
.article-card { padding: 1.8rem; background: var(--surface); }
.article-card:hover { transform: translateY(-2px); box-shadow: none; border-color: var(--primary); }
.article-category, .badge { border-radius: 3px; }
.article-cover:not([style]) { background: var(--surface-2); }
.article-cover:not([style])::after { display: none; }
.article-cover:not([style]) .article-cover-inner { color: var(--text); }
.article-cover:not([style]) h1 { text-shadow: none; }
.article-main { background: var(--bg); }
.article-main .container { max-width: 820px; }
.article-main h2 { color: var(--text); }
.article-main figure img { border-radius: 3px !important; box-shadow: none !important; }
.btn-back { display: inline-block; color: var(--primary); font-size: .875rem; border-bottom: 1px solid var(--border); min-height: 44px; }
.thank-you { min-height: 70vh; max-width: 700px; padding-block: 6rem; }
.thank-you h1 { margin: 1rem 0 1.5rem; }
.thank-you p { color: var(--muted); }
.reveal-in { animation: reveal-in 700ms ease both; }
.hero-card.reveal-in { animation-delay: 100ms; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) { .hero h1 { font-size: 5.2rem; } }
@media (max-width: 1200px) {
  .desktop-nav { gap: .85rem; }
  .brand-copy strong { font-size: 1.35rem; }
  .brand-copy span { max-width: 205px; font-size: .6rem; }
  .hero-grid { gap: 3rem; }
}
@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: 3.9rem; }
  .two-col, .contact-grid { gap: 2.5rem; }
  .form-shell { padding: 1.75rem; }
  .section-head { gap: 2.5rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 95px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; gap: .75rem; padding-block: .85rem; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .header-inner > nav.nav-actions { width: 100%; justify-content: flex-start; }
  .brand { gap: .65rem; }
  .brand-copy strong { font-size: 1.3rem; }
  .brand-copy span { max-width: 185px; font-size: .55rem; }
  .logo { width: 35px; font-size: 1.4rem; height: 40px; }
  .header-contact { display: none; }
  .hero { padding-top: 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { font-size: .6rem; letter-spacing: .1em; margin-bottom: 1.3rem; }
  .hero h1 { font-size: clamp(3.3rem, 10vw, 4.5rem); }
  .hero .lead { font-size: .95rem; max-width: 47ch; }
  .hero-actions { gap: .75rem; }
  .hero-actions .btn { width: auto; }
  .hero-card { width: 100%; max-width: 450px; margin: .75rem auto 0; padding-right: 14px; }
  .photo-wrap img { aspect-ratio: 1 / 1.08; object-position: center 33%; }
  .hero-foot { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
  .hero-foot > div { border-right: 0; padding: 0; }
  .hero-foot strong { margin-bottom: .15rem; }
  section { padding-block: 56px; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .section-head h2 { max-width: 22ch; }
  .grid-2, .grid-3, .grid-4, .two-col, .contact-grid, .availability-grid { grid-template-columns: 1fr; }
  .grid-3 { gap: 1rem; }
  .two-col, .contact-grid { gap: 2.5rem; }
  .soft-quote { padding: 1.5rem 0 1.5rem 1.5rem; }
  .soft-quote p:first-of-type { font-size: 1.9rem; }
  .step-card { padding-bottom: 1rem; }
  .cta-band { padding: 2rem 1.25rem; }
  .cta-band .hero-actions { flex-direction: column; }
  .cta-band .btn { width: 100%; }
  .form-shell { padding: 1.5rem; }
  .form-grid .btn { width: 100%; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .floating-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .65rem 20px calc(.65rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
  .floating-actions a { min-height: 44px; padding: .6rem; display: flex; justify-content: center; align-items: center; gap: .65rem; border: 1px solid var(--primary); border-radius: 3px; font-size: .8rem; font-weight: 600; }
  .floating-call { background: var(--primary); color: var(--inverse); }
  .floating-wa { background: transparent; color: var(--primary-deep); }
  .site-header .nav-actions { gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
  .site-header .nav-actions .btn { padding: .65rem .8rem; min-height: 44px; font-size: .7rem; }
  .article-cover { min-height: 240px; }
  .article-cover-inner { padding: 3rem 20px; }
  .article-shell { width: calc(100% - 40px); }
}
@media (max-width: 380px) {
  .brand-copy strong { font-size: 1.15rem; }
  .brand-copy span { max-width: 160px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
