/*
 * Photografando 1.11.0 — Premium Fine Art System
 * Livello finale non distruttivo: uniforma tipografia, spazi, header e componenti.
 */
:root{
  --pf-charcoal:#111315;
  --pf-ivory:#f6f4ef;
  --pf-white:#fffefa;
  --pf-stone:#a6a6a2;
  --pf-muted:#626762;
  --pf-gold:#c5a574;
  --pf-line:rgba(17,19,21,.16);
  --pf-serif:"Iowan Old Style","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  --pf-sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --pf-container:1460px;
  --pf-reading:780px;
  --pf-s1:.5rem;
  --pf-s2:1rem;
  --pf-s3:1.5rem;
  --pf-s4:clamp(2rem,4vw,3.5rem);
  --pf-s5:clamp(3.5rem,7vw,7rem);
  --pf-s6:clamp(5rem,10vw,10rem);
}

html{scroll-padding-top:108px}
body{background:var(--pf-ivory)!important;color:var(--pf-charcoal)!important;font-family:var(--pf-sans)!important;font-size:clamp(1rem,.2vw + .96rem,1.125rem)!important;line-height:1.72!important}
body,input,textarea,select,button{font-family:var(--pf-sans)}
h1,h2,h3,h4,h5,h6,.pe-hero h1,.pe-split-hero h1,.exact-split-copy h1,.exact-split-copy h2{font-family:var(--pf-serif)!important;text-wrap:balance}
p,li{max-width:72ch}
img{max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--pf-gold)!important;outline-offset:4px!important}
::selection{background:var(--pf-gold);color:var(--pf-charcoal)}

/* Contenitori e ritmo verticale condivisi */
.pe-wrap,.header-inner,.footer-inner,.standard-content,.single-article,.diary-page,.bio-layout,.pe-contact .pe-contact-wrap{
  width:min(calc(100% - clamp(2rem,6vw,6rem)),var(--pf-container))!important;
  margin-inline:auto!important;
}
.pe-intro,.pe-home-gallery,.pe-book-quotes,.pe-home-diary,.pe-story,.pe-purpose,.pe-author-content,.pe-book-story,.pe-book-audience,.pe-book-events,.pe-book-excerpt,.pe-contact-social,.pe-contact-main{
  padding-block:var(--pf-s5)!important;
}
.pe-intro+.pe-home-gallery,.pe-home-gallery+.pe-paths,.pe-paths+.pe-book-quotes,.pe-book-quotes+.pe-home-diary{margin-top:0!important}
.pe-kicker,.eyebrow,.exact-kicker{font-family:var(--pf-sans)!important;font-size:.76rem!important;font-weight:750!important;letter-spacing:.14em!important;line-height:1.3!important}
.pe-lead,.exact-subtitle{max-width:68ch;line-height:1.55!important}
.entry-content,.pe-prose,.standard-content{font-size:clamp(1.06rem,.3vw + 1rem,1.22rem)!important;line-height:1.82!important}
.entry-content>*+*,.pe-prose>*+*{margin-top:1.35em}
.entry-content h2,.pe-prose h2{margin-top:2.2em}

