/*
Theme Name: Anna Patanella
Description: Child theme of Hello Elementor for annapatanellapsicologa.it.
Template: hello-elementor
Version: 1.4
Text Domain: annapatanella
*/

/* Layout, colors and typography live in Elementor (Site Settings and per-element controls).
   This file only holds what Elementor controls cannot express: the header, the form,
   and decorative details hooked to the CSS classes set on the Elementor elements. */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/fraunces-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/dm-sans-normal.woff2") format("woff2"); }

/* ---------- Tokens: follow the Elementor global colors, with safe fallbacks ---------- */
body.ap {
  --ap-cream: var(--e-global-color-cream, #FAF6EF);
  --ap-paper: var(--e-global-color-paper, #FFFDF9);
  --ap-sand: var(--e-global-color-sand, #F1E8DB);
  --ap-sage: var(--e-global-color-secondary, #6B8773);
  --ap-sage-50: var(--e-global-color-sage50, #E8EEE8);
  --ap-sage-200: var(--e-global-color-sage200, #C7D5CA);
  --ap-sage-700: var(--e-global-color-sage700, #48614F);
  --ap-forest: var(--e-global-color-primary, #2E4438);
  --ap-clay: var(--e-global-color-accent, #B05E3C);
  --ap-clay-dark: var(--e-global-color-claydark, #96492B);
  --ap-ink: var(--e-global-color-text, #24322B);
  --ap-muted: var(--e-global-color-muted, #5B6A62);
  --ap-line: var(--e-global-color-line, #DDD3C3);
  --ap-serif: "Fraunces", Georgia, serif;
  --ap-sans: "DM Sans", system-ui, sans-serif;
  background: var(--ap-cream);
  color: var(--ap-ink);
  font-family: var(--ap-sans);
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* ---------- Buttons (header, mobile bar, form) ---------- */
.ap .ap-btn, .ap .wpcf7 input.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border: 0; border-radius: 999px;
  background: var(--ap-clay); color: #fff;
  font: 600 16px/1 var(--ap-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .2s;
}
.ap .ap-btn:hover, .ap .ap-btn:focus, .ap .wpcf7 input.ap-btn:hover { background: var(--ap-clay-dark); color: #fff; }
.ap .ap-btn--sm { padding: 13px 22px; font-size: 15px; }

/* ---------- Header ---------- */
.ap-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.ap-header { position: sticky; top: 0; z-index: 90; background: rgba(250, 246, 239, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-bar .ap-header { top: 32px; }
.ap-header .ap-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 84px; }
.ap-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ap-brand svg { width: 42px; height: 42px; flex: none; }
.ap-brand circle:first-child { stroke: var(--ap-sage); }
.ap-brand circle:last-child { stroke: var(--ap-clay); }
.ap-brand b { display: block; font: 500 22px/1 var(--ap-serif); color: var(--ap-forest); letter-spacing: -.01em; }
.ap-brand small { display: block; margin-top: 6px; font: 600 10.5px/1 var(--ap-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ap-sage); }
.ap-brand--light b { color: var(--ap-cream); }
.ap-brand--light small, .ap-brand--light circle:first-child { color: #A3B9AA; stroke: #A3B9AA; }
.ap-brand--light circle:last-child { stroke: #E7B9A2; }
.ap-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; font-size: 15.5px; font-weight: 500; }
.ap-nav li a { display: block; padding: 6px 0; border-bottom: 1.5px solid transparent; color: var(--ap-ink); text-decoration: none; }
.ap-nav li a:hover, .ap-nav .current-menu-item > a:not([href*="#"]) { border-color: var(--ap-clay); }
.ap .ap-nav-cta { display: none; }
.ap .ap-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--ap-sage-200); border-radius: 50%; background: none; cursor: pointer; }
.ap .ap-burger:hover, .ap .ap-burger:focus { background: none; border-color: var(--ap-sage); }
.ap-burger span { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--ap-forest); transition: transform .2s; }
.ap-header.is-open .ap-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.ap-header.is-open .ap-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Mobile call bar ---------- */
.ap-mobile-bar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; gap: 6px; padding: 7px; border-radius: 999px; background: var(--ap-forest); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); }
.ap .ap-mobile-bar a { flex: 1; padding: 14px 10px; border-radius: 999px; text-align: center; text-decoration: none; font: 600 15px/1 var(--ap-sans); color: var(--ap-cream); }
.ap .ap-mobile-bar a.primary { flex: 1.6; background: var(--ap-clay); color: #fff; }
.ap-footer-fallback { margin: 0; padding: 28px 24px; background: var(--ap-forest); color: #BFCEC3; font-size: 14px; text-align: center; }

/* ---------- WhatsApp widget ---------- */
.ap-wa { position: fixed; right: 22px; bottom: 22px; z-index: 96; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; animation: ap-wa-in .45s ease 2.5s both; }
@keyframes ap-wa-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ap .ap-wa-button { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .2s; }
.ap .ap-wa-button:hover, .ap .ap-wa-button:focus-visible { transform: scale(1.06); color: #fff; }
.ap-wa-button svg { width: 30px; height: 30px; fill: currentColor; }
.ap-wa-bubble { position: relative; width: 270px; max-width: calc(100vw - 44px); padding: 14px 40px 15px 16px; border: 1px solid var(--ap-line); border-radius: 18px 18px 4px 18px; background: var(--ap-paper); box-shadow: 0 18px 40px -18px rgba(46, 68, 56, .4); }
.ap-wa-bubble[hidden] { display: none; }
.ap-wa-bubble.is-in { animation: ap-wa-in .35s ease both; }
.ap .ap-wa-bubble-link, .ap .ap-wa-bubble-link:hover { display: block; color: var(--ap-muted); font: 400 14.5px/1.45 var(--ap-sans); text-decoration: none; }
.ap-wa-bubble-link strong { display: block; margin-bottom: 3px; font: 500 17px/1.2 var(--ap-serif); color: var(--ap-forest); }
.ap .ap-wa-close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ap-muted); font: 400 22px/1 var(--ap-sans); cursor: pointer; }
.ap .ap-wa-close:hover, .ap .ap-wa-close:focus { background: var(--ap-sage-50); color: var(--ap-forest); }

/* ---------- Elementor content: shared details ---------- */
.ap .elementor-heading-title em { font-style: italic; color: var(--ap-sage); }
.ap .on-dark .elementor-heading-title em { color: #B5CBBB; }
.ap .elementor-widget-text-editor p:last-child, .ap .elementor-widget-text-editor ul:last-child { margin-bottom: 0; }
.ap .eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; }
.ap .eyebrow .elementor-heading-title::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; }
.ap .lead { max-width: 56ch; }
.ap .elementor-icon svg.ap-line-icon, .ap .elementor-button-icon svg.ap-line-icon { fill: none; stroke: currentColor; }
.ap .elementor-icon svg.ap-line-icon * { fill: none; }
.ap .elementor-icon-box-description a { color: inherit; text-decoration: none; }

/* Button variants set through the widget CSS class. */
.ap .btn .elementor-button { transition: background .2s, color .2s, border-color .2s; }
.ap .btn .elementor-button-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.ap .btn-ghost .elementor-button { background: transparent; color: var(--ap-forest); box-shadow: inset 0 0 0 1.5px var(--ap-sage); }
.ap .btn-ghost .elementor-button:hover { background: var(--ap-sage-50); color: var(--ap-forest); }
.ap .on-dark .btn-ghost .elementor-button { color: var(--ap-cream); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.ap .on-dark .btn-ghost .elementor-button:hover { background: rgba(255, 255, 255, .1); color: var(--ap-cream); }
.ap .btn-sm .elementor-button { padding: 13px 22px; font-size: 15px; }
.ap .btn-block .elementor-button { display: flex; width: 100%; justify-content: center; }
.ap .btn-link .elementor-button { padding: 0 0 4px; border-radius: 0; background: none; color: var(--ap-clay); box-shadow: inset 0 -1.5px 0 currentColor; }
.ap .btn-link .elementor-button:hover { background: none; color: var(--ap-clay-dark); }
.ap .more a { color: var(--ap-clay); font-weight: 600; text-decoration: none; box-shadow: inset 0 -1.5px 0 currentColor; padding-bottom: 2px; }

/* ---------- Home ---------- */
.ap .hero-points ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.ap .hero-points li { display: flex; align-items: center; gap: 9px; }
.ap .hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-sage); }
.ap .portrait { justify-self: end; }
.ap .portrait-img { position: relative; }
.ap .portrait-img::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1.5px solid var(--ap-sage-200); border-radius: 240px 240px 32px 32px; }
.ap .portrait-img img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 30%; border-radius: 240px 240px 32px 32px; }
.ap .page-hero .portrait-img::before { border-color: var(--ap-sage); opacity: .5; }

/* Path symbols: one, two, a group, a screen. Shared by the path cards and the service pages. */
.ap {
  --ap-shape-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%2348614F' stroke-width='1.4'%3E%3Ccircle cx='60' cy='60' r='38'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3C/svg%3E");
  --ap-shape-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%2348614F' stroke-width='1.4'%3E%3Ccircle cx='45' cy='60' r='32'/%3E%3Ccircle cx='75' cy='60' r='32'/%3E%3C/svg%3E");
  --ap-shape-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%2348614F' stroke-width='1.4'%3E%3Ccircle cx='60' cy='28' r='16'/%3E%3Ccircle cx='90' cy='50' r='16'/%3E%3Ccircle cx='79' cy='86' r='16'/%3E%3Ccircle cx='41' cy='86' r='16'/%3E%3Ccircle cx='30' cy='50' r='16'/%3E%3C/svg%3E");
  --ap-shape-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%2348614F' stroke-width='1.4'%3E%3Crect x='18' y='26' width='84' height='58' rx='9'/%3E%3Ccircle cx='60' cy='48' r='10'/%3E%3Cpath d='M44 72c3.5-7 9-10 16-10s12.5 3 16 10M44 98h32M60 84v14'/%3E%3C/svg%3E");
}
.ap .path::after { content: ""; position: absolute; right: 26px; top: 26px; width: 120px; height: 120px; background: no-repeat center / contain; pointer-events: none; }
.ap .path--1::after, .ap .service-art--1 { background-image: var(--ap-shape-1); }
.ap .path--2::after, .ap .service-art--2 { background-image: var(--ap-shape-2); }
.ap .path--3::after, .ap .service-art--3 { background-image: var(--ap-shape-3); }
.ap .path--4::after, .ap .service-art--4 { background-image: var(--ap-shape-4); }
.ap .path-title { margin-top: auto; }
.ap .path--compact::after { width: 84px; height: 84px; right: 22px; top: 22px; }
.ap .path--compact .path-title { margin-top: 52px; }

.ap .chips ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ap .chips li { padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; }

.ap .about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.ap .quote-card { position: absolute; right: -44px; bottom: -36px; width: 310px; }

.ap .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--ap-line); }
.ap .step { position: relative; z-index: 1; }
.ap .step-num { flex: none; }
.ap .step-num .elementor-heading-title { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--ap-sage); border-radius: 50%; background: var(--ap-paper); }

/* ---------- Service pages ---------- */
.ap .service-art { justify-self: end; width: min(340px, 100%); aspect-ratio: 1; border-radius: 50%; background-color: var(--ap-paper); background-repeat: no-repeat; background-position: center; background-size: 56%; box-shadow: inset 0 0 0 1.5px var(--ap-sage-200); }
.ap .contact-social .elementor-social-icon { box-shadow: inset 0 0 0 1px var(--ap-line); }
.ap .contact-social .elementor-social-icon:hover { background-color: var(--ap-sage-50) !important; }
.ap .contact-social p { margin: 0; }
.ap .e-con.cta-actions { --flex-shrink: 0; flex-shrink: 0; }

/* ---------- FAQ (accordion widget) ---------- */
.ap .elementor-widget-accordion.faq-list .elementor-accordion .elementor-accordion-item { border-left: 0; border-right: 0; }
.ap .elementor-widget-accordion.faq-list .elementor-accordion .elementor-tab-content { border-top: 0; }
.ap .faq-list .elementor-tab-title { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 0; cursor: pointer; }
.ap .faq-list .elementor-tab-title a { color: inherit; text-decoration: none; }
.ap .faq-list .elementor-accordion-icon { float: none; flex: none; width: auto; padding-top: 4px; font-size: 15px; }
.ap .faq-list .elementor-tab-content { border: 0; max-width: 62ch; }

/* ---------- Contact form (Contact Form 7) ---------- */
.ap .ap-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ap .ap-form p { margin: 0; min-width: 0; }
.ap .ap-form .full { grid-column: 1 / -1; }
.ap .ap-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ap-forest); }
.ap .ap-form label span { font-weight: 400; }
.ap .ap-form input:not([type="submit"]):not([type="checkbox"]), .ap .ap-form textarea, .ap .ap-form select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--ap-line); border-radius: 12px;
  background: var(--ap-cream); color: var(--ap-ink); font: 400 16px/1.4 var(--ap-sans);
}
.ap .ap-form input:focus, .ap .ap-form textarea:focus, .ap .ap-form select:focus { border-color: var(--ap-sage); outline: 0; box-shadow: 0 0 0 3px rgba(107, 135, 115, .2); }
.ap .ap-form textarea { height: 130px; min-height: 130px; resize: vertical; }
.ap .ap-form .check .wpcf7-list-item { margin: 0; }
.ap .ap-form .check label { display: flex; gap: 10px; margin: 0; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--ap-muted); }
.ap .ap-form .check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ap-clay); }
.ap .ap-form .check a { color: var(--ap-clay); }
.ap .ap-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ap .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13.5px; color: #A63A2B; }
.ap .wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--ap-sage-50); font-size: 15px; color: var(--ap-forest); }
.ap .wpcf7 form.invalid .wpcf7-response-output, .ap .wpcf7 form.failed .wpcf7-response-output, .ap .wpcf7 form.unaccepted .wpcf7-response-output, .ap .wpcf7 form.spam .wpcf7-response-output { background: #F4E4D9; color: #6B4636; }
.ap .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }

