/*
Theme Name: Theoxer
Theme URI: https://theoxer.it
Author: Theoxer
Description: Tema magazine per Theoxer, il magazine dell'equitazione.
Version: 1.5
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: theoxer
*/

#tx-root {
  --ink:#FFFFFF;
  --ink-2:#F2F2F2;
  --bordeaux:#1B1B1B;
  --bordeaux-light:#333333;
  --gold:#1B1B1B;
  --gold-light:#4A4A4A;
  --ivory:#1B1B1B;
  --ivory-dim:#555555;
  --line:rgba(0,0,0,0.14);
}
#tx-root * {box-sizing:border-box; margin:0; padding:0;}
#tx-root {scroll-behavior:smooth;}
#tx-root {font-family:'Nunito Sans',sans-serif; background:var(--ink); color:var(--ivory); font-weight:300;}
#tx-root a {color:inherit; text-decoration:none;}
#tx-root img {display:block; width:100%; height:100%; object-fit:cover;}
#tx-root h1, #tx-root h2, #tx-root h3, #tx-root .display {font-family:'Cormorant Garamond',serif; font-weight:500; letter-spacing:0.01em;}
#tx-root .eyebrow {font-size:11px; letter-spacing:0.22em; text-transform:uppercase; color:var(--gold); font-weight:600;}
#tx-root /* ---------- UTILITY BAR ---------- */
.utility-bar {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 48px; font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--ivory-dim); border-bottom:1px solid var(--line); background:var(--ink);
}
#tx-root .utility-bar .edition {color:var(--gold-light);}
#tx-root .utility-bar .subscribe-link {color:var(--gold); font-weight:600;}
#tx-root .utility-bar .subscribe-link:hover {color:var(--gold-light);}
#tx-root /* ---------- MASTHEAD ---------- */
.masthead {
  text-align:center; padding:38px 24px 26px; background:var(--ink);
  display:flex; flex-direction:column; align-items:center;
}
#tx-root .masthead-title {
  font-family:'Cormorant Garamond',serif; font-weight:600; font-style:normal;
  font-size:clamp(2.6rem,6vw,4.2rem); letter-spacing:0.02em; color:var(--ivory); text-decoration:none;
}
#tx-root .masthead-tagline {
  font-size:11px; letter-spacing:0.28em; text-transform:uppercase; color:var(--gold);
  margin-top:10px; font-weight:600;
}
@media (max-width:600px){
#tx-root .masthead .custom-logo-link img {max-width:220px; max-height:64px;}
}
#tx-root /* ---------- NAV BAR (sotto la masthead) ---------- */
header {
  background:var(--ink); border-top:1px solid var(--line); border-bottom:1px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  padding:0 48px; position:sticky; top:0; z-index:100;
}
#tx-root .wordmark {font-family:'Cormorant Garamond',serif; font-size:1.7rem; letter-spacing:0.16em; font-weight:600; color:var(--ivory);}
#tx-root nav ul {list-style:none; display:flex; gap:38px; justify-content:center; padding:16px 0;}
#tx-root nav a {font-size:12.5px; letter-spacing:0.06em; text-transform:uppercase; color:var(--ivory); opacity:0.82; transition:opacity .2s;}
#tx-root nav a:hover, #tx-root nav a.active {opacity:1; color:var(--gold);}
#tx-root .nav-toggle {display:none; background:none; border:none; color:var(--ivory); font-size:22px; cursor:pointer;}
#tx-root /* ---------- FRONT PAGE (lead story + ultime notizie) ---------- */
.front-page {display:grid; grid-template-columns:1.6fr 1fr; gap:0; border-bottom:1px solid var(--line);}
#tx-root .lead-story {padding:50px 48px; border-right:1px solid var(--line);}
#tx-root .section-label {
  font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold);
  font-weight:600; display:block; margin-bottom:18px;
}
#tx-root .lead-story h1 {font-size:clamp(2rem,4vw,3.1rem); line-height:1.12; font-weight:600; font-style:normal; color:#1b1b1b;}
#tx-root .lead-story .deck {color:var(--ivory-dim); font-size:1.08rem; line-height:1.65; margin-top:20px; font-weight:300; max-width:60ch;}
#tx-root .byline {font-size:11.5px; letter-spacing:0.04em; text-transform:uppercase; color:var(--ivory-dim); margin-top:20px; padding-bottom:24px; border-bottom:1px solid var(--line);}
#tx-root .lead-photo {margin-top:26px;}
#tx-root .lead-photo img {aspect-ratio:16/9;}
#tx-root .lead-photo .caption {display:block; font-size:12px; color:var(--ivory-dim); font-style:italic; margin-top:10px; font-weight:300;}
#tx-root .sidebar-news {padding:50px 40px;}
#tx-root .sidebar-news h3 {
  font-family:'Nunito Sans',sans-serif; font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold); font-weight:700; margin-bottom:22px; padding-bottom:14px; border-bottom:2px solid var(--gold);
}
#tx-root .sidebar-news ul {list-style:none;}
#tx-root .sidebar-news li {padding:16px 0; border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:6px;}
#tx-root .sidebar-news li:first-child {padding-top:0;}
#tx-root .sidebar-news .tag {font-size:10px; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-light); font-weight:600;}
#tx-root .sidebar-news a {font-family:'Cormorant Garamond',serif; font-size:1.15rem; line-height:1.3; color:var(--ivory); font-weight:500;}
#tx-root .sidebar-news a:hover {color:var(--gold-light);}
#tx-root .sidebar-news .time {font-size:11px; color:var(--ivory-dim); letter-spacing:0.03em;}
#tx-root .page-hero {position:relative; min-height:56vh; display:flex; align-items:flex-end; overflow:hidden;}
#tx-root .page-hero img {position:absolute; inset:0;}
#tx-root .page-hero::before {content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(22,20,18,0.25) 20%, rgba(15,13,11,0.96) 100%);}
#tx-root .page-hero-content {position:relative; z-index:2; padding:0 48px 60px; max-width:760px;}
#tx-root .page-hero-content .eyebrow {margin-bottom:18px; display:block; color:#ffffff; text-shadow:0 1px 6px rgba(0,0,0,0.9);}
#tx-root .page-hero h1 {font-size:clamp(2.2rem,4.4vw,3.6rem); line-height:1.08; font-style:italic; color:#ffffff; text-shadow:0 2px 12px rgba(0,0,0,0.9), 0 1px 5px rgba(0,0,0,0.95);}
#tx-root .page-hero p {color:var(--ivory-dim); margin-top:18px; font-size:1rem; max-width:58ch; line-height:1.7; font-weight:300;}
#tx-root .rule-row {display:flex; align-items:center; gap:16px; padding:54px 48px 30px;}
#tx-root .rule-row .line {flex:1; height:1px; background:var(--line);}
#tx-root .rule-row .diamond {width:7px; height:7px; background:var(--gold); transform:rotate(45deg);}
#tx-root /* ---------- PHOTO GALLERY (mosaico) ---------- */
.gallery-head {padding:20px 48px 30px; text-align:center;}
#tx-root .gallery-head .eyebrow {margin-bottom:14px; display:block;}
#tx-root .gallery-head h2 {font-size:clamp(1.8rem,3vw,2.4rem); font-style:italic;}
#tx-root .photo-gallery {display:grid; grid-template-columns:repeat(6,1fr); grid-auto-rows:150px; gap:4px; padding:0 4px 90px;}
#tx-root .gtile {position:relative; overflow:hidden; grid-column:span 2;}
#tx-root .gtile.wide {grid-column:span 3;}
#tx-root .gtile.tall {grid-row:span 2;}
#tx-root .gtile.big {grid-column:span 3; grid-row:span 2;}
#tx-root .gtile img {transition:transform .8s ease;}
#tx-root .gtile:hover img {transform:scale(1.08);}
#tx-root .gtile .gcaption {
  position:absolute; left:0; right:0; bottom:0; padding:14px 16px;
  background:linear-gradient(0deg, rgba(15,13,11,0.88), transparent);
  color:var(--ivory); font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; opacity:0; transition:opacity .25s;
}
#tx-root .gtile:hover .gcaption {opacity:1;}
#tx-root .featured {padding:0 48px 70px;}
#tx-root .featured-grid {display:grid; grid-template-columns:repeat(3,1fr); gap:36px;}
#tx-root .story-card {cursor:pointer;}
#tx-root .story-card .thumb {aspect-ratio:4/3; overflow:hidden; margin-bottom:20px; position:relative;}
#tx-root .story-card .thumb img {transition:transform .7s ease;}
#tx-root .story-card:hover .thumb img {transform:scale(1.07);}
#tx-root .story-card .eyebrow {margin-bottom:10px; display:block;}
#tx-root .story-card h3 {font-size:1.5rem; line-height:1.28; margin-bottom:10px;}
#tx-root .story-card:hover h3 {color:var(--gold-light);}
#tx-root .story-card .excerpt {font-size:0.9rem; color:var(--ivory-dim); line-height:1.65; font-weight:300;}
#tx-root .story-card .date {font-size:11px; letter-spacing:0.05em; text-transform:uppercase; color:var(--ivory-dim); margin-top:14px; display:block;}
#tx-root .feature-split {display:grid; grid-template-columns:1.1fr 0.9fr; background:var(--ink-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
#tx-root .feature-split .img-side {position:relative; overflow:hidden; min-height:460px;}
#tx-root .feature-split .text-side {padding:80px 60px; display:flex; flex-direction:column; justify-content:center;}
#tx-root .feature-split .eyebrow {margin-bottom:20px;}
#tx-root .feature-split h2 {font-size:clamp(1.9rem,3vw,2.6rem); line-height:1.15; font-style:italic; margin-bottom:24px;}
#tx-root .feature-split p {color:var(--ivory-dim); line-height:1.75; font-weight:300; max-width:46ch;}
#tx-root .feature-split .read-more {
  margin-top:32px; display:inline-flex; align-items:center; gap:10px; width:fit-content;
  font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold);
  border-bottom:1px solid var(--gold); padding-bottom:5px;
}
#tx-root .category-strip {display:flex; justify-content:center; gap:0; border-bottom:1px solid var(--line); background:var(--ink); flex-wrap:wrap;}
#tx-root .category-strip a {
  padding:20px 30px; font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--ivory-dim); border-right:1px solid var(--line); transition:.2s;
}
#tx-root .category-strip a:last-child {border-right:none;}
#tx-root .category-strip a:hover, #tx-root .category-strip a.active {color:var(--gold); background:rgba(201,169,97,0.05);}
#tx-root .results {padding:80px 48px; max-width:980px; margin:0 auto;}
#tx-root .results .eyebrow {margin-bottom:16px; display:block;}
#tx-root .results h2 {font-size:clamp(1.7rem,2.6vw,2.2rem); font-style:italic; margin-bottom:36px;}
#tx-root .results-table {width:100%; border-collapse:collapse;}
#tx-root .results-table th {
  font-size:11px; letter-spacing:0.08em; text-transform:uppercase; text-align:left;
  padding:12px 16px; border-bottom:1px solid var(--gold); color:var(--gold-light); font-weight:600;
}
#tx-root .results-table td {padding:18px 16px; border-bottom:1px solid var(--line); font-size:0.92rem; color:var(--ivory-dim); font-weight:300;}
#tx-root .results-table .pos {font-weight:700; color:var(--gold-light); font-family:'Cormorant Garamond',serif; font-size:1.1rem;}
#tx-root .discipline-band {background:var(--ink-2); padding:60px 48px; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
#tx-root .discipline-row {display:flex; gap:0; max-width:980px; margin:0 auto; flex-wrap:wrap;}
#tx-root .discipline-item {flex:1; min-width:220px; padding:0 30px; border-right:1px solid var(--line);}
#tx-root .discipline-item:last-child {border-right:none;}
#tx-root .discipline-item .n {font-family:'Cormorant Garamond',serif; font-size:2.2rem; color:var(--gold); font-style:italic;}
#tx-root .discipline-item h4 {font-size:1.15rem; margin-top:10px; margin-bottom:10px;}
#tx-root .discipline-item p {font-size:0.86rem; color:var(--ivory-dim); font-weight:300; line-height:1.6;}
#tx-root .subscribe {background:var(--bordeaux); padding:70px 48px; text-align:center;}
#tx-root .subscribe .eyebrow {color:var(--gold-light); margin-bottom:18px; display:block;}
#tx-root .subscribe h2 {font-size:clamp(1.8rem,3vw,2.4rem); font-style:italic; max-width:640px; margin:0 auto 30px;}
#tx-root .subscribe-form {display:flex; max-width:440px; margin:0 auto; border:1px solid rgba(243,239,231,0.35);}
#tx-root .subscribe-form input {flex:1; background:transparent; border:none; padding:15px 18px; color:var(--ivory); font-family:'Nunito Sans',sans-serif; font-size:0.9rem;}
#tx-root .subscribe-form input::placeholder {color:rgba(243,239,231,0.5);}
#tx-root .subscribe-form input:focus {outline:none;}
#tx-root .subscribe-form button {background:var(--gold); color:var(--ink); border:none; padding:0 26px; font-weight:600; font-size:0.82rem; letter-spacing:0.05em; text-transform:uppercase; cursor:pointer;}
#tx-root .subscribe-form button:hover {background:var(--gold-light);}
#tx-root footer {padding:70px 48px 40px;}
#tx-root .footer-top {display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:50px; padding-bottom:50px; border-bottom:1px solid var(--line);}
#tx-root .footer-top .wordmark {display:block; margin-bottom:18px;}
#tx-root .footer-top p {color:var(--ivory-dim); font-size:0.88rem; line-height:1.7; max-width:32ch; font-weight:300;}
#tx-root .footer-col .eyebrow {margin-bottom:18px; display:block;}
#tx-root .footer-col a, #tx-root .footer-col p {display:block; font-size:0.86rem; color:var(--ivory-dim); line-height:2; font-weight:300;}
#tx-root .footer-col a:hover {color:var(--gold);}
#tx-root .footer-bottom {display:flex; justify-content:space-between; padding-top:28px; font-size:11px; color:var(--ivory-dim); letter-spacing:0.03em; flex-wrap:wrap; gap:12px;}



