/*
Theme Name: Segno & Psiche
Theme URI: https://segnoepsiche.it
Author: Segno & Psiche Studio
Author URI: https://segnoepsiche.it
Description: Tema WordPress minimal, elegante ed editoriale per Segno & Psiche - Centro Multifunzionale di Psicologia e Arte-Terapia. Design premium, luminoso, accessibile (WCAG 2.2 AA), ottimizzato SEO e performance. Compatibile Gutenberg, nessun page builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: segno-psiche
Tags: minimal, editorial, accessibility-ready, custom-logo, custom-menu, translation-ready, block-styles, wide-blocks, full-site-editing
*/

/* ==========================================================================
   0. DESIGN TOKENS
   ========================================================================== */
:root {
  --sage: #687C70;
  --sage-dark: #4f6157;
  --sage-soft: #e6ebe6;
  --terracotta: #C98267;
  --terracotta-dark: #b06a50;
  --ivory: #F8F5EF;
  --ivory-deep: #f0ebe1;
  --anthracite: #292929;
  --anthracite-soft: #4a4a4a;
  --white: #ffffff;
  --line: #e4ddd0;

  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(41,41,41,.05);
  --shadow: 0 12px 40px rgba(41,41,41,.08);
  --shadow-lg: 0 24px 70px rgba(41,41,41,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   1. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.125rem;            /* 18px minimo (WCAG) */
  line-height: 1.75;
  color: var(--anthracite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--terracotta-dark); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--anthracite);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
p  { max-width: 68ch; }

.serif { font-family: var(--font-title); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  display: inline-block;
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   2. ACCESSIBILITY
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--terracotta-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--anthracite);
  color: #fff;
  padding: .9rem 1.4rem;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color:#fff; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
::selection { background: var(--sage); color: #fff; }

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--ivory-deep); }
.section--sage { background: var(--sage); color: #fff; }
.section--sage h1,.section--sage h2,.section--sage h3 { color:#fff; }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 768px){ .grid-2 { grid-template-columns: repeat(2,1fr);} .grid-3 { grid-template-columns: repeat(3,1fr);} }
.text-center { text-align: center; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.7; color: var(--anthracite-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem,5vw,4rem); }
.section-head.text-center { margin-inline: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity:1; transform:none; }
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 1rem 2.1rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--sage); color: #fff; box-shadow: 0 10px 26px rgba(104,124,112,.32); }
.btn--primary:hover { background: var(--sage-dark); color:#fff; box-shadow: 0 16px 34px rgba(104,124,112,.42); }
.btn--terra { background: var(--terracotta); color:#fff; box-shadow: 0 10px 26px rgba(201,130,103,.32); }
.btn--terra:hover { background: var(--terracotta-dark); color:#fff; }
.btn--ghost { background: transparent; color: var(--anthracite); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage-dark); }
.btn--light { background:#fff; color: var(--sage-dark); }
.btn--light:hover { background: var(--ivory); color: var(--sage-dark); }
.btn .btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ==========================================================================
   5. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(248,245,239,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.site-brand { display: flex; align-items: center; gap: .8rem; }
.site-brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .brand-name { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; color: var(--anthracite); }
.brand-text .brand-sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-dark); }

.primary-nav ul { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
  color: var(--anthracite);
  font-size: .98rem;
  font-weight: 500;
  padding: .55rem .95rem;
  border-radius: 100px;
  position: relative;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.primary-nav a::after {
  content:""; position:absolute; left:50%; bottom:.35rem; width:0; height:2px;
  background: var(--terracotta); transform: translateX(-50%); transition: width .3s var(--ease);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--sage-dark); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { width: 20px; }
.header-cta { flex-shrink: 0; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; }
.nav-toggle span { display:block; width:26px; height:2px; background: var(--anthracite); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px){
  .nav-toggle { display: block; z-index: 20; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 84vw);
    background: var(--ivory); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .45s var(--ease);
    padding: 6rem 2rem 2rem; overflow-y:auto;
  }
  .primary-nav.is-open { transform: none; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .primary-nav a { font-size: 1.15rem; padding: .85rem 1rem; }
  .primary-nav a::after { display:none; }
  .nav-overlay { position: fixed; inset:0; background: rgba(41,41,41,.4); opacity:0; visibility:hidden; transition: opacity .4s var(--ease); z-index: 10; }
  .nav-overlay.is-open { opacity:1; visibility:visible; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (min-width: 900px){ .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-title { margin: .4rem 0 1.2rem; }
.hero-title .amp { color: var(--terracotta-dark); font-style: italic; }
.hero-sub { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dark); font-weight: 500; }
.hero-claim { font-family: var(--font-title); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--anthracite-soft); margin: 1.6rem 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width:100%; }
.hero-media::after {
  content:""; position:absolute; inset:auto -18px -18px auto; width:60%; height:60%;
  border: 1.5px solid var(--terracotta); border-radius: var(--radius-lg); z-index:-1;
}
.hero-badge {
  position:absolute; left: -18px; bottom: 32px; background:#fff; border-radius: var(--radius);
  padding: 1rem 1.4rem; box-shadow: var(--shadow); display:flex; align-items:center; gap:.8rem;
}
.hero-badge .dot { width:10px; height:10px; border-radius:50%; background: var(--sage); }
.hero-badge span { font-size:.9rem; color: var(--anthracite-soft); }

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3/2; overflow: hidden; }
.card__media img { width:100%; height:100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: clamp(1.6rem, 2.5vw, 2.2rem); flex:1; display:flex; flex-direction:column; }
.card__body h3 { margin-bottom: .7rem; }
.card__num { font-family: var(--font-title); font-size: 1.1rem; color: var(--terracotta-dark); margin-bottom:.5rem; }
.card__link { margin-top: auto; padding-top: 1.2rem; font-weight:600; display:inline-flex; align-items:center; gap:.4rem; }
.card ul.feature-list { margin-top: 1rem; display:flex; flex-direction:column; gap:.5rem; }
.card ul.feature-list li { position:relative; padding-left:1.4rem; font-size:1rem; color:var(--anthracite-soft); }
.card ul.feature-list li::before { content:""; position:absolute; left:0; top:.7em; width:7px; height:7px; border-radius:50%; background: var(--sage); }

/* Professionisti */
.pro-card { display:grid; gap:0; background:#fff; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 640px){ .pro-card { grid-template-columns: 260px 1fr; } }
.pro-card__photo { aspect-ratio: 3/4; }
.pro-card__photo img { width:100%; height:100%; object-fit:cover; }
.pro-card__body { padding: clamp(1.6rem,3vw,2.4rem); }
.pro-card__role { color: var(--terracotta-dark); font-weight:600; font-size:.95rem; letter-spacing:.05em; margin:.2rem 0 1rem; }
.pro-card__meta { margin-top:1.4rem; padding-top:1.4rem; border-top:1px solid var(--line); display:grid; gap:.9rem; }
.pro-card__meta h4 { font-family:var(--font-body); font-size:.8rem; text-transform:uppercase; letter-spacing:.15em; color:var(--sage-dark); margin-bottom:.35rem; }
.chip-row { display:flex; flex-wrap:wrap; gap:.5rem; }
.chip { background: var(--sage-soft); color: var(--sage-dark); font-size:.85rem; padding:.35rem .85rem; border-radius:100px; font-weight:500; }

/* Split feature block */
.split { display:grid; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
@media (min-width:900px){ .split { grid-template-columns: 1fr 1fr; } .split--rev .split__media { order:2; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit:cover; width:100%; }

/* Values grid */
.value-grid { display:grid; gap: clamp(1.5rem,3vw,2.5rem); }
@media (min-width:768px){ .value-grid { grid-template-columns: repeat(3,1fr); } }
.value { padding: 2rem; background:#fff; border-radius: var(--radius); border:1px solid var(--line); }
.value .value__icon { width:52px; height:52px; border-radius:14px; background: var(--sage-soft); display:grid; place-items:center; color: var(--sage-dark); margin-bottom:1.2rem; }
.value h3 { font-size: 1.4rem; margin-bottom:.5rem; }

/* CTA band */
.cta-band { background: var(--sage); color:#fff; border-radius: var(--radius-lg); padding: clamp(3rem,6vw,5rem); text-align:center; position:relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; top:-40%; right:-10%; width:420px; height:420px; border:1.5px solid rgba(255,255,255,.18); border-radius:50%; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 1rem auto 2rem; }

/* ==========================================================================
   8. FORMS
   ========================================================================== */
.form-field { margin-bottom: 1.4rem; }
.form-field label { display:block; font-weight:600; font-size:.95rem; margin-bottom:.5rem; color: var(--anthracite); }
.form-field label .req { color: var(--terracotta-dark); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width:100%; font-family: var(--font-body); font-size:1.05rem;
  padding: .95rem 1.1rem; border:1.5px solid var(--line); border-radius:12px;
  background:#fff; color:var(--anthracite); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
input:focus, textarea:focus, select:focus { outline:none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(104,124,112,.15); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size:.9rem; color: var(--anthracite-soft); }
.form-card { background:#fff; border-radius: var(--radius-lg); padding: clamp(1.8rem,4vw,3rem); box-shadow: var(--shadow); border:1px solid var(--line); }
.alert { padding:1rem 1.3rem; border-radius:12px; margin-bottom:1.6rem; font-size:1rem; }
.alert--success { background: var(--sage-soft); color: var(--sage-dark); border:1px solid var(--sage); }
.alert--error { background: #f7e6df; color: var(--terracotta-dark); border:1px solid var(--terracotta); }

/* Contact / info list */
.contact-grid { display:grid; gap:clamp(2rem,4vw,3.5rem); }
@media (min-width:900px){ .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.info-item { display:flex; gap:1rem; align-items:flex-start; padding:1.2rem 0; border-bottom:1px solid var(--line); }
.info-item:last-child { border-bottom:0; }
.info-item .info-icon { flex-shrink:0; width:46px; height:46px; border-radius:12px; background:var(--sage-soft); display:grid; place-items:center; color:var(--sage-dark); }
.info-item h4 { font-family:var(--font-body); font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; color:var(--sage-dark); margin-bottom:.2rem; }
.info-item a, .info-item p { font-size:1.1rem; }

/* Map & calendar embeds */
.embed-frame { border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--line); background:#fff; }
.embed-frame iframe { display:block; width:100%; border:0; }
.map-frame iframe { height: 460px; }
.calendar-frame iframe { height: 640px; }

/* ==========================================================================
   9. BREADCRUMB
   ========================================================================== */
.breadcrumb { padding: 1.4rem 0 0; font-size:.92rem; color: var(--anthracite-soft); }
.breadcrumb ol { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.breadcrumb li { display:flex; align-items:center; gap:.5rem; }
.breadcrumb li:not(:last-child)::after { content:"/"; color: var(--line); }
.breadcrumb a { color: var(--sage-dark); }
.breadcrumb [aria-current="page"] { color: var(--anthracite); font-weight:500; }

/* Page hero (interior pages) */
.page-hero { padding: clamp(3rem,6vw,5rem) 0 clamp(2rem,4vw,3rem); }
.page-hero .lead { margin-top: 1.2rem; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer { background: var(--anthracite); color: #cfcabf; padding-block: clamp(3.5rem,6vw,5rem) 0; }
.site-footer a { color: #cfcabf; }
.site-footer a:hover { color: #fff; }
.footer-grid { display:grid; gap: clamp(2rem,4vw,3rem); }
@media (min-width:768px){ .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .brand-name { font-family: var(--font-title); font-size: 1.8rem; color:#fff; }
.footer-brand img { height:56px; margin-bottom:1rem; filter: brightness(0) invert(1); opacity:.92; }
.footer-brand p { color:#9a958b; margin-top:1rem; font-size:1rem; }
.footer-col h4 { font-family: var(--font-body); color:#fff; font-size:.85rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:1.2rem; }
.footer-col ul { display:grid; gap:.7rem; }
.footer-bottom { margin-top: clamp(2.5rem,5vw,3.5rem); border-top:1px solid rgba(255,255,255,.1); padding-block:1.8rem; display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; font-size:.9rem; color:#8b867c; }
.footer-bottom nav ul { display:flex; gap:1.4rem; flex-wrap:wrap; }

/* ==========================================================================
   11. WP CORE / GUTENBERG
   ========================================================================== */
.wp-block-image img { border-radius: var(--radius); }
.alignwide { max-width: 1100px; margin-inline:auto; }
.alignfull { max-width: 100%; }
blockquote { border-left: 3px solid var(--terracotta); padding-left: 1.4rem; font-family: var(--font-title); font-style: italic; font-size: 1.4rem; color: var(--anthracite-soft); }
.entry-content > * { margin-bottom: 1.4rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.4rem; }
.wp-block-button__link { border-radius: 100px; background: var(--sage); padding:1rem 2rem; }
.post-thumb img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pagination { display:flex; gap:.5rem; justify-content:center; margin-top:3rem; }
.pagination .page-numbers { padding:.6rem 1rem; border:1px solid var(--line); border-radius:10px; background:#fff; }
.pagination .current { background: var(--sage); color:#fff; border-color: var(--sage); }
css
/* Logo nel footer */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    display: block;
    width: auto;
    max-width: 90px;
    height: auto;
    max-height: 80px;
    
}