/* ---------- Inner pages ---------- */
.ap .crumbs a { color: inherit; text-decoration: none; }
.ap .story-side { position: sticky; top: 120px; }
.ap .prose blockquote { margin: 40px 0; padding: 6px 0 6px 30px; border-left: 2px solid var(--ap-clay); }
.ap .prose blockquote p { margin: 0; font: italic 400 30px/1.32 var(--ap-serif); color: var(--ap-forest); }
.ap .timeline ul { margin: 0 0 0 8px; padding: 0; list-style: none; border-left: 1.5px solid var(--ap-sage-200); }
.ap .timeline li { position: relative; padding: 0 0 30px 34px; }
.ap .timeline li:last-child { padding-bottom: 0; }
.ap .timeline li::before { content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border: 1.5px solid var(--ap-sage); border-radius: 50%; background: var(--ap-cream); }
.ap .timeline li strong { display: block; margin-bottom: 4px; font: 400 21px/1.25 var(--ap-serif); letter-spacing: -.01em; color: var(--ap-forest); }
.ap .side-card .timeline li strong { font-size: 19px; }
.ap .legal h2 { margin: 1.8em 0 .5em; }
.ap .legal h2:first-child { margin-top: 0; }
.ap .legal li { margin-bottom: .5em; }
.ap .legal .updated { margin-top: 2.4em; font-size: 14.5px; color: var(--ap-muted); }

