/*
Theme Name: Gianni Chiavetta
Theme URI: https://giannichiavetta.it/
Author: Progetto personalizzato
Description: Tema istituzionale e responsive per il sito personale di Gianni Chiavetta.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gianni-chiavetta
*/

:root {
  --gc-navy: #071827;
  --gc-navy-soft: #0f2b40;
  --gc-blue: #1f5e7a;
  --gc-gold: #c9a55a;
  --gc-gold-light: #ead8aa;
  --gc-ivory: #f6f2e9;
  --gc-white: #ffffff;
  --gc-ink: #14202a;
  --gc-muted: #687680;
  --gc-line: rgba(7, 24, 39, .14);
  --gc-radius: 3px;
  --gc-shadow: 0 18px 50px rgba(7, 24, 39, .12);
  --gc-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gc-white);
  color: var(--gc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gc-blue); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 8px; left: 8px; z-index: 99999; width: auto; height: auto;
  padding: .75rem 1rem; clip: auto; background: var(--gc-white); color: var(--gc-navy);
}

.gc-container { width: min(calc(100% - 40px), var(--gc-container)); margin-inline: auto; }
.gc-narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }
.gc-kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--gc-gold); font-size: .76rem; font-weight: 750;
  letter-spacing: .18em; text-transform: uppercase;
}
.gc-kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.gc-section-title {
  margin: .8rem 0 1rem; color: var(--gc-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.1rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em;
}
.gc-section-lead { max-width: 710px; margin: 0; color: var(--gc-muted); font-size: 1.08rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--gc-line);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.gc-header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; align-items: center; gap: .9rem; min-width: max-content; }
.custom-logo { max-height: 58px; width: auto; }
.gc-wordmark { display: grid; line-height: 1; }
.gc-wordmark strong {
  color: var(--gc-navy); font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem; font-weight: 600; letter-spacing: .01em;
}
.gc-wordmark span { margin-top: .45rem; color: var(--gc-muted); font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.primary-menu { display: flex; align-items: center; gap: 1.65rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { position: relative; color: var(--gc-navy); font-size: .82rem; font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.primary-menu a::after { content: ""; position: absolute; right: 0; bottom: -.65rem; left: 0; height: 1px; background: var(--gc-gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-menu a:hover::after, .primary-menu .current-menu-item > a::after { transform: scaleX(1); }
.gc-menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--gc-line); background: transparent; color: var(--gc-navy); cursor: pointer; }
.gc-menu-toggle span, .gc-menu-toggle::before, .gc-menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s ease; }

/* Hero */
.gc-hero { position: relative; overflow: hidden; background: var(--gc-navy); color: var(--gc-white); }
.gc-hero::after { content: ""; position: absolute; right: -12vw; bottom: -32vw; width: 58vw; height: 58vw; border: 1px solid rgba(201, 165, 90, .22); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(201, 165, 90, .04), 0 0 0 14vw rgba(201, 165, 90, .03); }
.gc-hero-grid { position: relative; z-index: 1; min-height: 690px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.gc-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 110px 7vw 110px max(20px, calc((100vw - var(--gc-container)) / 2)); }
.gc-hero h1 { max-width: 780px; margin: 1rem 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.25rem, 7vw, 6.8rem); font-weight: 500; line-height: .93; letter-spacing: -.055em; }
.gc-hero-intro { max-width: 640px; margin: 0 0 2.3rem; color: rgba(255,255,255,.72); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.gc-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.gc-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: .8rem 1.35rem; border: 1px solid var(--gc-gold); background: var(--gc-gold); color: var(--gc-navy); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.gc-button:hover { transform: translateY(-2px); background: var(--gc-gold-light); color: var(--gc-navy); }
.gc-button--ghost { background: transparent; color: var(--gc-white); border-color: rgba(255,255,255,.35); }
.gc-button--ghost:hover { background: var(--gc-white); color: var(--gc-navy); }
.gc-hero-visual { position: relative; min-height: 620px; background: linear-gradient(145deg, var(--gc-navy-soft), #08131d); }
.gc-hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .9; filter: saturate(.72) contrast(1.04); }
.gc-hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gc-navy) 0, transparent 22%), linear-gradient(0deg, rgba(7,24,39,.52), transparent 46%); }
.gc-monogram { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.14); font-family: Georgia, "Times New Roman", serif; font-size: clamp(9rem, 22vw, 20rem); letter-spacing: -.12em; }

