/* ============================================
   Sito vetrina - Psicologa
   Palette: #6B7A3A / #A8B58A / #E9E2D4 / #B89B72 / #2F3324
   ============================================ */

:root {
  --color-primary: #6b7a3a;
  --color-primary-dark: #2f3324;
  --color-primary-soft: rgba(107, 122, 58, 0.1);
  --color-accent: #b89b72;
  --color-accent-dark: #9c8260;
  --color-soft: #a8b58a;
  --color-bg: #faf8f3;
  --color-bg-alt: #e9e2d4;
  --color-text: #2f3324;
  --color-text-light: #5e614e;
  --color-white: #ffffff;
  --font-heading: "Montserrat", Helvetica, Arial, sans-serif;
  --font-body: "Montserrat", Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(47, 51, 36, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
}

.brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

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

.main-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}

.icon-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(47, 51, 36, 0.55), rgba(184, 155, 114, 0.35)),
    radial-gradient(circle at 20% 30%, #e9e2d4 0%, transparent 55%),
    linear-gradient(120deg, #e9e2d4 0%, #a8b58a 45%, #6b7a3a 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 40%, rgba(255, 255, 255, 0.25), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  max-width: 1120px;
}

.hero-box {
  margin-left: auto;
  max-width: 560px;
}

.hero-box .hero-name {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  padding: 22px 32px;
  margin: 0;
}

.hero-box .hero-titles {
  background: rgba(44, 74, 62, 0.82);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  padding: 24px 32px 32px;
  margin: 0;
}

.hero-box .hero-titles span {
  display: block;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2,
.page-title {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 34px;
  font-weight: 700;
  margin: 0;
}

.section-lead {
  color: var(--color-text-light);
  font-size: 16px;
  margin-top: 14px;
}

/* ---------- Cards grid (aree di intervento) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}

.area-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.area-card .icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-card .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
}

.area-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 18px;
  margin: 2px 0 6px;
}

.area-card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 15px;
}

/* ---------- Page header banner ---------- */

.page-banner {
  background: var(--color-bg-alt);
  padding: 56px 0;
  text-align: center;
}

.page-banner .page-title {
  text-align: center;
}

/* ---------- Chi sono ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #e9e2d4, #a8b58a 60%, #6b7a3a);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bullet-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--color-text);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.bio-text p {
  margin: 0 0 16px;
  color: var(--color-text);
}

.cv-box {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cv-box h4 {
  margin: 0 0 4px;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
}

.cv-box p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 14px;
}

.publication {
  padding: 20px 0;
  border-top: 1px solid var(--color-bg-alt);
  color: var(--color-text-light);
  font-size: 14.5px;
}

.publication:first-of-type {
  border-top: none;
}

/* ---------- Servizi ---------- */

.service-block {
  padding: 36px 0;
  border-top: 1px solid var(--color-bg-alt);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.service-block:first-of-type {
  border-top: none;
}

.service-block h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 20px;
  margin: 0;
}

.service-block .service-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.service-block ul {
  margin-top: 14px;
}

.service-block ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 15px;
}

.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.service-block p {
  margin: 0 0 14px;
  color: var(--color-text);
}

.service-block ul li a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-block ul li a:hover {
  color: var(--color-accent);
}

.service-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  color: var(--color-text-light);
  font-size: 14px;
}

/* ---------- Approfondimenti (pagine di dettaglio non in menu) ---------- */

.deepdive {
  max-width: 760px;
}

.deepdive > section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-bg-alt);
}

.deepdive > section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.deepdive h2 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px;
}

.deepdive h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.deepdive h3:first-of-type {
  margin-top: 0;
}

.deepdive h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.deepdive p {
  margin: 0 0 14px;
  color: var(--color-text);
}

.deepdive ul {
  margin: 0 0 16px;
}

.deepdive ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 15.5px;
}

.deepdive ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.deepdive a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.deepdive a:hover {
  color: var(--color-accent);
}

/* ---------- Contatti ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.contact-card h4 {
  margin: 0 0 6px;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 16px;
}

.contact-card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 14.5px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.contact-direct a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(160deg, #e9e2d4, #a8b58a 60%, #b89b72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-bg-alt);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--color-bg);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.form-consent input {
  margin-top: 3px;
}

.form-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 0 0 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

.footer-links {
  display: flex;
  gap: 18px;
}

/* ---------- Responsive ---------- */

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

  .profile-grid,
  .contact-grid,
  .service-block {
    grid-template-columns: 1fr;
  }

  .hero-box {
    margin-left: 0;
    max-width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--color-primary);
    padding: 4px 24px 16px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .hero-box .hero-name {
    font-size: 24px;
    padding: 16px 20px;
  }

  .hero-box .hero-titles {
    font-size: 20px;
    padding: 16px 20px 22px;
  }

  .section {
    padding: 56px 0;
  }

  .site-header .container {
    gap: 10px;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .icon-link {
    display: none;
  }

  .btn-accent {
    padding: 10px 16px;
    font-size: 13px;
  }
}