/* ---------- Pages not built with Elementor (404, search results) ---------- */
.ap .site-main { max-width: 820px; margin: 0 auto; padding: 96px 24px 112px; }
.ap .site-main .entry-title { font: 400 46px/1.1 var(--ap-serif); letter-spacing: -.015em; color: var(--ap-forest); }
.ap .site-main .page-content { margin-top: 20px; font-size: 18px; color: var(--ap-muted); }

/* ---------- Footer template ---------- */
.ap .footer-main a { color: inherit; text-decoration: none; }
.ap .footer-main a:hover { color: var(--ap-cream); }
.ap .footer-about { max-width: 38ch; }
.ap .footer-legal .credit { white-space: nowrap; }
.ap .footer-main .e-con { min-width: 0; }
.ap .footer-links .elementor-icon-list-text { overflow-wrap: anywhere; }

/* ---------- Tablet and below: burger menu ---------- */
@media (max-width: 1024px) {
  .ap-header .ap-wrap { height: 72px; }
  .ap-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 24px 28px; background: var(--ap-cream); border-bottom: 1px solid var(--ap-line); box-shadow: 0 24px 40px -24px rgba(46, 68, 56, .35); }
  .ap-header.is-open .ap-nav { display: block; }
  .ap-nav ul { flex-direction: column; gap: 0; font-size: 17px; }
  .ap-nav li a { padding: 16px 0; border-bottom: 1px solid var(--ap-line); }
  .ap-nav li a:hover, .ap-nav .current-menu-item > a:not([href*="#"]) { border-color: var(--ap-line); color: var(--ap-clay); }
  .ap .ap-nav-cta { display: flex; margin-top: 22px; }
  .ap .ap-burger { display: flex; }
  .ap .steps::after { display: none; }
  .ap .story-side { position: static; }
  .ap .quote-card { right: -16px; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  html { scroll-padding-top: 84px; }
  .admin-bar .ap-header { top: 46px; }
  .ap-wrap { width: min(1180px, 100% - 40px); }
  .ap-header .ap-wrap { height: 70px; }
  .ap .ap-header .ap-cta { display: none; }
  .ap-brand svg { width: 36px; height: 36px; }
  .ap-brand b { font-size: 19px; }
  .ap-brand small { font-size: 9.5px; }
  .ap-mobile-bar { display: flex; }
  /* Above the sticky call bar. */
  .ap-wa { right: 14px; bottom: 86px; }
  .ap .ap-wa-button { width: 54px; height: 54px; }
  .ap-wa-button svg { width: 27px; height: 27px; }
  .ap .btn-row .elementor-button { display: flex; justify-content: center; }
  .ap .portrait { justify-self: center; }
  .ap .hero .portrait { margin-bottom: 30px; }
  .ap .path::after { width: 84px; height: 84px; right: 20px; top: 20px; }
  .ap .path-title { margin-top: 52px; }
  .ap .service-art { display: none; }
  .ap .quote-card { position: relative; right: auto; bottom: auto; width: auto; margin: -56px 18px 0; }
  .ap .ap-form { grid-template-columns: 1fr; }
  .ap .ap-form input.ap-btn { width: 100%; }
  .ap .contact-row .elementor-icon-box-description { overflow-wrap: anywhere; }
  .ap .prose blockquote { margin: 30px 0; padding-left: 22px; }
  .ap .prose blockquote p { font-size: 24px; }
}

@media (max-width: 600px) {
  .admin-bar .ap-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-wa, .ap-wa-bubble.is-in { animation: none; }
  .ap .ap-wa-button { transition: none; }
}

/* MeriPac credit: the white feather before the name, as on the other MeriPac sites. */
.credit a[href*="meripac.it"] { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.credit a[href*="meripac.it"]::before { content: ""; flex: none; width: 25px; height: 22px; background: url("assets/img/meripac-feather-white-96.png") no-repeat center / contain; }
