/* ==========================================================================
   Dott.ssa Cinzia Favaron — Psicologa Psicoterapeuta
   Foglio di stile principale
   ========================================================================== */

:root {
  --sage: #4a6b57;
  --sage-dark: #2f4a3d;
  --sage-light: #e1e8dc;
  --terracotta: #c9a24b;
  --terracotta-dark: #a8813a;
  --cream: #f7f2e6;
  --cream-alt: #f0e6d0;
  --ink: #2b2f2a;
  --ink-soft: #55584f;
  --white: #ffffff;
  --border: rgba(43, 47, 42, 0.1);
  --shadow: 0 10px 30px rgba(46, 58, 43, 0.08);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.11 0 0 0 0 0.04 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--sage-dark);
}
p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}
.section--alt { background: var(--cream-alt); }
.section--sage { background: var(--sage-light); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: var(--sage-dark);
  color: var(--sage-dark);
}
.btn-outline:hover { background: var(--sage-dark); color: var(--white); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--sage-dark);
}
.btn-light:hover { background: var(--sage-light); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand-text .name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--sage-dark);
  font-weight: 600;
}
.brand-text .role {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--sage-dark); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--sage-dark);
  margin: 6px 0;
  transition: .25s;
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 100px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: .4em;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta-dark);
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-badges div {
  font-size: .85rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--terracotta);
  padding-left: 12px;
  max-width: 190px;
}
.hero-badges strong {
  display: block;
  font-family: var(--font-head);
  color: var(--sage-dark);
  font-size: 1.1rem;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sage-light), var(--cream-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--sage);
  opacity: .35;
}
.hero-ring.r1 { width: 120%; height: 120%; top: -10%; left: -10%; }
.hero-ring.r2 { width: 90%; height: 90%; }

/* Accenti decorativi arte & natura */
.decor-branch {
  position: absolute;
  pointer-events: none;
  color: var(--sage);
}
.decor-branch.subtle { opacity: .3; }
.decor-branch.light { color: var(--white); opacity: .22; }
.decor-branch.warm { color: var(--terracotta); opacity: .35; }
.art-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: .5;
}

/* ===== Aree grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(46,58,43,.12); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform .3s ease, background .3s ease;
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: var(--cream-alt); }
.card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ===== Chi sono preview / split section ===== */
.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.15fr .85fr; }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
}
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.split-quote {
  border-left: 3px solid var(--terracotta);
  padding-left: 20px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage-dark);
  margin: 24px 0;
}

/* ===== Metodo / approcci ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--sage-dark);
  font-weight: 500;
}

/* ===== Sedi ===== */
.sedi-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.sede-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  width: 100%;
  max-width: 420px;
}
.sede-card svg { margin: 0 auto; }
.sede-card h3 { margin: 10px 0 .3em; }
.sede-card .addr { color: var(--ink-soft); margin-bottom: 14px; }
.sede-card a.btn { margin-top: 4px; }

/* ===== CTA banda ===== */
.cta-band {
  background: var(--sage-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 480px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.footer-grid h4 {
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 18px;
}
.footer-grid p, .footer-grid li { font-size: .92rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--terracotta); }
.footer-brand .name { font-family: var(--font-head); color: var(--white); font-size: 1.25rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 26px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-social { display: flex; justify-content: center; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* ===== Pagine interne — hero secondario ===== */
.page-hero {
  position: relative;
  padding: 64px 0 56px;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.page-hero-bg .photo-frame-placeholder { background: linear-gradient(180deg, var(--sage-light), var(--cream) 90%); }
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(247,242,230,.62) 85%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { display: block; color: var(--sage-dark); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .container > p { font-weight: 700; }
.breadcrumb {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--sage-dark); font-weight: 600; }

/* ===== Chi sono — timeline / lista ===== */
.bio-block { max-width: 760px; margin: 0 auto; }
.bio-block h2 { margin-top: 1.6em; }
.list-check { margin: 18px 0 30px; }
.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
}
.credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 30px 0;
}
.credential {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.credential strong { display: block; color: var(--sage-dark); font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.credential span { font-size: .88rem; color: var(--ink-soft); }

/* ===== Servizi — accordion ===== */
.service-row {
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:first-child { padding-top: 0; }
.service-header {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 22px;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.service-header h3 { font-size: 1.35rem; margin: 0 0 .3em; }
.service-header p { color: var(--ink-soft); margin: 0; }
.service-header .tags { margin-top: 16px; }
.service-chevron {
  justify-self: end;
  color: var(--terracotta-dark);
  transition: transform .3s ease;
}
.service-row.open .service-chevron { transform: rotate(180deg); }
.service-detail-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
  margin-left: 0;
}
.service-row.open .service-detail-wrap { grid-template-rows: 1fr; }
.service-detail-inner { overflow: hidden; }
.service-detail-inner p {
  padding-top: 16px;
  color: var(--ink-soft);
  font-size: .95rem;
  max-width: 640px;
}
@media (max-width: 720px) {
  .service-header { grid-template-columns: 1fr 20px; gap: 14px; }
}

/* ===== Contatti ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.contact-info-card h3 { margin-bottom: 14px; }
.contact-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.contact-row .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row div p { margin: 0; }
.contact-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 2px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; }
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ===== FAQ (contatti) ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--ink); font-family: var(--font-body); font-weight: 600; }
.faq-item p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ===== Foto / photo-frame ==========================================
   Contenitore pronto per una foto reale: finché il file indicato in
   src non esiste, mostra un placeholder curato con l'illustrazione
   e il nome del file atteso. Appena la foto viene caricata nella
   cartella images/ con lo stesso nome, sostituisce automaticamente
   il placeholder — nessuna modifica al codice necessaria.
   ===================================================================== */
.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--sage-light), var(--cream-alt));
}
.photo-frame.photo-missing img { display: none; }
.photo-frame.photo-missing .photo-frame-placeholder { display: flex; }
.photo-frame-placeholder .ph-label {
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  background: rgba(255,255,255,.75);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.hero-portrait .photo-frame,
.split-media .photo-frame { position: absolute; inset: 0; }

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.profile-photo .photo-frame { border-radius: 50%; }
.profile-photo .photo-frame-placeholder { padding: 14px; }
.bio-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 40px;
}
.bio-intro .split-quote { margin: 0; }
@media (max-width: 640px) {
  .bio-intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bio-intro .split-quote { text-align: left; }
}

/* ===== Animazioni allo scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group > *:nth-child(2) { transition-delay: 90ms; }
.reveal-group > *:nth-child(3) { transition-delay: 180ms; }
.reveal-group > *:nth-child(4) { transition-delay: 270ms; }
.reveal-group > *:nth-child(5) { transition-delay: 360ms; }
.reveal-group > *:nth-child(6) { transition-delay: 450ms; }
.reveal-group > *:nth-child(7) { transition-delay: 540ms; }
.reveal-group > *:nth-child(8) { transition-delay: 630ms; }
.reveal-group > *:nth-child(9) { transition-delay: 720ms; }

@keyframes float-ring {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-ring.r1 { animation: float-ring 7s ease-in-out infinite; }
.hero-ring.r2 { animation: float-ring 7s ease-in-out infinite -3.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ring { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 26px; }
  .section { padding: 64px 0; }
}
