/*
Theme Name: Masi — Rivista
Theme URI: https://www.gianlucamasi.it
Author: Gianluca Masi
Description: La home come la prima pagina di un quotidiano: testata, data, il libro come articolo d'apertura, articoli, eventi e storie. Fa parte della famiglia "Masi": i contenuti della home si compilano una volta in Personalizza › Contenuti del sito e valgono per tutti e cinque i temi.
Version: 1.0.13
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gm
*/
:root {
	--bg: #FFFFFF; --bg2: #F3F2EF; --card: #FFFFFF; --ph: #E4E2DD;
	--ink: #121212; --ink2: #3D3D3D; --ink3: #666666; --line: #D6D6D6; --line2: #BDBDBD;
	--display: "Newsreader", Georgia, serif; --display-weight: 500; --display-track: -0.02em;
	--sans: "Inter", system-ui, sans-serif; --mono: "Inter", system-ui, sans-serif;
	--wrap: 1280px; --header-h: 72px;
}
body { font-size: 16px; line-height: 1.55; }
a { text-decoration: none; }
.kick { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.util { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 0; font-size: 12px; color: var(--ink3); border-bottom: 1px solid var(--line); }
.util-book { color: var(--accent); font-weight: 600; }
.util-r { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.mast { position: relative; text-align: center; padding: 28px 0 18px; }
.brand { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 8vw, 104px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.custom-logo { margin-inline: auto; max-height: 96px; width: auto; }
.mast-role { margin: 10px 0 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink2); }
body:not(.home) .mast { padding: 18px 0 12px; }
body:not(.home) .brand { font-size: clamp(36px, 4.4vw, 56px); }
body:not(.home) .mast-role { display: none; }
.site-nav { border-top: 1px solid var(--ink); border-bottom: 4px double var(--ink); }
@media (min-width: 1025px) {
	.site-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding: 12px 0; font-size: 14px; font-weight: 500; }
}
@media (max-width: 1024px) {
	.util-r { display: none; }
	.mast { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 12px; padding: 14px 0; }
	.mast-role { display: none; }
	.brand, body:not(.home) .brand { font-size: 34px; }
	.site-nav { border: 0; }
	.site-header { border-bottom: 4px double var(--ink); }
	.nav-open .site-nav { border: 0; }
}

.front { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); margin-top: 32px; }
.front > * { padding: 0 24px; }
.col-l { padding-left: 0; border-right: 1px solid var(--line); }
.col-r { padding-right: 0; border-left: 1px solid var(--line); }
.colh { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 0 0 16px; }
.col-r .colh + .side-story, .col-r .side-story + .colh { margin-top: 0; }
.col-r .side-story + .colh { margin-top: 28px; }
.brief { list-style: none; margin: 0; padding: 0; }
.brief li { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.brief b { display: block; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.05; }
.brief span { font-size: 14px; color: var(--ink2); }
.lead-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-img .seal { position: absolute; z-index: 2; top: 18px; right: 18px; width: 140px; height: 140px; padding: 0 14px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); transform: rotate(-8deg); line-height: 1; }
.lead-img .seal small { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; }
.lead-img .seal b { font-family: var(--display); font-size: 54px; font-weight: 500; line-height: .95; margin: 4px 0 2px; }
@media (max-width: 560px) { .lead-img .seal { width: 108px; height: 108px; padding: 0 10px; top: 10px; right: 10px; } .lead-img .seal b { font-size: 40px; } .lead-img .seal small { font-size: 8px; letter-spacing: .04em; } }
.lead-img.is-cover { display: flex; align-items: center; justify-content: center; padding: clamp(20px, 4%, 40px); background: var(--bg2); }
.lead-img.is-cover img { width: auto; max-width: 100%; height: 100%; object-fit: contain; box-shadow: 0 18px 36px -12px rgba(0,0,0,.35); }
.lead h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.02; margin: 0 0 14px; }
.lead h1 a:hover { color: var(--accent); }
.dek { font-family: var(--display); font-size: 21px; line-height: 1.42; color: var(--ink2); margin: 0 0 14px; }
.by { font-size: 13px; color: var(--ink3); margin: 0; }
.by b { color: var(--ink); }
.buy { color: var(--accent); font-weight: 600; }
.side-story { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.side-story h3 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
.side-story p { margin: 0; font-size: 14px; color: var(--ink2); }
.side-story .profile { font-family: var(--display); font-size: 18px; line-height: 1.45; color: var(--ink); }
.ev { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ev .d { font-family: var(--display); font-weight: 600; font-size: 17px; min-width: 64px; color: var(--accent); }

.band { margin: 48px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 40px 0; text-align: center; }
.band blockquote { margin: 0 auto 14px; max-width: 900px; }
.band p { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25; }
.band figcaption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.rule2 { border-top: 1px solid var(--ink); margin: 48px 0 32px; }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 56px; }
.story { display: flex; flex-direction: column; }
.story .img { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 12px; }
.story .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .img img { transform: scale(1.03); }
.story .img.is-cover { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--bg2); }
.story .img.is-cover img { width: auto; max-width: 100%; height: 100%; object-fit: contain; box-shadow: 0 10px 22px -10px rgba(0,0,0,.35); }
.story .kick { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0 0 6px; }
.story .h { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.15; margin: 0 0 6px; }
.story .t { font-size: 14px; color: var(--ink2); }
.story:hover .kick, .story:hover .h { color: var(--accent); }
.home-content { border-top: 1px solid var(--line); padding: 40px 0; }
.home-content .entry-content { max-width: var(--text); margin-inline: auto; }

.press { border-top: 2px solid var(--ink); padding: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; }
.press b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); font-weight: 600; }
.press span { font-family: var(--display); font-weight: 600; font-size: 24px; }

.site-footer { background: var(--ink); color: #EDEDED; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 40px; }
.site-footer .m { font-family: var(--display); font-size: 32px; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-row { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #333; padding-top: 18px; color: #A8A8A8; }
.foot-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.foot-row a { text-decoration: none; color: #D0D0D0; }

.pg-title { font-weight: 500; }
.pg-head { text-align: center; }
.pg-head .pg-title, .pg-head .pg-lead { margin-inline: auto; }
.pg-lead { font-family: var(--display); font-style: italic; }

@media (max-width: 1000px) {
	.front { grid-template-columns: 1fr; }
	.front > * { padding: 0; border: 0; margin-bottom: 32px; }
	.front .lead { order: -1; }
	.grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