/* Header leggibile e proporzionato */
.site-header,.home .site-header{
  min-height:100px!important;
  background:rgba(246,244,239,.97)!important;
  border-bottom:1px solid var(--pf-line)!important;
  box-shadow:none!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
.header-inner,.home .header-inner{
  min-height:100px!important;
  grid-template-columns:minmax(300px,auto) minmax(0,1fr) auto!important;
  gap:clamp(1.5rem,2.5vw,3rem)!important;
}
.brand,.home .brand{gap:.9rem!important}
.brand-logo,.brand-default-logo,.home .brand-logo,.home .brand-default-logo{width:56px!important;height:56px!important}
.brand strong,.home .brand strong{font-family:var(--pf-serif)!important;font-size:clamp(1.75rem,1.55vw,2.15rem)!important;font-style:italic!important;font-weight:500!important;letter-spacing:-.035em!important;line-height:1!important;color:var(--pf-charcoal)!important}
.brand small,.home .brand small{margin-top:.3rem!important;font-family:var(--pf-sans)!important;font-size:.75rem!important;font-weight:500!important;letter-spacing:.015em!important;text-transform:none!important;color:#555b57!important}
.desktop-nav,.home .desktop-nav{justify-content:center!important;gap:clamp(.35rem,.7vw,.8rem)!important}
.desktop-nav>.menu,.home .desktop-nav>.menu{gap:clamp(.25rem,.55vw,.7rem)!important}
.desktop-nav>.menu a,.home .desktop-nav>.menu a{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:52px!important;
  padding:.75rem clamp(.5rem,.7vw,.85rem)!important;
  color:var(--pf-charcoal)!important;
  font-family:var(--pf-sans)!important;
  font-size:clamp(1.05rem,.82vw + .15rem,1.23rem)!important;
  font-weight:520!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.desktop-nav>.menu a::after{content:"";position:absolute;left:.55rem;right:.55rem;bottom:.2rem;height:2px;background:var(--pf-gold);transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
.desktop-nav>.menu a:hover::after,.desktop-nav>.menu a[aria-current="page"]::after,.desktop-nav>.menu .current-menu-item>a::after{transform:scaleX(1)}
.support-link,.home .support-link{min-height:52px!important;padding:.75rem 1.25rem!important;border:1px solid var(--pf-gold)!important;background:transparent!important;color:var(--pf-charcoal)!important;font-family:var(--pf-sans)!important;font-size:1.05rem!important;font-weight:650!important;letter-spacing:0!important;text-transform:none!important;transition:background .2s ease,color .2s ease!important}
.support-link:hover,.home .support-link:hover{background:var(--pf-charcoal)!important;border-color:var(--pf-charcoal)!important;color:var(--pf-white)!important}
.header-motto{display:none!important}

/* Hero cinematografica, stabile e leggibile */
.pe-hero{min-height:calc(100svh - 100px)!important;display:grid!important;align-items:end!important;background:var(--pf-charcoal)!important}
.pe-hero__media{transform:scale(1.01);filter:none!important}
.pe-hero__shade{background:linear-gradient(90deg,rgba(9,11,12,.84) 0%,rgba(9,11,12,.58) 44%,rgba(9,11,12,.14) 74%,rgba(9,11,12,.28) 100%)!important}
.pe-hero__content{padding-block:clamp(5rem,11vh,9rem)!important}
.pe-hero h1{max-width:12ch!important;margin:.15em 0!important;font-size:clamp(4rem,8vw,8.4rem)!important;font-weight:500!important;line-height:.88!important;letter-spacing:-.055em!important}
.pe-hero__content>p:not(.pe-kicker){max-width:680px!important;font-size:clamp(1.12rem,1.5vw,1.42rem)!important;line-height:1.55!important}
.pe-actions{gap:1rem 1.5rem!important;margin-top:2rem!important}

/* Pulsanti e collegamenti */
.pe-button,.exact-button,.btn,.button,.pe-book-quotes__cta{min-height:50px!important;padding:.78rem 1.15rem!important;border-radius:0!important;font-family:var(--pf-sans)!important;font-weight:650!important;letter-spacing:.01em!important}
.pe-button--light{background:var(--pf-white)!important;color:var(--pf-charcoal)!important}
.pe-text-link{font-weight:650;text-underline-offset:5px}

/* Homepage: griglie e sezioni coerenti */
.pe-intro{max-width:var(--pf-container)!important}
.pe-intro h2,.pe-home-gallery__heading h2,.pe-book-quotes h2,.pe-home-diary h2{font-weight:500!important;letter-spacing:-.045em!important;line-height:1!important}
.pe-intro h2{max-width:15ch;font-size:clamp(2.8rem,6vw,6rem)!important}
.pe-intro .pe-lead{font-size:clamp(1.25rem,2vw,1.7rem)!important}
.pe-home-gallery{background:#eceae4!important}
.pe-home-gallery__heading{margin-bottom:var(--pf-s4)!important}
.pe-home-gallery__grid{gap:clamp(1.2rem,2vw,2rem)!important}
.pe-home-gallery__card{background:var(--pf-white)!important;box-shadow:0 14px 36px rgba(17,19,21,.07)!important}
.pe-home-gallery__image{aspect-ratio:4/3!important}
.pe-home-gallery__copy{padding:1.35rem 1.4rem 1.55rem!important}
.pe-paths{padding-block:var(--pf-s4)!important;border-block:1px solid var(--pf-line)!important}
.pe-paths a{min-height:120px;padding:1.5rem!important}
.pe-book-quotes{background:var(--pf-charcoal)!important;color:var(--pf-white)!important}
.pe-book-quotes__grid{gap:clamp(1rem,2vw,2rem)!important}
.pe-book-quotes blockquote{border-color:rgba(197,165,116,.45)!important}
.pe-home-diary{gap:clamp(2rem,6vw,6rem)!important;align-items:center!important}

/* Percorsi tematici del diario */
.pe-blog-chapters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;margin-block:var(--pf-s4)!important;padding:1px;background:var(--pf-line)}
.pe-blog-chapters a{display:grid;align-content:start;min-height:132px;padding:1.15rem;background:var(--pf-white);color:var(--pf-charcoal);text-decoration:none}
.pe-blog-chapters a:hover,.pe-blog-chapters a.is-current{background:var(--pf-charcoal);color:var(--pf-white)}
.pe-blog-chapters strong{margin-top:0;font-family:var(--pf-serif);font-size:clamp(1.15rem,1.5vw,1.5rem);font-weight:550;line-height:1.05}
.pe-blog-chapters small{margin-top:.5rem;font-size:.82rem;line-height:1.35}

/* Pagine interne e lettura */
.pe-split-hero,.exact-split-hero{min-height:clamp(620px,78vh,880px)!important;background:var(--pf-charcoal)!important}
.pe-split-hero__copy,.exact-split-copy{padding:var(--pf-s5)!important}
.pe-split-hero h1,.exact-split-copy h1{font-size:clamp(3.5rem,7vw,7.4rem)!important;font-weight:500!important;line-height:.9!important;letter-spacing:-.05em!important}
.single-article,.standard-content,.pa-random-reading{padding-block:var(--pf-s5)!important}
.single-article .entry-content,.standard-content .entry-content,.pa-random-reading .entry-content{max-width:var(--pf-reading)!important;margin-inline:auto!important}
.single-article h1{font-size:clamp(3rem,6vw,6.2rem)!important;line-height:.96!important}
.pe-points{gap:clamp(1.5rem,3vw,3rem)!important}
.pe-points article{padding-block:1.5rem!important;border-top:1px solid var(--pf-line)!important}
.pe-quote{margin-block:var(--pf-s4)!important;padding:var(--pf-s4) 0!important;border-block:1px solid var(--pf-line)!important}

/* Moduli e footer */
input[type="text"],input[type="email"],input[type="url"],input[type="search"],textarea,select{min-height:50px!important;border:1px solid rgba(17,19,21,.3)!important;border-radius:0!important;background:var(--pf-white)!important}
textarea{min-height:170px!important}
.site-footer{background:var(--pf-charcoal)!important;color:var(--pf-white)!important}
.footer-grid{gap:var(--pf-s4)!important;padding-block:var(--pf-s5)!important}
.footer-grid a{line-height:1.7}

/* Tablet: il menu mobile entra prima, evitando compressioni */
@media(max-width:1199px){
  .site-header,.home .site-header{min-height:76px!important}
  .header-inner,.home .header-inner{min-height:76px!important;grid-template-columns:minmax(0,1fr) auto!important;width:min(calc(100% - 1.5rem),var(--pf-container))!important}
  .desktop-nav,.support-link{display:none!important}
  .mobile-menu-button,.home .mobile-menu-button{display:inline-flex!important;min-width:88px!important;min-height:48px!important;padding:.7rem 1rem!important;border:1px solid var(--pf-charcoal)!important;border-radius:0!important;background:var(--pf-charcoal)!important;color:var(--pf-white)!important;font-family:var(--pf-sans)!important;font-size:1rem!important}
  .mobile-panel.is-open{display:grid!important;position:absolute!important;z-index:1001!important;top:calc(100% + 1px)!important;left:0!important;right:0!important;padding:1rem!important;background:var(--pf-ivory)!important;border-bottom:1px solid var(--pf-line)!important;box-shadow:0 22px 40px rgba(17,19,21,.14)!important}
  .mobile-panel .menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.5rem!important}
  .mobile-panel a{min-height:50px!important;padding:.8rem 1rem!important;font-family:var(--pf-sans)!important;font-size:1.05rem!important}
  .pe-hero{min-height:calc(100svh - 76px)!important}
}

@media(max-width:760px){
  :root{--pf-s5:clamp(3.5rem,14vw,5.5rem)}
  html{scroll-padding-top:78px}
  .brand-logo,.brand-default-logo,.home .brand-logo,.home .brand-default-logo{width:44px!important;height:44px!important}
  .brand strong,.home .brand strong{font-size:clamp(1.25rem,6vw,1.55rem)!important}
  .brand small,.home .brand small{display:none!important}
  .mobile-panel .menu{grid-template-columns:1fr!important}
  .pe-blog-chapters{grid-template-columns:1fr 1fr!important}
  .pe-hero{min-height:max(650px,calc(100svh - 76px))!important}
  .pe-hero__shade{background:linear-gradient(180deg,rgba(9,11,12,.24),rgba(9,11,12,.82) 68%,rgba(9,11,12,.92))!important}
  .pe-hero__content{padding-block:4.5rem!important}
  .pe-hero h1{font-size:clamp(3.5rem,17vw,5.7rem)!important}
  .pe-home-gallery__grid,.pe-book-quotes__grid,.pe-home-diary,.pe-points{grid-template-columns:1fr!important}
  .pe-paths{grid-template-columns:1fr 1fr!important}
  .pe-split-hero,.exact-split-hero{min-height:0!important}
  .pe-split-hero__media,.exact-split-media{min-height:42vh!important}
  .pe-split-hero__copy,.exact-split-copy{padding:3rem 1.25rem 3.5rem!important}
}

@media(max-width:480px){.pe-paths,.pe-blog-chapters{grid-template-columns:1fr!important}.pe-blog-chapters a{min-height:0}}

@media(prefers-reduced-motion:no-preference){
  .pe-hero__media{animation:pf-hero-in 1.2s ease-out both}
  .pe-hero__content>*{animation:pf-copy-in .75s ease-out both}
  .pe-hero__content>*:nth-child(2){animation-delay:.08s}.pe-hero__content>*:nth-child(3){animation-delay:.16s}.pe-hero__content>*:nth-child(4){animation-delay:.24s}
  .pe-home-gallery__card img{transition:transform .6s cubic-bezier(.2,.7,.2,1)!important}
  .pe-home-gallery__card:hover img{transform:scale(1.025)!important}
}
@keyframes pf-hero-in{from{opacity:.72;transform:scale(1.035)}to{opacity:1;transform:scale(1.01)}}
@keyframes pf-copy-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Integrazione Galleria Atlante, mantenuta nel foglio versionato e non inline. */
body.post-type-archive-mostra_virtuale .exact-split-hero,
body.post-type-archive-mostra_virtuale .exact-story-list,
body.page .photo-home--editorial .exact-split-hero,
body.page .photo-home--editorial .exact-story-list{background:#28485f!important}
body.post-type-archive-mostra_virtuale .exact-split-copy,
body.page .photo-home--editorial .exact-split-copy{background:linear-gradient(90deg,rgba(63,111,140,.16),rgba(40,72,95,.92) 34%,rgba(32,59,80,.99) 100%)!important}
body.post-type-archive-mostra_virtuale .exact-split-media::after,
body.page .photo-home--editorial .exact-split-media::after{background:linear-gradient(90deg,rgba(63,111,140,.04) 0%,rgba(63,111,140,.18) 42%,rgba(40,72,95,.74) 68%,rgba(32,59,80,.98) 100%),linear-gradient(180deg,rgba(86,140,171,.02),rgba(32,59,80,.24))!important}
body.post-type-archive-mostra_virtuale .exact-split-reverse .exact-split-copy,
body.post-type-archive-mostra_virtuale .exact-story-row:nth-child(even) .exact-split-copy,
body.page .photo-home--editorial .exact-split-reverse .exact-split-copy,
body.page .photo-home--editorial .exact-story-row:nth-child(even) .exact-split-copy{background:linear-gradient(90deg,rgba(32,59,80,.99) 0%,rgba(40,72,95,.92) 66%,rgba(63,111,140,.16) 100%)!important}
body.post-type-archive-mostra_virtuale .exact-button:hover,
body.page .photo-home--editorial .exact-button:hover{color:#28485f!important}

