/* ===================== TOKENS ===================== */
:root {
  --cream:      #f6f2ea;
  --cream-2:    #efe9de;
  --sand:       #e4dccd;
  --ink:        #2a2724;
  --ink-soft:   #5b554d;
  --line:       #d9d0c0;
  --teal:       #2f5d59;
  --teal-deep:  #244844;
  --white:      #fffdf9;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Montserrat', -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --r: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 210px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }

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

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,242,234,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, padding .4s, background .4s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem var(--pad) .9rem;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  transition: padding .4s;
}
.site-header.scrolled .header-inner { padding: .6rem var(--pad); }
.logo img {
  height: 144px; width: auto; transition: height .4s ease;
}
.site-header.scrolled .logo img { height: 78px; }

.site-nav { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); }
.site-nav a {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); font-weight: 400;
  padding-bottom: 3px; position: relative; transition: color .3s;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--teal); transition: width .35s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }


/* ===================== HERO ===================== */
.hero {
  max-width: 880px; margin: 0 auto; text-align: center;
  padding: clamp(4rem, 12vw, 9rem) var(--pad) clamp(3.5rem, 9vw, 7rem);
  display: flex; flex-direction: column; align-items: stretch;
}
.hero > * { max-width: 100%; }
.eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); font-weight: 500; margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2rem, 6.4vw, 4.6rem); letter-spacing: -.005em; color: var(--ink);
}
.hero-claim {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  color: var(--teal); margin-top: 1.4rem; line-height: 1.2;
}
.hero-claim::after {
  content: ''; display: block; width: 64px; height: 1px;
  background: var(--teal); margin: 1.6rem auto 0; opacity: .6;
}
.hero-sub {
  margin: 1.6rem auto 2.6rem; max-width: 52ch; color: var(--ink-soft);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .74rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.7rem; border-radius: var(--r); cursor: pointer;
  transition: transform .25s, background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px -12px var(--teal); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ===================== SECTIONS ===================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.section-alt { max-width: none; background: var(--cream-2); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.label {
  display: inline-block; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal); font-weight: 500; margin-bottom: 1.1rem;
}
.label-accent { color: var(--teal); }
.label-light { color: #b7cbc8; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink); }
.section-intro { margin: 1.2rem auto 0; max-width: 52ch; color: var(--ink-soft); }

/* ===================== CHI SONO ===================== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-text p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.about-text strong { color: var(--ink); font-weight: 500; }
.credentials { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.credentials > div { display: flex; flex-direction: column; }
.num { font-family: var(--serif); font-size: 2.6rem; color: var(--teal); line-height: 1; }
.num em { font-size: .9rem; font-style: italic; color: var(--ink-soft); margin-left: .2rem; }
.cap { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem; }

.locations { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.locations h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.loc-card { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.loc-card:first-of-type { border-top: 0; }
.loc-pin { color: var(--teal); font-size: .6rem; margin-top: .45rem; }
.loc-card strong { display: block; font-weight: 500; }
.loc-card span { font-size: .9rem; color: var(--ink-soft); }
.loc-card em { font-style: italic; }

/* ===================== SERVIZI ===================== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2.2rem; transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(42,39,36,.4); }
.service-card h3 { font-size: 1.55rem; margin-bottom: .8rem; }
.service-card p { color: var(--ink-soft); font-size: .96rem; }

.ortho-block { text-align: center; }
.ortho-title { font-size: clamp(2.6rem, 7vw, 4.5rem); font-style: italic; color: var(--teal); margin-bottom: 2.8rem; }
.ortho-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: left; }
.ortho-card {
  position: relative; background: var(--cream); border-radius: var(--r);
  padding: 2.2rem 1.8rem 2rem; border-top: 2px solid var(--teal);
  transition: transform .3s, box-shadow .3s;
}
.ortho-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(42,39,36,.4); }
.ortho-num { font-family: var(--serif); font-size: 1.1rem; color: var(--teal); letter-spacing: .1em; }
.ortho-card h4 { font-size: 1.4rem; margin: .6rem 0 .9rem; }
.ortho-card p { color: var(--ink-soft); font-size: .94rem; }
.ortho-card strong { color: var(--teal); font-weight: 500; }

/* ===================== TIMELINE ===================== */
.timeline { list-style: none; max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 2.6rem 2.8rem; }
.timeline-item:last-child { padding-bottom: 0; }
.tl-marker { position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); border: 2px solid var(--teal); }
.tl-body h3 { font-size: 1.45rem; }
.tl-tutor { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin: .3rem 0 .8rem; }
.tl-body > p:last-child { color: var(--ink-soft); font-size: .96rem; }

/* ===================== CV DOWNLOAD ===================== */
.cv-download { max-width: 760px; margin: clamp(3rem, 6vw, 5rem) auto 0; padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); text-align: center; }
.cv-download h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cv-sub { color: var(--ink-soft); margin: .7rem 0 2rem; font-size: .96rem; }
.cv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cv-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  text-decoration: none; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem 1.5rem; position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cv-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 16px 36px -22px rgba(42,39,36,.45); }
.cv-card svg { position: absolute; top: 1.3rem; right: 1.3rem; width: 22px; height: 22px; color: var(--teal); transition: transform .3s; }
.cv-card:hover svg { transform: translateY(3px); }
.cv-name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.cv-lang { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 520px) { .cv-grid { grid-template-columns: 1fr; } }

