/* Progetto 39 — editorial home and journal */
.p39-front-page{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:0!important;padding:0!important}
.p39-front-page .wp-block-shortcode,.p39-home{width:100%;max-width:none!important;margin:0!important;padding:0!important}
.p39-home{--p39-ink:#25231f;--p39-paper:#f5f2ee;--p39-line:#d4cec5;--p39-accent:#8a6f4e;color:var(--p39-ink);background:var(--p39-paper)}
.p39-home *{box-sizing:border-box}
.p39-wrap{width:min(100% - clamp(2rem,7vw,8rem),1440px);margin-inline:auto}
.p39-kicker{margin:0 0 1.5rem;color:#716b63;font:600 .68rem/1.3 var(--wp--preset--font-family--inter);letter-spacing:.22em;text-transform:uppercase}
.p39-kicker--light{color:#f5f2ee}
.p39-text-link{display:inline-flex;align-items:center;justify-content:space-between;gap:2rem;width:max-content;max-width:100%;padding:0 0 .7rem;border-bottom:1px solid currentColor;color:var(--p39-ink);font-size:.72rem;font-weight:600;line-height:1.3;letter-spacing:.12em;text-decoration:none!important;text-transform:uppercase;transition:gap .25s ease,color .25s ease}
.p39-text-link:hover,.p39-text-link:focus-visible{gap:2.5rem;color:var(--p39-accent)}
.p39-text-link--light,.p39-text-link--light:hover,.p39-text-link--light:focus-visible{color:#fff}
.p39-text-link span{font-size:1.05rem;font-weight:400;line-height:1}
.p39-hero{position:relative;height:min(850px,max(620px,calc(100svh - var(--furniture-header-offset,88px))));min-height:620px;overflow:hidden;background:#302c28;color:#fff}
.p39-hero__slide{position:absolute;inset:0;visibility:hidden;opacity:0;transition:opacity .9s ease,visibility .9s ease}
.p39-hero__slide.is-active{z-index:1;visibility:visible;opacity:1}
.p39-hero__image{width:100%;height:100%;object-fit:cover;object-position:center}
.p39-hero__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,19,18,.65),rgba(20,19,18,.22) 48%,rgba(20,19,18,.06) 100%),linear-gradient(0deg,rgba(20,19,18,.33),transparent 45%)}
.p39-hero__content{position:absolute;left:max(clamp(1rem,7vw,8rem),calc((100vw - 1440px)/2));top:50%;transform:translateY(-44%);width:min(620px,calc(100% - 3rem));padding-bottom:3rem}
.p39-hero__content h1,.p39-hero__content h2{max-width:11ch;margin:0 0 1.35rem;color:#fff;font-family:var(--wp--preset--font-family--display);font-size:clamp(3rem,6vw,5.25rem);font-weight:500;line-height:1.05;letter-spacing:-.025em}
.p39-hero__description{max-width:35rem;margin:0 0 2rem;color:rgba(255,255,255,.92);font-size:clamp(.98rem,1.3vw,1.12rem);line-height:1.65}
.p39-hero__controls{position:absolute;z-index:2;right:max(clamp(1rem,7vw,8rem),calc((100vw - 1440px)/2));bottom:clamp(1.5rem,4vw,3rem);left:max(clamp(1rem,7vw,8rem),calc((100vw - 1440px)/2));display:flex;align-items:center;justify-content:space-between;color:#fff}
.p39-hero__count{display:flex;align-items:center;gap:1rem;font-size:.78rem;letter-spacing:.1em}
.p39-hero__rule{display:block;width:clamp(3rem,6vw,6rem);height:1px;background:rgba(255,255,255,.7)}
.p39-hero__buttons{display:flex;gap:.6rem}
.p39-hero__buttons button{display:grid;place-items:center;width:3rem;height:3rem;border:1px solid rgba(255,255,255,.75);border-radius:50%;background:transparent;color:#fff;font-size:1.25rem;cursor:pointer;transition:background .2s ease,color .2s ease}
.p39-hero__buttons button:hover,.p39-hero__buttons button:focus-visible{background:#fff;color:#25231f}
.p39-intro{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:clamp(3rem,9vw,10rem);align-items:end;padding-block:clamp(6rem,11vw,11rem)}
.p39-intro h2,.p39-section-head h2,.p39-statement h2{margin:0;font-family:var(--wp--preset--font-family--inter);font-weight:500;letter-spacing:-.025em}
.p39-intro h2{max-width:13ch;font-size:clamp(3.5rem,6vw,6.5rem);line-height:.91}
.p39-intro__aside{padding-bottom:.35rem}
.p39-intro__aside p{max-width:28rem;margin:0 0 2.2rem;color:#625d56;font-size:clamp(1rem,1.25vw,1.14rem);line-height:1.75}
.p39-collections{padding-bottom:clamp(6rem,10vw,11rem)}
.p39-section-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:2.5rem}
.p39-section-head .p39-kicker{margin-bottom:.9rem}
.p39-section-head h2{font-size:clamp(3rem,4.5vw,5rem);line-height:.95}
.p39-section-head>p{max-width:17rem;margin:0 0 .25rem;color:#716b63;line-height:1.6}
.p39-collections__grid,.p39-news__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.9rem,1.7vw,1.75rem)}
.p39-collection{display:block;color:var(--p39-ink)!important;text-decoration:none!important}
.p39-collection__media{aspect-ratio:4/5;overflow:hidden;background:#d8d1c8}
.p39-collection__media img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.p39-collection:hover img,.p39-collection:focus-visible img{transform:scale(1.035)}
.p39-collection__meta{display:flex;justify-content:space-between;align-items:center;margin-top:1.1rem;padding-top:.9rem;border-top:1px solid var(--p39-line);color:#736e67;font-size:.67rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.p39-collection__meta span:last-child{color:var(--p39-ink);font-size:1.15rem;line-height:1}
.p39-collection h3{margin:.7rem 0 .35rem;font-family:var(--wp--preset--font-family--inter);font-size:clamp(2rem,2.5vw,2.8rem);font-weight:500;line-height:1.08;letter-spacing:-.025em}
.p39-collection p{margin:0;color:#716b63;font-size:.91rem;line-height:1.6}
.p39-statement{padding-block:clamp(6rem,10vw,10rem);background:#2d2b27;color:#f5f2ee}
.p39-statement h2{max-width:16ch;color:inherit;font-size:clamp(3.8rem,7vw,8rem);line-height:.88}
.p39-statement .p39-kicker{color:#c8bda9}
.p39-statement p:last-child{margin:2.5rem 0 0;color:#ddd7cd;font-size:1.05rem}
.p39-news{padding-block:clamp(6rem,10vw,10rem)}
.p39-news-card{min-width:0}
.p39-news-card__media{display:block;aspect-ratio:4/3;overflow:hidden;background:#e4ded5}
.p39-news-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.p39-news-card:hover img{transform:scale(1.035)}
.p39-news-card__placeholder{display:grid;place-items:center;width:100%;height:100%;color:#aaa095;font-family:var(--wp--preset--font-family--inter);font-size:2rem}
.p39-news-card__body{padding-top:1.25rem}
.p39-news-card time{color:#777168;font-size:.7rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.p39-news-card h3{min-height:2.25em;margin:.7rem 0 1.3rem;font-family:var(--wp--preset--font-family--inter);font-size:clamp(1.75rem,2.3vw,2.4rem);font-weight:500;line-height:1.12;letter-spacing:-.025em}
.p39-news-card h3 a{color:var(--p39-ink);text-decoration:none}
.p39-news-card h3 a:hover{color:var(--p39-accent)}
.p39-news__empty{padding:3rem 0;border-top:1px solid var(--p39-line);color:#716b63}

/* Journal archive: open grid, prominent lead story, precise editorial rhythm. */
.wp-site-blocks>main.news-index{padding-bottom:clamp(5rem,9vw,9rem)!important}
.news-index__header{margin-top:clamp(4rem,7vw,7rem);margin-bottom:clamp(3rem,5vw,5rem);padding-bottom:clamp(2rem,3vw,3rem);border-bottom:1px solid #d4cec5}
.news-index__header .wp-block-heading,.news-index__header .wp-block-query-title{max-width:none;font-size:clamp(4rem,9vw,9rem);font-weight:500;line-height:.84;letter-spacing:-.025em}
.news-index__header p:not(.eyebrow){max-width:35rem;margin-top:1.65rem;color:#625d56!important;font-size:clamp(1rem,1.3vw,1.15rem)!important}
.news-index__grid{gap:clamp(2.5rem,4vw,4.5rem) clamp(1rem,2vw,2rem)!important}
.news-card{transform:none!important}
.news-card .wp-block-post-featured-image,.news-card .wp-block-post-featured-image a{margin-bottom:1.35rem;border-radius:0}
.news-card .wp-block-post-featured-image img{aspect-ratio:4/3!important;min-height:0;object-fit:cover}
.news-card .wp-block-post-date{margin-bottom:.85rem!important;font-size:.67rem!important;letter-spacing:.17em}
.news-card .wp-block-post-title{font-size:clamp(1.8rem,2.25vw,2.5rem)!important;font-weight:500;line-height:1.03}
.news-card .wp-block-post-excerpt{max-width:36rem;margin-top:.8rem;color:#625d56;font-size:.9rem!important;line-height:1.7}
.news-card .wp-block-post-excerpt__more-link{border-bottom:1px solid currentColor;padding-bottom:.25rem;font-size:.7rem;font-weight:600;letter-spacing:.12em;text-decoration:none!important;text-transform:uppercase}
.news-index__grid>.wp-block-post:first-child{grid-column:span 2}
.news-index__grid>.wp-block-post:first-child .wp-block-post-featured-image img{aspect-ratio:16/9!important}
.news-index__grid>.wp-block-post:first-child .wp-block-post-title{max-width:22ch;font-size:clamp(2.3rem,3.5vw,4rem)!important}
.news-index .wp-block-query-pagination{margin-top:clamp(4rem,7vw,7rem)!important;padding-top:1.5rem;border-top:1px solid #d4cec5}

/* Article page. */
.news-article{padding-bottom:clamp(5rem,9vw,9rem)!important}
.news-article__header{max-width:58rem;margin-top:clamp(4rem,7vw,7rem);margin-bottom:clamp(2.5rem,5vw,5rem)}
.news-article__header .wp-block-post-date{margin:0 0 1.3rem;font-size:.7rem;letter-spacing:.18em}
.news-article__header .wp-block-post-title{font-size:clamp(3.6rem,7.5vw,7.5rem);font-weight:500;line-height:.88;letter-spacing:-.025em}
.news-article__featured{margin:0 0 clamp(3rem,5vw,5rem)}
.news-article__featured img{width:100%;max-height:46rem;aspect-ratio:16/9;object-fit:cover}
.news-article .wp-block-post-content>p{max-width:48rem;font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.8}
.news-article .wp-block-post-content>h2{max-width:48rem;margin-top:3.5rem;font-size:clamp(2.3rem,3.5vw,3.5rem)}

@media(max-width:900px){.p39-intro{grid-template-columns:1fr;gap:2rem}.p39-collections__grid,.p39-news__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.p39-collection:last-child,.p39-news-card:last-child{grid-column:1/-1}.p39-collection:last-child .p39-collection__media{aspect-ratio:16/8}.news-index__grid>.wp-block-post:first-child{grid-column:auto}.news-index__grid>.wp-block-post:first-child .wp-block-post-title{font-size:clamp(1.8rem,2.25vw,2.5rem)!important}}
@media(max-width:640px){.p39-hero{height:calc(100svh - var(--furniture-header-offset,62px));min-height:570px;max-height:760px}.p39-hero__shade{background:linear-gradient(0deg,rgba(20,19,18,.78),rgba(20,19,18,.1) 78%)}.p39-hero__content{top:auto;bottom:6.6rem;left:1.5rem;transform:none;width:calc(100% - 3rem);padding:0}.p39-hero__content h1,.p39-hero__content h2{font-size:clamp(3.7rem,13vw,5.5rem)}.p39-hero__description{font-size:.92rem}.p39-hero__controls{left:1.5rem;right:1.5rem;bottom:1.3rem}.p39-hero__buttons button{width:2.75rem;height:2.75rem}.p39-intro,.p39-news{padding-block:5rem}.p39-intro h2{font-size:clamp(3.5rem,12vw,5rem)}.p39-collections{padding-bottom:5rem}.p39-section-head{align-items:start;flex-direction:column;margin-bottom:2rem}.p39-section-head h2{font-size:clamp(3.3rem,11vw,4.7rem)}.p39-collections__grid,.p39-news__grid{grid-template-columns:1fr;gap:3rem}.p39-collection:last-child,.p39-news-card:last-child{grid-column:auto}.p39-collection__media,.p39-collection:last-child .p39-collection__media{aspect-ratio:4/4.5}.p39-statement{padding-block:6rem}.p39-statement h2{font-size:clamp(3.8rem,12vw,5.5rem)}.p39-news-card h3{min-height:0}.news-index__header{margin-top:3rem}.news-index__header .wp-block-heading,.news-index__header .wp-block-query-title{font-size:clamp(4rem,17vw,6rem)}.news-index__grid>.wp-block-post:first-child .wp-block-post-featured-image img{aspect-ratio:4/3!important}.news-article__header{margin-top:3rem}.news-article__header .wp-block-post-title{font-size:clamp(3.6rem,12vw,5.5rem)}}
@media(prefers-reduced-motion:reduce){.p39-hero__slide,.p39-collection__media img,.p39-news-card__media img{transition:none}}

/* Keep the news presentation restrained when this stylesheet is present. */
.news-index:not(.arredamento-index):not(.arredamento-category) .news-index__grid>.wp-block-post:first-child{grid-column:auto}
.news-index:not(.arredamento-index):not(.arredamento-category) .news-index__grid>.wp-block-post:first-child .wp-block-post-featured-image img{aspect-ratio:16/10!important}
.news-index:not(.arredamento-index):not(.arredamento-category) .news-index__grid>.wp-block-post:first-child .wp-block-post-title{max-width:none;font-family:var(--wp--preset--font-family--inter);font-size:clamp(1.25rem,1.5vw,1.5rem)!important;font-weight:600;line-height:1.25}
.news-article__header{max-width:54rem;margin-top:clamp(2rem,4vw,3.5rem);margin-bottom:2rem}
.news-article__header .wp-block-post-title{font-family:var(--wp--preset--font-family--inter);font-size:clamp(2rem,3.4vw,3rem);font-weight:600;line-height:1.15;letter-spacing:-.03em}
.news-article__header .wp-block-post-date{margin:1.25rem 0 0;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.news-article .wp-block-post-content>h2{font-family:var(--wp--preset--font-family--inter);font-size:clamp(1.6rem,2.4vw,2rem);font-weight:600;line-height:1.25}
.news-index:not(.arredamento-index):not(.arredamento-category) .news-index__header{border-bottom:0}
.news-index:not(.arredamento-index):not(.arredamento-category) .wp-block-query-pagination{border-top:0}
.news-index:not(.arredamento-index):not(.arredamento-category) .news-card .wp-block-post-excerpt__more-link{border-bottom:0}
.news-article__header,.p39-news__empty{border:0}


/* Intestazioni interne: scala e spaziatura coerenti tra pagine e archivi. */
.wp-site-blocks > main.news-index .news-index__header,
.wp-site-blocks > main.news-article .news-article__header {
  margin-top: clamp(2rem, 3.4vw, 3rem) !important;
  margin-bottom: clamp(2rem, 3vw, 2.75rem) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.news-index__header > .eyebrow,
.p39-page__hero > .p39-page__eyebrow {
  display: none;
}

.p39-page {
  padding-top: clamp(1.5rem, 2.2vw, 2rem);
  padding-inline: 0;
}

.p39-page__hero {
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

main.news-index .news-index__header :is(h1.wp-block-heading, h1.wp-block-query-title),
main.news-article .news-article__header h1.wp-block-post-title,
.p39-page__hero h1,
.wp-site-blocks > main.wp-block-group > h1.wp-block-post-title,
.wp-block-post-content > h1.wp-block-heading {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  color: var(--wp--preset--color--contrast, #1a1a1a);
  font-family: var(--wp--preset--font-family--inter), Arial, sans-serif !important;
  font-size: clamp(2.25rem, 3.2vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  white-space: normal !important;
  text-wrap: balance;
}

.p39-page__lead,
.news-index__header p:not(.eyebrow),
.news-index__header .wp-block-term-description {
  max-width: 48rem;
  margin-top: 1rem;
  color: var(--wp--preset--color--muted, #6b6660);
  font-size: 1.05rem;
  line-height: 1.6;
}