@media (max-width:980px){
#tx-root header {padding:6px 22px; justify-content:flex-end;}
#tx-root .utility-bar {padding:8px 20px; flex-wrap:wrap; gap:8px;}
#tx-root .masthead {padding:28px 20px 20px;}
#tx-root .front-page {grid-template-columns:1fr;}
#tx-root .lead-story {border-right:none; border-bottom:1px solid var(--line); padding:34px 24px;}
#tx-root .sidebar-news {padding:34px 24px;}
#tx-root nav ul {
    position:fixed; top:66px; left:0; right:0; background:var(--ink);
    flex-direction:column; padding:20px 26px; display:none; gap:16px; border-bottom:1px solid var(--line);
  }
#tx-root nav ul.open {display:flex;}
#tx-root .nav-toggle {display:block;}
#tx-root .hero-content, #tx-root .page-hero-content {padding:0 24px 50px;}
#tx-root .rule-row, #tx-root .featured, #tx-root .results {padding-left:24px; padding-right:24px;}
#tx-root .gallery-head {padding:20px 24px 20px;}
#tx-root .photo-gallery {grid-template-columns:repeat(2,1fr); grid-auto-rows:120px; padding:0 4px 60px;}
#tx-root .gtile.wide, #tx-root .gtile.big {grid-column:span 2;}
#tx-root .gtile.big {grid-row:span 1;}
#tx-root .featured-grid {grid-template-columns:1fr; gap:44px;}
#tx-root .feature-split {grid-template-columns:1fr;}
#tx-root .feature-split .text-side {padding:50px 26px;}
#tx-root .feature-split .img-side {min-height:320px;}
#tx-root .category-strip {flex-wrap:wrap;}
#tx-root .footer-top {grid-template-columns:1fr 1fr; gap:34px;}
#tx-root .subscribe {padding:50px 24px;}
#tx-root footer {padding:50px 24px 30px;}
#tx-root .discipline-band {padding:40px 24px;}
#tx-root .discipline-item {border-right:none; border-bottom:1px solid var(--line); padding:0 0 20px; margin-bottom:20px;}


}
#tx-root /* ---------- ARTICLE BODY (single post / page content) ---------- */
.article-body {
  max-width:720px; margin:0 auto; padding:90px 48px 60px; color:var(--ivory-dim);
  font-size:1.05rem; line-height:1.85; font-weight:300;
}
@media (max-width:760px){
#tx-root .article-body {padding:60px 26px 40px;}
}
#tx-root .article-body p {margin-bottom:1.4em;}
#tx-root .article-body h2, #tx-root .article-body h3 {
  font-family:'Cormorant Garamond',serif; color:var(--ivory); font-style:italic; font-weight:500;
  margin:1.6em 0 0.6em; line-height:1.25;
}
#tx-root .article-body h2 {font-size:1.8rem;}
#tx-root .article-body h3 {font-size:1.4rem;}
#tx-root .article-body a {color:var(--gold-light); text-decoration:underline;}
#tx-root .article-body img {border-radius:2px; margin:1.2em 0;}
#tx-root .article-body blockquote {
  border-left:3px solid var(--gold); padding-left:22px; margin:1.8em 0; font-style:italic; color:var(--ivory);
}
#tx-root .article-body ul, #tx-root .article-body ol {margin:0 0 1.4em 1.4em;}
#tx-root .article-comments {max-width:720px; margin:0 auto; padding:20px 24px 70px; color:var(--ivory-dim);}