/* ===================== CONTATTI ===================== */
.section-dark { background: var(--ink); color: var(--cream); padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-logo { height: 120px; width: auto; margin: 0 auto 2.5rem; opacity: .92; }
.section-dark .section-head h2 { color: var(--cream); }
.section-dark .section-intro { color: #c9c2b6; }
.contact-actions { margin-top: 2.6rem; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.btn-ig { background: var(--cream); color: var(--ink); font-size: .82rem; padding: 1.05rem 2rem; }
.btn-ig:hover { background: var(--white); }
.contact-note { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #948d82; }

/* contact form */
.contact-form { margin: 2.8rem auto 0; max-width: 540px; text-align: left; }
.hp { position: absolute; left: -9999px; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label {
  display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #b7cbc8; margin-bottom: .5rem;
}
.contact-form label span { text-transform: none; letter-spacing: 0; color: #8a847a; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,.04); color: var(--cream);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r);
  padding: .85rem 1rem; font-family: var(--sans); font-size: .95rem; font-weight: 300;
  transition: border-color .3s, background .3s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--cream); background: rgba(255,255,255,.07);
}
.contact-form .btn-ig { margin-top: .6rem; width: 100%; justify-content: center; }
.form-privacy { margin-top: 1.1rem; font-size: .72rem; line-height: 1.5; color: #8a847a; }

.contact-alt { display: flex; align-items: center; gap: 1rem; max-width: 540px; margin: 2.4rem auto 1.6rem; color: #8a847a; }
.contact-alt::before, .contact-alt::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.14); }
.contact-alt span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.btn-ig-outline { background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,.3); }
.btn-ig-outline:hover { background: rgba(255,255,255,.08); }

@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ===================== FOOTER ===================== */
.site-footer { text-align: center; padding: 2.4rem var(--pad); background: var(--teal-deep); color: #cfe0dd; }
.site-footer p { font-size: .78rem; letter-spacing: .06em; }
.footer-loc { color: #9fbab6; margin-top: .35rem; font-size: .72rem; }
.footer-credit { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #9fbab6; font-size: .7rem; letter-spacing: .08em; }
.footer-credit a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 1px; transition: border-color .3s; }
.footer-credit a:hover { border-color: var(--cream); }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .eyebrow { font-size: .64rem; letter-spacing: .16em; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid, .ortho-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-nav { flex-wrap: wrap; justify-content: center; gap: .55rem 1.3rem; }
  .site-nav a { font-size: .66rem; letter-spacing: .14em; }
  .logo img { height: 108px; }
  .site-header.scrolled .logo img { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
