/*
Theme Name: FOG design studio
Theme URI: https://fogdesignstudio.com/
Author: FOG — Borgonovo+Valsecchi
Description: Tema leggero su misura per il portfolio FOG. Nessuna dipendenza esterna, font self-hosted, layout fluido. Tipi di contenuto: Progetti e Clienti.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fog
Tags: portfolio, minimal, monochrome
*/

/* ---------- Font self-hosted ---------- */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plexmono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plexmono-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plexmono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/plexmono-600-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design system ---------- */

:root {
  --bg: #ffffff;
  --ink: #3f3f3f;
  --ink-strong: #212121;
  --muted: #757575;
  --grey: #e4e4e4;
  --grey-soft: #f2f2f2;
  --hair: #eaeaea;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(28px, 4vw, 52px);
}

.brand {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-strong);
}
.brand .brand-name { display: block; }
.brand small {
  display: block;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.brand img { max-height: 44px; width: auto; }

.nav-wrap { margin: 0; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; padding: 0; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--ink-strong); border-color: var(--ink-strong); }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--ink-strong); border-color: var(--ink-strong); }

/* ---------- Home ---------- */

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(6px, 1vw, 14px);
  padding-block: clamp(18px, 5vw, 56px) clamp(4px, 1vw, 10px);
  background: #fff;
  overflow: hidden;
}
.hero-mark {
  width: min(620px, 82%);
  height: auto;
  user-select: none;
  pointer-events: none;
}
.hero-title {
  margin: 0;
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-strong);
  text-align: center;
}

.tagline {
  display: block;
  padding-block: clamp(12px, 2vw, 24px) clamp(28px, 4vw, 52px);
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0;
}

.statement {
  background: var(--grey);
  padding-block: clamp(56px, 9vw, 120px);
}
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  max-width: 900px;
  margin-inline: auto;
}
.statement-grid p { margin: 0; }
.statement-grid p + p { margin-top: 0; }
.statement-grid strong { color: var(--ink-strong); font-weight: 600; }

.lang-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted) !important;
  font-size: 11px !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 !important;
}
.lang-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, .12);
}

.contact-band {
  padding-block: clamp(56px, 8vw, 104px);
  text-align: center;
}
.contact-band .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact-band a.email {
  font-size: clamp(16px, 2.2vw, 24px);
  color: var(--ink-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--grey);
  transition: border-color .2s ease;
}
.contact-band a.email:hover { border-color: var(--ink-strong); }

/* ---------- Testata pagina ---------- */

.page-head {
  padding-block: clamp(16px, 3vw, 32px) clamp(40px, 6vw, 72px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--hair);
}
.page-head h1 {
  margin: 0;
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-strong);
}
.page-head .count { font-size: 11px; color: var(--muted); letter-spacing: .1em; }

/* ---------- Works ---------- */

.works { list-style: none; margin: 0; padding: 0; }

.work {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.works .work:first-child { padding-top: clamp(32px, 4vw, 48px); }
.works .work:last-child { border-bottom: 0; }

.work-meta { display: grid; gap: 18px; align-content: start; }

.work-year { color: var(--muted); font-size: 12px; letter-spacing: .12em; }

.work-title {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.35;
}
.work-title a { text-decoration: none; color: inherit; }
.work-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

.work-for {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}
.work-for strong { color: var(--ink-strong); font-weight: 600; display: block; margin-top: 2px; }

.work-link {
  justify-self: start;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.work-link:hover { color: var(--ink-strong); border-color: var(--ink-strong); }

.work-media {
  overflow: hidden;
  background: var(--grey-soft);
  aspect-ratio: 545 / 305;
  display: block;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .4s ease;
}
.work:hover .work-media img { transform: scale(1.03); filter: grayscale(1) contrast(1.06); }

/* ---------- Singolo progetto ---------- */

.single-work .page-head { margin-bottom: clamp(24px, 4vw, 40px); }
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: 0 clamp(24px, 4vw, 40px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}
.single-meta strong { color: var(--ink-strong); font-weight: 600; }

.single-media {
  background: var(--grey-soft);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.single-media img { width: 100%; height: auto; filter: grayscale(1); }

.single-body {
  max-width: 74ch;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.single-body p { margin: 0 0 1.15em; }
.single-body h2, .single-body h3 {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--ink-strong);
  letter-spacing: .08em;
  margin: 2em 0 .8em;
}
.single-body a { color: var(--ink-strong); }

/* ---------- Clients ---------- */

.clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding-block: clamp(48px, 7vw, 88px);
}
.client {
  display: grid;
  place-items: center;
  aspect-ratio: 300 / 130;
  padding: clamp(14px, 2vw, 28px);
  border: 1px solid var(--hair);
  transition: border-color .2s ease, background-color .2s ease;
}
.client:hover { border-color: var(--grey); background: #fbfbfb; }
.client img { max-height: 68px; width: auto; max-width: 78%; opacity: .78; filter: grayscale(1); }

/* ---------- Studio / pagine ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px);
}
.portrait {
  aspect-ratio: 1200 / 768;
  overflow: hidden;
  background: var(--grey-soft);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.prose { max-width: 74ch; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink-strong); font-weight: 600; }
.prose a { color: var(--ink-strong); }

.entry-page { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); }

/* ---------- Contatti ---------- */

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 120px);
}
.contact-block h2 {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.contact-block p, .contact-block address {
  margin: 0;
  font-style: normal;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--ink-strong);
  line-height: 1.9;
}
.contact-block a { text-decoration: none; border-bottom: 1px solid var(--grey); }
.contact-block a:hover { border-color: var(--ink-strong); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hair);
  padding-block: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.social { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.social a { text-decoration: none; color: var(--muted); }
.social a:hover { color: var(--ink-strong); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; gap: 20px; }
  .work-meta { grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 18px; }
  .work-media { order: -1; }
  .work-title { grid-column: 2; }
  .work-for { grid-column: 2; }
  .work-link { grid-column: 2; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav { gap: 14px; font-size: 12px; }
  .page-head { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- WordPress: ritocchi ---------- */

body.admin-bar .site-header { padding-top: clamp(28px, 4vw, 52px); }
.alignwide, .alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: 8px;
}
.sticky, .bypostauthor { position: static; }
