/*
Theme Name: Talking Minds Child – Akoè
Description: Personalizzazione del tema Talking Minds per Akoè Psicologia e Psicoterapia.
Author: Akoè
Template: talking-minds
Version: 1.0.0
Text Domain: talking-minds-child-akoe
*/

:root {
  --bs-primary: #3f5d46;
  --bs-secondary: #a96f7d;
  --bs-third: #f6f2ee;
  --bs-fourth: #fcfaf8;
  --bs-fifth: #a7c394;
  --bs-sixth: rgba(111, 143, 99, 0.12);
  --bs-transparent: rgba(63, 93, 70, 0.72);
  --akoe-deep: #25332a;
  --akoe-sage: #6f8f63;
  --akoe-light-green: #a7c394;
  --akoe-mauve: #a96f7d;
  --akoe-terracotta: #c77d63;
  --akoe-powder: #e7d8d0;
  --akoe-ivory: #f6f2ee;
  --akoe-white: #fcfaf8;
  --akoe-text: #29322c;
  --akoe-muted: #637068;
  --akoe-border: rgba(63, 93, 70, 0.16);
  --akoe-shadow: 0 18px 48px rgba(37, 51, 42, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--akoe-white);
  color: var(--akoe-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-title {
  color: var(--akoe-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.16;
}

a {
  color: var(--akoe-deep);
}

a:hover,
a:focus-visible {
  color: var(--akoe-mauve);
}

:focus-visible {
  outline: 3px solid rgba(169, 111, 125, 0.45);
  outline-offset: 3px;
}

.akoe-reading {
  max-width: 76ch;
}

.akoe-eyebrow {
  color: var(--akoe-mauve);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.akoe-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.akoe-section--compact {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.akoe-surface,
.akoe-card,
.akoe-clinical-note,
.akoe-cta {
  border: 1px solid var(--akoe-border);
  border-radius: 1.35rem;
}

.akoe-surface,
.akoe-card {
  background: #fff;
  box-shadow: var(--akoe-shadow);
}

.akoe-card {
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.akoe-card--sage {
  background: linear-gradient(145deg, #fff 0%, rgba(167, 195, 148, 0.22) 100%);
}

.akoe-card--mauve {
  background: linear-gradient(145deg, #fff 0%, rgba(231, 216, 208, 0.48) 100%);
}

.akoe-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.akoe-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.akoe-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.akoe-clinical-note {
  background: rgba(167, 195, 148, 0.16);
  border-left: 5px solid var(--akoe-sage);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.akoe-cta {
  background: var(--akoe-deep);
  color: #fff;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.akoe-cta h2,
.akoe-cta h3,
.akoe-cta a {
  color: #fff;
}

.akoe-cta::after {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  height: 17rem;
  position: absolute;
  right: -8rem;
  top: -9rem;
  width: 17rem;
}

.akoe-photo-frame img,
.akoe-content-image img {
  border-radius: 1.35rem;
  box-shadow: var(--akoe-shadow);
}

.akoe-content-image--soft img {
  border-radius: 48% 52% 46% 54% / 44% 45% 55% 56%;
}

.akoe-links-panel a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--akoe-border);
  border-radius: 1rem;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 1rem 1.2rem;
}

.akoe-links-panel a::after {
  color: var(--akoe-mauve);
  content: "→";
  font-size: 1.35rem;
}

.akoe-layout-editorial .akoe-reading {
  margin-inline: auto;
}

.akoe-layout-split .akoe-content-image,
.akoe-layout-asymmetric .akoe-surface {
  transform: translateY(clamp(0rem, 3vw, 2rem));
}

.akoe-layout-clinical .akoe-section:first-of-type {
  background: linear-gradient(180deg, rgba(246, 242, 238, 0.75), transparent);
}

.akoe-no-leitmotiv .leaf,
.akoe-no-leitmotiv [class*="leaf-decoration"] {
  display: none !important;
}

@media (max-width: 900px) {
  .akoe-grid--2,
  .akoe-grid--3 {
    grid-template-columns: 1fr;
  }

  .akoe-layout-split .akoe-content-image,
  .akoe-layout-asymmetric .akoe-surface {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