#tx-root /* ---------- PROSE STATEMENT ---------- */
.prose {padding:70px 48px; max-width:900px; margin:0 auto; text-align:center;}

#tx-root .prose h2 {font-size:clamp(1.5rem,2.6vw,2.1rem); font-weight:400; line-height:1.5; color:var(--ivory-dim);}
#tx-root .prose h2 em {color:var(--gold-light); font-style:italic;}
#tx-root /* ---------- VALUES ---------- */
.values {padding:20px 48px 80px;}
#tx-root .values-grid {display:grid; grid-template-columns:repeat(3,1fr); gap:40px; max-width:1080px; margin:0 auto;}
#tx-root .value-item .eyebrow {display:block; margin-bottom:14px;}
#tx-root .value-item h3 {font-size:1.3rem; margin-bottom:12px;}
#tx-root .value-item p {font-size:0.88rem; color:var(--ivory-dim); line-height:1.65; font-weight:300;}
#tx-root /* ---------- TEAM ---------- */
.team-section {padding:20px 48px 90px;}
#tx-root .section-title {text-align:center; margin-bottom:50px;}
#tx-root .section-title .eyebrow {display:block; margin-bottom:14px;}
#tx-root .section-title h2 {font-size:clamp(1.6rem,2.6vw,2.1rem); font-style:italic;}
#tx-root .team-grid {display:grid; grid-template-columns:repeat(4,1fr); gap:30px; max-width:1080px; margin:0 auto; text-align:center;}
#tx-root .team-avatar {
  width:74px; height:74px; border-radius:50%; margin:0 auto 16px;
  background:var(--ink-2); border:1px solid var(--gold); color:var(--gold-light);
  display:flex; align-items:center; justify-content:center; font-family:'Cormorant Garamond',serif; font-size:1.6rem; font-style:italic;
}
#tx-root .team-card h4 {font-size:1.05rem; margin-bottom:6px;}
#tx-root .team-card .role {font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--ivory-dim);}



@media (max-width:760px){
#tx-root .values-grid, #tx-root .team-grid {grid-template-columns:1fr 1fr; gap:26px;}
#tx-root .prose, #tx-root .values, #tx-root .team-section {padding-left:24px; padding-right:24px;}


}


