/*
Theme Name: Giselda Cianciola
Theme URI: https://www.giseldacianciola.com/
Author: OpenAI for Giselda Cianciola
Description: Tema WordPress custom per Giselda Cianciola – Inclusione in Rete.
Version: 4.3.9
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gci
*/
:root{
 --ink:#17211f; --muted:#5c6966; --paper:#fbfaf7; --soft:#eef2ee;
 --accent:#315e55; --accent2:#b08a5a; --line:#dce3df; --white:#fff;
 --max:1180px; --radius:20px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
a{color:var(--accent);text-decoration:none} a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,250,247,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.navbar{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:82px}
.brand{display:flex;flex-direction:column;color:var(--ink);line-height:1.15}
.brand strong{font-family:Georgia,serif;font-size:1.18rem;letter-spacing:.02em}
.brand span{font-size:.76rem;color:var(--muted);margin-top:5px}
.menu{display:flex;align-items:center;gap:20px;list-style:none;margin:0;padding:0;font-size:.9rem}
.menu a{color:var(--ink)}
.menu .cta a,.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;background:var(--accent);color:white;font-weight:650;border:1px solid var(--accent)}
.btn.alt{background:transparent;color:var(--accent)}
.menu-toggle{display:none;border:0;background:transparent;font-size:1.6rem}
.hero{padding:92px 0 70px}
.hero-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:70px;align-items:center}
.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:.76rem;font-weight:800;color:var(--accent)}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.12;margin:0 0 20px}
h1{font-size:clamp(3rem,6.2vw,5.9rem);font-weight:500;letter-spacing:-.045em}
h2{font-size:clamp(2.1rem,4vw,3.6rem);font-weight:500;letter-spacing:-.025em}
h3{font-size:1.55rem;font-weight:500}
.lead{font-size:1.2rem;color:var(--muted);max-width:720px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.portrait-placeholder{aspect-ratio:4/5;border-radius:120px 120px 24px 24px;background:linear-gradient(145deg,#dfe8e3,#f4eee5);display:grid;place-items:center;padding:40px;text-align:center;color:var(--muted);border:1px solid var(--line)}
.portrait-placeholder strong{display:block;color:var(--ink);font-family:Georgia,serif;font-size:1.4rem;margin-bottom:8px}
.keywords{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.keyword{padding:24px;text-align:center;font-weight:800;letter-spacing:.13em;font-size:.78rem}
section{padding:88px 0}
.soft{background:var(--soft)}
.intro{max-width:850px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:42px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:32px}
.card p{color:var(--muted)}
.card .num{font-size:.75rem;letter-spacing:.14em;color:var(--accent);font-weight:800}
.split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.quote{font-family:Georgia,serif;font-size:clamp(1.8rem,3.2vw,3rem);line-height:1.2}
.pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
.pill{border:1px solid var(--line);border-radius:999px;padding:8px 13px;background:white;font-size:.85rem}
.band{background:var(--accent);color:white}
.band p{color:#e2ece8}.band .btn{background:white;color:var(--accent);border-color:white}
.books{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.book{border-left:3px solid var(--accent2);padding:8px 0 8px 24px}
.book em{font-family:Georgia,serif;font-size:1.35rem}
.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{border-top:1px solid var(--line);padding-top:18px}
.site-footer{padding:54px 0 30px;background:#111917;color:#dce4e1}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:40px}
.site-footer a{color:#f2f6f4}.small{font-size:.84rem;color:var(--muted)}
.site-footer .small{color:#aebbb7}
.page-hero{padding:70px 0 30px}.content{max-width:850px;padding-bottom:80px}
.content h2{font-size:2rem;margin-top:42px}.content h3{margin-top:30px}
.content ul{padding-left:22px}.notice{padding:20px;border:1px solid var(--line);background:var(--soft);border-radius:14px}
.gci-form{display:grid;gap:16px;max-width:760px}
.gci-form label{font-weight:650}.gci-form input,.gci-form select,.gci-form textarea{width:100%;padding:13px 14px;border:1px solid #bdc9c4;border-radius:10px;background:white;font:inherit}
.gci-form textarea{min-height:160px}.gci-form button{cursor:pointer}
.alert{padding:14px 16px;border-radius:10px;background:var(--soft);border:1px solid var(--line)}
@media(max-width:900px){
 .menu-toggle{display:block}.menu{display:none;position:absolute;left:20px;right:20px;top:72px;background:var(--paper);padding:22px;border:1px solid var(--line);border-radius:16px;flex-direction:column;align-items:flex-start}.menu.open{display:flex}
 .hero-grid,.split{grid-template-columns:1fr}.hero{padding-top:58px}.portrait-placeholder{max-width:520px}
 .grid3,.post-list{grid-template-columns:1fr}.books{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}
}
@media(max-width:560px){.wrap{width:min(var(--max),calc(100% - 28px))}.keywords{grid-template-columns:1fr}.keyword+ .keyword{border-top:1px solid var(--line)}section{padding:64px 0}}

/* v2: accessibility, usability, print, motion */
.skip-link{position:absolute;left:-9999px;top:0;background:#fff;color:#17211f;padding:12px 16px;z-index:9999}
.skip-link:focus{left:12px;top:12px;outline:3px solid #b08a5a;outline-offset:3px}
:focus-visible{outline:3px solid #b08a5a;outline-offset:3px}
.content a,.text-link{text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.16em}
.menu a{text-decoration:none}
.menu a:hover,.menu a:focus-visible{text-decoration:underline;text-underline-offset:.3em}
.btn:hover,.btn:focus-visible{text-decoration:none;filter:brightness(.93)}
.meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:32px}
.meta{padding:18px;border-top:1px solid var(--line);font-size:.9rem}
.service-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:28px}
.service{padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff}
.kicker{font-size:.9rem;font-weight:750;color:var(--accent)}
.price{font-family:Georgia,serif;font-size:1.5rem;margin:.35rem 0}
.breadcrumbs{font-size:.84rem;color:var(--muted);padding-top:24px}
details{border-top:1px solid var(--line);padding:18px 0}
summary{cursor:pointer;font-weight:700}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.meta-grid,.service-list{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.meta-grid,.service-list{grid-template-columns:1fr}.actions .btn{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media print{.site-header,.site-footer,.actions,.menu-toggle{display:none!important}body{background:#fff;color:#000}.wrap{width:100%}a{color:#000;text-decoration:none}}

/* v2.2 — layout hardening
   Impedisce che le regole globali dei link trasformino intere card in testo sottolineato
   e rende i componenti prevedibili su desktop/mobile. */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{display:block;min-width:0;padding:30px;border:1px solid var(--line);border-radius:18px;background:#fff;color:inherit;text-decoration:none!important}
a.card,a.card:visited,a.card:hover,a.card:focus{text-decoration:none!important;color:inherit}
.card span{display:block;margin-bottom:18px;font-size:.86rem;font-weight:750;letter-spacing:.08em;color:var(--accent);text-decoration:none!important}
.card h3{margin:.15rem 0 .8rem;text-decoration:none!important;color:var(--ink)}
.card p{margin:0;color:var(--muted);text-decoration:none!important;line-height:1.65}
.card .text-link{text-decoration:underline!important}
.section .cards a.card *{text-decoration:none!important}
.content{overflow-wrap:break-word}
.content p,.content li{max-width:76ch}
.hero-grid,.split,.footer-grid{min-width:0}
.hero-grid>* ,.split>* ,.footer-grid>*{min-width:0}
@media(max-width:900px){.cards,.cards.two{grid-template-columns:1fr}.card{padding:24px}}

/* v3 — dual practice architecture */
.practice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:30px}
.practice-card{display:block;min-width:0;padding:38px;border:1px solid var(--line);border-radius:22px;background:#fff;color:inherit;text-decoration:none!important;transition:transform .18s ease,box-shadow .18s ease}
.practice-card:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(31,50,46,.08)}
.practice-card h3{font-size:clamp(1.7rem,3vw,2.45rem);margin:.35rem 0 1rem;text-decoration:none}
.practice-card p{color:var(--muted);line-height:1.7;text-decoration:none}
.practice-link{display:inline-block;margin-top:12px;font-weight:750;text-decoration:none}
@media(max-width:800px){.practice-grid{grid-template-columns:1fr}.practice-card{padding:26px}}

/* v3.1 — visual refinement for common laptop/desktop widths */
.hero{padding-top:clamp(54px,6vw,88px);padding-bottom:clamp(58px,7vw,96px)}
.hero-grid{grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);gap:clamp(42px,6vw,88px);align-items:center}
.hero h1{font-size:clamp(3.4rem,5.4vw,5.8rem);line-height:.94;letter-spacing:-.045em;max-width:10.8ch;text-wrap:balance}
.hero .lead{max-width:62ch}
.portrait-placeholder{max-width:440px;width:100%;justify-self:end}
.section{padding-top:clamp(66px,7vw,104px);padding-bottom:clamp(66px,7vw,104px)}
.section + .section{margin-top:0}
.section h2{line-height:1.02;letter-spacing:-.025em;text-wrap:balance}
.split{gap:clamp(46px,6vw,86px);align-items:start}
.quote{font-size:clamp(2rem,3.25vw,3.65rem);line-height:1.08;letter-spacing:-.025em;max-width:15ch;margin-top:0}
.practice-grid{margin-top:24px}
.cards{margin-top:24px}
.cta-panel{margin-top:0}
@media (min-width:1200px) and (max-width:1550px){
  .wrap{width:min(1180px,calc(100% - 80px))}
  .hero-grid{grid-template-columns:minmax(0,1.22fr) minmax(310px,.78fr);gap:64px}
  .hero h1{font-size:clamp(3.8rem,5vw,4.9rem);max-width:11.6ch}
  .portrait-placeholder{max-width:390px}
  .quote{font-size:clamp(2.1rem,2.8vw,3rem);max-width:17ch}
  .section{padding-top:76px;padding-bottom:76px}
}
@media (max-width:1050px){
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(270px,.65fr);gap:42px}
  .hero h1{font-size:clamp(3rem,6vw,4.3rem);max-width:11.5ch}
  .quote{font-size:clamp(1.9rem,3.4vw,2.7rem)}
}
@media (max-width:800px){
  .hero{padding-top:46px;padding-bottom:58px}
  .hero-grid{grid-template-columns:1fr}
  .hero h1{font-size:clamp(2.75rem,13vw,4.2rem);max-width:none}
  .portrait-placeholder{justify-self:start;max-width:420px}
  .section{padding-top:58px;padding-bottom:58px}
  .split{gap:34px}
  .quote{font-size:clamp(1.85rem,8vw,2.65rem);max-width:none}
}

/* v3.2 — internal pages editorial grid + controlled desktop justification */

/* Internal pages: wider, centered and intentional composition */
body:not(.home) .page-shell,
body:not(.home) .entry-shell,
body:not(.home) main .wrap{
  width:min(1180px,calc(100% - 80px));
  margin-inline:auto;
}

body:not(.home) .page-content,
body:not(.home) .entry-content{
  width:100%;
  max-width:none;
}

body:not(.home) .page-content > h1:first-child,
body:not(.home) .entry-content > h1:first-child{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

body:not(.home) .page-content > p,
body:not(.home) .entry-content > p,
body:not(.home) .page-content > ul,
body:not(.home) .entry-content > ul{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

/* Headings open the composition; body remains readable */
body:not(.home) .page-content > h2,
body:not(.home) .entry-content > h2,
body:not(.home) .page-content > h3,
body:not(.home) .entry-content > h3{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

/* Editorial blocks and quotations get more horizontal presence */
body:not(.home) .quote,
body:not(.home) blockquote{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}

/* Two-column components use the available page width symmetrically */
body:not(.home) .split,
body:not(.home) .practice-grid,
body:not(.home) .cards,
body:not(.home) .grid-2,
body:not(.home) .two-col{
  width:100%;
  max-width:1080px;
  margin-left:auto;
  margin-right:auto;
}

/* Desktop editorial justification, with Italian hyphenation.
   Kept away from navigation, buttons, cards and short UI copy. */
@media (min-width: 1024px){
  body:not(.home) .page-content > p,
  body:not(.home) .entry-content > p{
    text-align:justify;
    text-justify:inter-word;
    hyphens:auto;
    -webkit-hyphens:auto;
    overflow-wrap:break-word;
  }
}

/* Tablet/mobile: ragged-right is more legible and avoids large word gaps */
@media (max-width:1023px){
  body:not(.home) .page-shell,
  body:not(.home) .entry-shell,
  body:not(.home) main .wrap{
    width:min(100% - 40px,760px);
  }
  body:not(.home) .page-content > p,
  body:not(.home) .entry-content > p{
    text-align:left;
    hyphens:none;
    -webkit-hyphens:none;
  }
}

/* More balanced rhythm on text-heavy pages */
body:not(.home) .page-content,
body:not(.home) .entry-content{
  padding-top:clamp(48px,5vw,76px);
  padding-bottom:clamp(64px,7vw,104px);
}
body:not(.home) .page-content p,
body:not(.home) .entry-content p{
  line-height:1.72;
}
body:not(.home) .page-content h2,
body:not(.home) .entry-content h2{
  margin-top:clamp(42px,5vw,68px);
}

/* v3.3 — professional photography */
.portrait-photo{margin:0;max-width:440px;width:100%;justify-self:end;aspect-ratio:4/5;border-radius:120px 120px 24px 24px;overflow:hidden;border:1px solid var(--line);background:#e7ece8}
.portrait-photo img{width:100%;height:100%;object-fit:cover;object-position:center 36%;display:block}
.about-layout{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:clamp(42px,6vw,82px);align-items:start}
.about-photo{margin:0;position:sticky;top:110px;border-radius:24px;overflow:hidden;border:1px solid var(--line);background:#e7ece8}
.about-photo img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center top}
.about-copy{min-width:0}
@media(max-width:800px){.portrait-photo{justify-self:start;max-width:420px}.about-layout{grid-template-columns:1fr}.about-photo{position:static;max-width:480px}}

/* v4.3 — Hybrid advertising: single, discreet service contact link */
.service-contact-link{margin-top:32px!important;padding-top:18px;border-top:1px solid var(--line);font-size:.96rem}
.service-contact-link a{font-weight:700;text-decoration:none}
.service-contact-link a:hover{text-decoration:underline}

/* Consent UI: equal prominence for acceptance and refusal */
.gci-cookie-panel{position:fixed;z-index:99999;bottom:1rem;left:1rem;right:1rem;max-width:650px;margin:auto;background:#fff;color:#222;padding:1.2rem;border:2px solid #315e55;box-shadow:0 4px 22px #0004;border-radius:12px;font-size:.95rem}
.gci-cookie-panel[hidden],.gci-cookie-reopen[hidden],#gci-cookie-custom[hidden]{display:none!important}
.gci-cookie-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.gci-cookie-actions button,#gci-cookie-custom button,.gci-cookie-reopen{cursor:pointer;border:1px solid #315e55;border-radius:6px;padding:.55rem .8rem;background:#fff;color:#20473e;font:inherit}
.gci-cookie-reopen{position:fixed;z-index:9999;bottom:.5rem;left:.5rem;background:#fff;font-size:.8rem}

/* v4.3.9 — archivio e articoli */
.editorial-section .lead{max-width:780px}
.editorial-grid{margin-top:32px;gap:28px}
.editorial-card{padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}
.editorial-card h2,.editorial-card h3{margin:12px 0;font-size:clamp(1.3rem,2vw,1.7rem);line-height:1.25}
.editorial-card a{text-decoration:none}
.editorial-card p{line-height:1.65}
.editorial-thumb{display:block;aspect-ratio:16/10;overflow:hidden;border-radius:10px;margin-bottom:18px}
.editorial-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.article-heading{max-width:900px}.article-heading h1{font-size:clamp(2.3rem,4.5vw,4.2rem);line-height:1.13}
.article-shell{max-width:900px;padding:44px 0 90px}.article-cover{margin:0 0 35px}.article-cover img{width:100%;height:auto;border-radius:14px}
.article-body{font-size:1.08rem;line-height:1.85}.article-body p{margin-bottom:1.25em}.article-body img{max-width:100%;height:auto}.article-body blockquote{border-left:3px solid #315e55;padding-left:20px;margin-left:0}
.article-return{border-top:1px solid var(--line);margin-top:45px;padding-top:24px}
@media(max-width:760px){.editorial-grid{grid-template-columns:1fr}.article-shell{width:min(100% - 40px,900px)}}
