/*
Theme Name: Angelo Piazza Editorial v3
Description: Child theme Astra editoriale per gli interventi di Angelo Piazza.
Author: Angelo Piazza
Template: astra
Version: 1.1.0
Text Domain: angelo-piazza-editorial
*/


    @font-face {
      font-family: "Newsreader";
      src: url("newsreader-latin.woff2") format("woff2");
      font-style: normal;
      font-weight: 400 500;
      font-display: swap;
    }
    @font-face {
      font-family: "DM Sans";
      src: url("dm-sans-latin.woff2") format("woff2");
      font-style: normal;
      font-weight: 400 700;
      font-display: swap;
    }
    :root {
      color-scheme: light;
      --paper: #f2f5f7;
      --white: #ffffff;
      --ink: #182335;
      --muted: #586678;
      --blue: #17477f;
      --blue-deep: #0b2344;
      --red: #d73335;
      --gold: #e6b43b;
      --line: rgba(24, 35, 53, .16);
      --serif: "Newsreader", Georgia, serif;
      --sans: "DM Sans", Arial, sans-serif;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 100px; }
    body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
    a { color: inherit; }
    button, input { font: inherit; }
    ::selection { color: var(--white); background: var(--blue); }
    :focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
    .top-edge { height: 5px; background: linear-gradient(90deg, var(--blue) 0 76%, var(--red) 76% 89%, var(--gold) 89%); }
    .reading-progress { position: fixed; z-index: 30; top: 5px; left: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--red); pointer-events: none; }
    @supports (animation-timeline: scroll()) {
      .reading-progress { animation: read-through linear both; animation-timeline: scroll(root block); }
    }
    @keyframes read-through { to { transform: scaleX(1); } }
    .wrap { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
    .site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; border-bottom: 1px solid var(--line); background: var(--paper); }
    .identity { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
    .identity-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); font: 500 17px/1 var(--serif); letter-spacing: -.05em; }
    .identity-copy { display: grid; gap: 2px; }
    .identity-name { font: 500 20px/1 var(--serif); letter-spacing: -.025em; }
    .identity-subtitle { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
    .desktop-nav { display: flex; align-items: center; gap: 33px; }
    .desktop-nav a, .mobile-panel a { color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
    .desktop-nav a:hover, .mobile-panel a:hover { color: var(--red); }
    .social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 2px; }
    .social-link svg { width: 15px; height: 15px; }
    .mobile-menu { display: none; position: relative; }
    .mobile-menu summary { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); list-style: none; cursor: pointer; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu summary svg { width: 19px; height: 19px; }
    .mobile-panel { position: absolute; top: calc(100% + 10px); right: 0; display: grid; gap: 18px; width: 210px; padding: 20px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 28px rgba(0,0,0,.08); }

    .hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(370px, .97fr); align-items: stretch; min-height: 660px; margin: 20px 0 0; overflow: hidden; background: var(--blue-deep); color: var(--white); }
    .hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(44px, 7vw, 88px); }
    .site-wrap .hero .hero-copy h1 { max-width: 740px; margin: 0; color: var(--white); font: 400 clamp(58px, 7.8vw, 100px)/1.03 var(--serif); letter-spacing: -.04em; animation: hero-title-in .72s cubic-bezier(.16,1,.3,1) both; }
    @keyframes hero-title-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    .hero-subtitle { width: 100%; max-width: 520px; margin: 22px 0 0; color: rgba(255,254,250,.78); font: 400 clamp(19px, 2vw, 24px)/1.35 var(--serif); }
    .hero-meta { margin: 29px 0 0; color: rgba(255,254,250,.76); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
    .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 33px; }
    .primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 49px; padding: 0 16px; background: var(--gold); color: var(--blue-deep); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
    .primary-link:hover { background: var(--white); color: var(--blue-deep); }
    .primary-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
    .primary-link:hover svg { transform: translateX(3px); }
    .secondary-link { color: rgba(255,254,250,.82); font-size: 12px; text-decoration-thickness: 1px; text-underline-offset: 5px; }
    .secondary-link:hover { color: var(--gold); }
    .hero-photo { position: relative; min-height: 660px; margin: 0; overflow: hidden; background: #10284b; }
    .hero-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, var(--blue-deep) 0%, rgba(11,35,68,.62) 8%, transparent 40%), linear-gradient(0deg, rgba(11,35,68,.64), transparent 26%); pointer-events: none; }
    .hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 43%; clip-path: inset(0 0 0 100%); animation: portrait-reveal 1.05s .12s cubic-bezier(.16,1,.3,1) forwards; }
    @keyframes portrait-reveal { to { clip-path: inset(0); } }
    .photo-caption { position: absolute; z-index: 1; right: 24px; bottom: 21px; color: rgba(255,254,250,.9); font-size: 11px; font-weight: 600; letter-spacing: .06em; }

    .section-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 80px 0 25px; border-bottom: 1px solid var(--line); }
    .section-intro h2 { max-width: 680px; margin: 0; font: 400 clamp(37px, 5vw, 58px)/1.08 var(--serif); letter-spacing: -.04em; }
    .section-intro p { max-width: 270px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
    .reading-tools { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 0; }
    .filters { display: flex; flex-wrap: wrap; gap: 8px; }
    .filter-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
    .filter-button:hover { border-color: var(--blue); color: var(--blue); }
    .filter-button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--white); }
    .search { position: relative; width: min(300px, 100%); }
    .search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .search input { width: 100%; min-height: 42px; padding: 0 13px 0 39px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font-size: 12px; }
    .search input::placeholder { color: #667487; opacity: 1; }
    .search svg { position: absolute; top: 13px; left: 13px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
    .entry-list { padding-top: 8px; border-top: 1px solid var(--line); }
    .entry { border-bottom: 1px solid var(--line); }
    .entry[hidden] { display: none; }
    .entry-summary { display: grid; grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr) auto; align-items: center; gap: 25px; min-height: 172px; padding: 26px 10px; list-style: none; cursor: pointer; }
    .entry-summary::-webkit-details-marker { display: none; }
    .entry-category { align-self: start; display: grid; gap: 9px; padding-top: 8px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .entry-category::before { content: ""; width: 24px; height: 2px; background: var(--red); }
    .entry-title { max-width: 840px; margin: 0; font: 400 clamp(27px, 4vw, 46px)/1.08 var(--serif); letter-spacing: -.035em; transition: color .2s ease; }
    .entry-summary:hover .entry-title { color: var(--blue); }
    .entry-deck { max-width: 730px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
    .entry-action { display: grid; justify-items: center; gap: 8px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
    .entry-action-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
    .entry-action-icon svg { width: 16px; height: 16px; }
    .entry-summary:hover .entry-action-icon { transform: translateY(3px); border-color: var(--blue); background: var(--blue); color: var(--white); }
    .entry[open] .entry-action-icon { transform: rotate(180deg); background: var(--blue); border-color: var(--blue); color: var(--white); }
    .entry[open] .entry-summary:hover .entry-action-icon { transform: rotate(180deg) translateY(3px); }
    .when-open { display: none; }
    .entry[open] .when-closed { display: none; }
    .entry[open] .when-open { display: inline; }
    .entry-body { display: grid; grid-template-columns: minmax(110px, .28fr) minmax(0, 1fr) minmax(0, .35fr); gap: 25px; padding: 0 10px 70px; animation: article-open .32s cubic-bezier(.16,1,.3,1) both; }
    @keyframes article-open { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .entry-body-spacer { min-height: 1px; }
    .prose { max-width: 720px; color: #28364a; font: 400 19px/1.76 var(--serif); }
    .prose p { margin: 0 0 1.24em; }
    .prose strong { color: var(--ink); font-weight: 500; }
    .pull-quote { margin: 38px 0; padding: 24px 0 23px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--blue); font: 400 clamp(27px, 3.6vw, 40px)/1.11 var(--serif); letter-spacing: -.025em; }
    .post-artwork { width: min(100%, 540px); margin: 36px 0; }
    .post-artwork img { display: block; width: 100%; height: auto; }
    .post-artwork figcaption { margin-top: 9px; color: var(--muted); font: 500 11px/1.4 var(--sans); letter-spacing: .03em; }
    .entry-end { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 720px; margin-top: 42px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font: 600 11px var(--sans); letter-spacing: .03em; }
    .facebook-post { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; }
    .facebook-post:hover { color: var(--red); }
    .facebook-post svg { width: 15px; height: 15px; }
    .empty-state { display: none; padding: 38px 0; color: var(--muted); font: 400 22px var(--serif); }
    .empty-state.is-visible { display: block; }

    .interlude { position: relative; display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 8%; margin: 28px 0 84px; padding: clamp(30px, 5.8vw, 72px); overflow: hidden; background: var(--blue); color: var(--white); }
    .interlude::before { position: absolute; top: -100px; right: -100px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ""; }
    .interlude blockquote { position: relative; z-index: 1; margin: 0; font: 400 clamp(33px, 5vw, 62px)/1.08 var(--serif); letter-spacing: -.04em; }
    .interlude blockquote em { color: #ffe083; font-style: normal; }
    .interlude-copy { position: relative; z-index: 1; max-width: 430px; color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.75; }
    .interlude-copy p { margin: 0 0 17px; }
    .interlude-copy a { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.6); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
    .interlude-copy a:hover { color: #ffe083; border-color: #ffe083; }
    .interlude-copy a svg { width: 14px; height: 14px; }

    .about { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(36px, 7vw, 90px); align-items: center; padding: 10px 0 90px; }
    .about-photo { position: relative; min-height: 360px; margin: 0; overflow: hidden; background: #d9ddda; }
    .about-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
    .about-copy h2 { margin: 0 0 20px; font: 400 clamp(38px, 5vw, 58px)/1.08 var(--serif); letter-spacing: -.04em; }
    .about-copy p { max-width: 560px; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.75; }
    .about-copy a { display: inline-flex; align-items: center; gap: 10px; margin-top: 11px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
    .about-copy a:hover { color: var(--red); }
    .about-copy a svg { width: 15px; height: 15px; }
    footer { background: var(--blue-deep); color: var(--white); }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
    .footer-inner p { margin: 0; color: rgba(255,254,250,.78); font-size: 11px; }
    .footer-inner a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 11px; font-weight: 600; text-decoration: none; }
    .footer-inner a:hover { color: var(--gold); }
    .footer-inner svg { width: 15px; height: 15px; }

    @media (max-width: 900px) {
      .wrap { width: min(100% - 40px, 760px); }
      .hero { grid-template-columns: 1fr .82fr; min-height: 600px; }
      .hero-copy { padding: 42px; }
      .hero h1 { font-size: clamp(55px, 8vw, 78px); }
      .hero-photo { min-height: 600px; }
      .hero-photo img { object-position: 47% 43%; }
      .entry-summary { grid-template-columns: 115px minmax(0,1fr) auto; gap: 18px; }
      .entry-body { grid-template-columns: 115px minmax(0,1fr); gap: 18px; }
      .entry-body-spacer:last-child { display: none; }
    }
    @media (max-width: 760px) {
      .desktop-nav { display: none; }
      .mobile-menu { display: block; }
      .hero { grid-template-columns: 1fr; min-height: auto; }
      .hero-copy { min-height: 410px; padding: 42px clamp(24px, 6vw, 54px); }
      .site-wrap .hero .hero-copy h1 { max-width: 620px; font-size: clamp(48px, 9vw, 72px); }
      .hero-photo { min-height: 430px; }
      .hero-photo img { object-position: center 43%; }
    }
    @media (max-width: 650px) {
      html { scroll-padding-top: 75px; }
      .wrap { width: calc(100% - 30px); }
      .site-header { min-height: 68px; }
      .identity-mark { width: 34px; height: 34px; font-size: 15px; }
      .identity-name { font-size: 18px; }
      .identity-subtitle { font-size: 11px; }
      .hero { grid-template-columns: 1fr; min-height: auto; margin-top: 13px; }
      .hero-copy { min-height: 440px; padding: 37px 24px 35px; }
      .site-wrap .hero .hero-copy h1 { max-width: 520px; font-size: clamp(51px, 14vw, 76px); }
      .hero-subtitle { max-width: 100%; margin-top: 18px; font-size: 20px; }
      .hero-meta { margin-top: 21px; font-size: 11px; }
      .hero-actions { margin-top: 25px; }
      .hero-photo { min-height: 380px; }
      .hero-photo img { object-position: center 38%; }
      .hero-photo::after { background: linear-gradient(0deg, rgba(11,35,68,.72), transparent 30%); }
      .photo-caption { right: 15px; bottom: 15px; }
      .section-intro { display: block; padding: 58px 0 18px; }
      .section-intro h2 { font-size: 43px; }
      .section-intro p { margin-top: 13px; max-width: 350px; }
      .reading-tools { align-items: stretch; flex-direction: column-reverse; gap: 16px; }
      .search { width: 100%; }
      .filters { gap: 6px; }
      .filter-button { min-height: 38px; padding-inline: 13px; font-size: 11px; }
      .entry-summary { grid-template-columns: 1fr auto; gap: 7px 14px; min-height: 0; padding: 25px 2px; }
      .entry-category { grid-column: 1 / -1; padding-top: 0; }
      .entry-title { font-size: clamp(29px, 8vw, 38px); }
      .entry-deck { font-size: 13px; }
      .entry-action { align-self: center; }
      .entry-action-icon { width: 38px; height: 38px; }
      .entry-body { display: block; padding: 0 2px 48px; }
      .entry-body-spacer { display: none; }
      .prose { font-size: 18px; line-height: 1.7; }
      .pull-quote { margin: 30px 0; padding: 21px 0; font-size: 32px; }
      .post-artwork { margin: 29px 0; }
      .entry-end { align-items: flex-start; flex-direction: column; margin-top: 30px; }
      .interlude { grid-template-columns: 1fr; gap: 27px; margin: 18px 0 62px; padding: 31px 24px; }
      .interlude blockquote { font-size: 42px; }
      .about { grid-template-columns: 1fr; gap: 27px; padding-bottom: 60px; }
      .about-photo { min-height: 330px; }
      .about-copy h2 { font-size: 43px; }
      .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; min-height: 100px; padding: 20px 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
      .site-wrap .hero .hero-copy h1 { animation: none; transform: none; opacity: 1; }
      .hero-photo img { clip-path: none; }
      .entry-body { animation: none; transform: none; opacity: 1; }
    }

    .archive-page { min-height: 58vh; padding-top: 26px; padding-bottom: 84px; }
    .archive-page .section-intro { padding-top: 50px; }
    .archive-pagination { display: flex; flex-wrap: wrap; gap: 10px; padding: 30px 0; }
    .archive-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); color: var(--blue); text-decoration: none; }
    .archive-pagination .page-numbers.current { border-color: var(--blue); background: var(--blue); color: var(--white); }
    .single-page { padding-top: 34px; padding-bottom: 92px; }
    .single-heading { max-width: 920px; margin: 38px auto 42px; }
    .single-category { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .single-heading h1 { margin: 0; color: var(--ink); font: 400 clamp(42px, 7vw, 76px)/1.04 var(--serif); letter-spacing: -.04em; }
    .single-deck { max-width: 720px; margin: 21px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
    .single-featured-image { max-width: 920px; margin: 0 auto 42px; }
    .single-featured-image img { display: block; width: 100%; height: auto; }
    .single-content { max-width: 720px; margin: 0 auto; }
    .prose img { max-width: 100%; height: auto; }
    .single-content .entry-end { margin-top: 48px; }
    @media (max-width: 650px) {
      .single-page { padding-top: 12px; padding-bottom: 58px; }
      .single-heading { margin: 34px 0 30px; }
      .single-heading h1 { font-size: 42px; }
      .single-deck { font-size: 16px; }
      .single-featured-image { margin-bottom: 30px; }
    }
  