/* Statement */
.gc-statement { background: var(--gc-ivory); border-bottom: 1px solid rgba(7,24,39,.08); }
.gc-statement-inner { display: grid; grid-template-columns: .55fr 1.45fr; gap: 4rem; align-items: start; padding-block: 70px; }
.gc-statement blockquote { margin: 0; color: var(--gc-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3.5vw, 2.65rem); line-height: 1.3; }

/* Sections grid */
.gc-profile { padding-block: 110px; }
.gc-section-head { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3.5rem; }
.gc-section-head > div:first-child { max-width: 760px; }
.gc-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gc-line); border-left: 1px solid var(--gc-line); }
.gc-profile-card { position: relative; min-height: 265px; padding: 2rem; border-right: 1px solid var(--gc-line); border-bottom: 1px solid var(--gc-line); background: var(--gc-white); transition: background .25s ease, transform .25s ease; }
.gc-profile-card:hover { z-index: 2; background: var(--gc-ivory); transform: translateY(-4px); box-shadow: var(--gc-shadow); }
.gc-card-number { display: block; margin-bottom: 3.3rem; color: var(--gc-gold); font-family: Georgia, "Times New Roman", serif; font-size: .9rem; }
.gc-profile-card h3 { margin: 0 0 .8rem; color: var(--gc-navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.gc-profile-card p { margin: 0; color: var(--gc-muted); font-size: .92rem; }
.gc-card-arrow { position: absolute; right: 1.8rem; bottom: 1.6rem; color: var(--gc-gold); font-size: 1.35rem; }

/* Highlight */
.gc-highlight { padding-block: 105px; background: var(--gc-navy); color: var(--gc-white); }
.gc-highlight-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; align-items: center; }
.gc-highlight-mark { aspect-ratio: 1 / .82; display: grid; place-items: center; border: 1px solid rgba(201,165,90,.5); color: var(--gc-gold); font-family: Georgia, "Times New Roman", serif; font-size: clamp(6rem, 15vw, 13rem); line-height: 1; }
.gc-highlight .gc-section-title { color: var(--gc-white); }
.gc-highlight p { color: rgba(255,255,255,.7); }

/* Logbook */
.gc-logbook { padding-block: 110px; background: #fbfbfa; }
.gc-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gc-post-card { display: flex; flex-direction: column; min-height: 390px; border: 1px solid var(--gc-line); background: var(--gc-white); }
.gc-post-card-media { aspect-ratio: 16/9; overflow: hidden; background: var(--gc-navy-soft); }
.gc-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gc-post-card:hover .gc-post-card-media img { transform: scale(1.035); }
.gc-post-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.22); font-family: Georgia, "Times New Roman", serif; font-size: 4rem; }
.gc-post-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.55rem; }
.gc-post-meta { color: var(--gc-gold); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.gc-post-card h3 { margin: .8rem 0; color: var(--gc-navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
.gc-post-card p { margin: 0; color: var(--gc-muted); font-size: .9rem; }
.gc-post-card .gc-read-more { margin-top: auto; padding-top: 1.4rem; color: var(--gc-navy); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.gc-empty { padding: 2rem; border: 1px dashed var(--gc-line); color: var(--gc-muted); background: var(--gc-white); }

/* Inner pages */
.gc-page-hero { padding-block: 90px 70px; background: var(--gc-navy); color: var(--gc-white); }
.gc-page-hero .gc-section-title { max-width: 900px; color: var(--gc-white); }
.gc-breadcrumbs { color: rgba(255,255,255,.58); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gc-content { padding-block: 80px 110px; }
.gc-entry-content { color: #2d3942; }
.gc-entry-content > * { max-width: 800px; margin-right: auto; margin-left: auto; }
.gc-entry-content > .alignwide { max-width: var(--gc-container); }
.gc-entry-content > .alignfull { max-width: none; }
.gc-entry-content h2, .gc-entry-content h3 { margin-top: 2.3em; color: var(--gc-navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.gc-entry-content h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; }
.gc-entry-content h3 { font-size: 1.55rem; font-weight: 600; }
.gc-entry-content a { color: var(--gc-blue); text-decoration: underline; text-underline-offset: 3px; }
.gc-entry-content blockquote { padding: 1.5rem 0 1.5rem 2rem; border-left: 3px solid var(--gc-gold); color: var(--gc-navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.gc-entry-content figure { margin-block: 2.5rem; }
.gc-entry-content figcaption { color: var(--gc-muted); font-size: .8rem; }
.gc-featured-image { width: min(calc(100% - 40px), var(--gc-container)); margin: -35px auto 70px; box-shadow: var(--gc-shadow); }
.gc-featured-image img { width: 100%; max-height: 680px; object-fit: cover; }
.gc-article-meta { margin-top: 1.2rem; color: rgba(255,255,255,.65); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.gc-pagination { margin-top: 3rem; }
.gc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.gc-pagination a, .gc-pagination span { display: grid; min-width: 42px; height: 42px; place-items: center; padding-inline: .7rem; border: 1px solid var(--gc-line); }
.gc-pagination .current { background: var(--gc-navy); color: var(--gc-white); }

/* Footer */
.site-footer { background: #04111c; color: rgba(255,255,255,.65); }
.gc-footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 4rem; padding-block: 75px; }
.gc-footer-brand { color: var(--gc-white); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.gc-footer-copy { max-width: 430px; }
.gc-footer-title { margin: 0 0 1.2rem; color: var(--gc-gold); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.gc-footer-links { margin: 0; padding: 0; list-style: none; }
.gc-footer-links li + li { margin-top: .55rem; }
.gc-footer-links a:hover { color: var(--gc-white); }
.gc-footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; }
.gc-social { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.gc-social a { color: var(--gc-white); font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .gc-menu-toggle { display: block; }
  .main-navigation { position: fixed; inset: 86px 0 0; display: none; overflow-y: auto; padding: 2rem 20px; background: var(--gc-white); }
  .main-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu li { border-bottom: 1px solid var(--gc-line); }
  .primary-menu a { display: block; padding: 1rem 0; font-size: 1rem; }
  .primary-menu a::after { display: none; }
  .gc-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .gc-hero-copy { min-height: 600px; padding: 95px max(20px, calc((100vw - var(--gc-container)) / 2)); }
  .gc-hero-visual { min-height: 560px; }
  .gc-hero-visual::after { background: linear-gradient(0deg, var(--gc-navy) 0, transparent 32%); }
  .gc-statement-inner { grid-template-columns: 1fr; gap: 1.7rem; }
  .gc-profile-grid, .gc-post-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-footer-main { grid-template-columns: 1fr 1fr; }
  .gc-footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .admin-bar .site-header { top: 46px; }
  .gc-container, .gc-narrow { width: min(calc(100% - 28px), var(--gc-container)); }
  .gc-header-inner { min-height: 74px; }
  .gc-wordmark span { display: none; }
  .main-navigation { inset-block-start: 74px; }
  .gc-hero-copy { min-height: 540px; padding: 78px 20px; }
  .gc-hero h1 { font-size: clamp(3rem, 17vw, 4.8rem); }
  .gc-hero-visual { min-height: 430px; }
  .gc-actions { align-items: stretch; flex-direction: column; }
  .gc-button { width: 100%; }
  .gc-statement-inner, .gc-profile, .gc-highlight, .gc-logbook { padding-block: 72px; }
  .gc-section-head { align-items: start; flex-direction: column; margin-bottom: 2.2rem; }
  .gc-profile-grid, .gc-post-grid, .gc-highlight-grid, .gc-footer-main { grid-template-columns: 1fr; }
  .gc-highlight-grid { gap: 2.2rem; }
  .gc-footer-main { gap: 2.4rem; padding-block: 55px; }
  .gc-footer-main > :first-child { grid-column: auto; }
  .gc-footer-bottom { flex-direction: column; gap: .8rem; }
  .gc-page-hero { padding-block: 70px 55px; }
  .gc-content { padding-block: 55px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

