/*
Theme Name: Calciomercato Juventino
Theme URI: https://www.cozzettomedia.it/
Author: Cozzetto Media Company SRL
Author URI: https://www.cozzettomedia.it/
Description: Tema del portale di informazione bianconera Calciomercato Juventino: notizie, calendario storico "Accadde oggi", social wall Instagram, rassegna dei quotidiani sportivi.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietario – © 2026 Cozzetto Media Company SRL
Text Domain: cj
*/

/* ---------- Base ---------- */
:root {
	--ink: #111111;
	--paper: #F4F4F1;
	--white: #FFFFFF;
	--line: #DADAD6;
	--line-soft: #E6E6E2;
	--muted: #555555;
	--muted-2: #6B6B66;
	--body: #3A3A37;
	--prose: #1E1E1C;
	--off: #ECECE8;
	--font-display: "Anton", Impact, "Arial Narrow", sans-serif;
	--font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Source Serif 4", Georgia, serif;
	--gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 1.5; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--muted-2); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-header :focus-visible, .match :focus-visible, .site-footer :focus-visible, .box-dark :focus-visible { outline-color: var(--white); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: var(--white); padding: 12px 16px; font-weight: 800; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.site-main { padding: 32px 0 56px; display: block; }
.site-main:focus { outline: none; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.stack--tight { gap: 28px; }

/* ---------- Tipografia ---------- */
.h-display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; text-transform: uppercase; }
.h-display a { color: inherit; text-decoration: none; }
.h-display a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.h-section { font-size: 32px; }
.h-sub { font-size: 28px; }
.h-box { font-size: 24px; margin-bottom: 8px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.kicker--soft { color: #BDBDB8; }
.kicker--muted { color: var(--muted); }
.kicker--xs { font-size: 11px; }
.section-head .kicker { margin-bottom: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; background: var(--ink); color: var(--white); padding: 4px 8px; line-height: 1.4; }
.tag--start { align-self: flex-start; }
.link-strong { font-weight: 700; font-size: 15px; }
.empty { color: var(--body); margin: 0; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.admin-note { font-size: 13px; color: var(--muted); background: #FFF8D6; padding: 10px 12px; margin: 12px 0 0; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-family: inherit; font-weight: 800; font-size: 14px; padding: 12px 18px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--line); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #333; color: var(--white); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand__small { font-weight: 700; font-size: 10px; letter-spacing: .32em; }
.brand__big { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; }
.main-nav { flex: 1 1 420px; min-width: 0; }
.main-nav .menu { display: flex; flex-wrap: wrap; gap: 0 22px; }
.main-nav a { display: inline-block; color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 0; }
.main-nav a:hover, .main-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; color: var(--white); }
@media (max-width: 760px) {
	.site-header__inner { gap: 4px 16px; }
	.main-nav { order: 3; flex-basis: 100%; }
	.main-nav .menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 18px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
	.main-nav .menu::-webkit-scrollbar { display: none; }
	.main-nav a { white-space: nowrap; }
	.site-header__cta { margin-left: auto; padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 420px) { .site-header__cta { display: none; } }

.ticker { background: var(--white); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; gap: 14px; align-items: center; padding-top: 12px; padding-bottom: 12px; font-size: 14px; }
.ticker__label { flex-shrink: 0; background: var(--ink); color: var(--white); font-weight: 800; font-size: 12px; letter-spacing: .12em; padding: 6px 10px; }
.ticker__link { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; min-width: 0; }

/* ---------- Media ---------- */
.media { aspect-ratio: 16 / 9; background: repeating-linear-gradient(90deg, var(--line) 0 36px, var(--line-soft) 36px 72px); overflow: hidden; }
.media img, .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Video in apertura ---------- */
.intro-video { position: relative; background: var(--ink); margin-top: -32px; margin-bottom: 32px; }
.intro-video__media { display: block; width: 100%; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; }
.intro-video__toggle { position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(17,17,17,.6); color: var(--white); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.intro-video__toggle:hover { background: var(--ink); }
@media (max-width: 600px) { .intro-video__media { aspect-ratio: 4 / 3; } }

/* ---------- Home ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__media-link { display: block; }
.hero__title { font-size: clamp(32px, 4vw, 44px); }
.hero__dek { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.hero__aside { flex: 1 1 320px; min-width: 0; }
.panel { background: var(--white); padding: 28px; }
.panel--tight { padding: 22px; }
.latest a { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.latest a:hover .latest__title { text-decoration: underline; }
.latest__time { font-size: 13px; font-weight: 800; color: var(--muted-2); width: 44px; flex-shrink: 0; }
.latest__title { font-weight: 700; font-size: 15px; line-height: 1.35; }

.match { background: var(--ink); color: var(--white); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.match__copy { display: flex; flex-direction: column; gap: 6px; }
.match__teams { font-size: 34px; line-height: 1.1; }
.match__meta { font-size: 15px; color: #D6D6D2; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head > div { display: flex; flex-direction: column; }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.day { min-width: 64px; min-height: 64px; padding: 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; }
.day:hover { background: var(--paper); color: var(--ink); }
.day.is-active { background: var(--ink); color: var(--white); }
.day__wd { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.day__n { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.events a { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.events a:hover .events__title { text-decoration: underline; }
.events__year { font-family: var(--font-display); font-size: 30px; width: 90px; flex-shrink: 0; line-height: 1.1; }
.events__title { flex: 1 1 320px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.events--stacked a { flex-direction: column; gap: 6px; }
.events--stacked .events__year { font-size: 26px; width: auto; }
.events--stacked .tag { align-self: flex-start; font-size: 11px; }
.events--stacked .events__title { flex: none; font-size: 15px; }

.grid-ig { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 30%), 1fr)); gap: 10px; }
.grid-ig__item { aspect-ratio: 1; background: var(--line); display: block; }
.grid-ig__item:hover { background: #CFCFCB; }

.papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.paper { background: var(--white); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); height: 100%; }
.paper:hover { border-color: var(--ink); color: var(--ink); }
.paper > span { display: flex; flex-direction: column; gap: 4px; }
.paper__name { font-weight: 800; font-size: 17px; }
.paper__domain { font-size: 13px; color: var(--muted); }

.shop-teaser { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.shop-teaser__copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.shop-teaser__copy p { margin: 0; color: var(--body); }
.shop-teaser__items { flex: 2 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-item { background: var(--paper); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px; }
@media (max-width: 480px) { .shop-teaser__items { flex-basis: 100%; } }

.newsletter { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 28px; }
.newsletter__copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.newsletter__copy h2 { font-size: 30px; }
.newsletter__copy p { margin: 0; font-size: 15px; color: var(--body); }
.newsletter__form { flex: 1 1 380px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.nl-form label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
input[type="email"], input[type="text"], input[type="search"] { font: inherit; font-weight: 500; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid #8A8A85; background: var(--white); color: var(--ink); border-radius: 0; width: 100%; }

.ad-slot { background: var(--line); display: flex; align-items: center; justify-content: center; min-height: 250px; }
.ad-slot--wide { min-height: 90px; }

/* ---------- Articolo ---------- */
.article-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.article { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.article-layout__full { flex: 1 1 100%; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.article__title { font-size: clamp(34px, 5vw, 52px); }
.article__dek { margin: 0; font-size: 20px; line-height: 1.5; color: var(--body); }
.byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline__author { display: flex; align-items: center; gap: 12px; }
.byline__avatar { border-radius: 50%; display: block; }
.byline__name { display: block; font-weight: 800; font-size: 15px; text-decoration: none; }
.byline__meta { display: block; font-size: 13px; color: var(--muted); }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 11px; font-weight: 800; text-decoration: none; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--white); }
.share button.is-copied { background: var(--ink); color: var(--white); }
.article__figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article__figure figcaption { font-size: 13px; color: var(--muted); }
.prose { max-width: 720px; font-family: var(--font-serif); font-size: 19px; line-height: 1.7; color: var(--prose); }
.prose > * { margin: 0 0 20px; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 32px 0 12px; text-transform: uppercase; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ink); font-family: var(--font-sans); font-weight: 800; font-size: 24px; line-height: 1.35; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; font-style: normal; color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose figure { margin: 28px 0; }
.prose figcaption { font-family: var(--font-sans); font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose img { display: block; }
.prose iframe, .prose .wp-block-embed { max-width: 100%; }
.prose--page { max-width: 760px; }
.tags { max-width: 720px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; font-size: 13px; font-weight: 700; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.related { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cards--archive { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--white); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card:hover .card__title { text-decoration: underline; }
.card__media { aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card__title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.card__dek { font-size: 14px; color: var(--body); line-height: 1.45; }
.box-dark { background: var(--ink); color: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.box-dark__year { font-size: 40px; line-height: 1; }
.box-dark__title { font-weight: 700; font-size: 15px; line-height: 1.4; }
.box-dark a { color: var(--white); font-weight: 700; font-size: 14px; }

/* ---------- Pagine e archivi ---------- */
.page-head { display: flex; flex-direction: column; gap: 8px; }
.page-head__title { font-size: clamp(34px, 5vw, 52px); }
.page-head__intro { margin: 0; font-size: 17px; line-height: 1.5; color: var(--body); max-width: 640px; }
.page-head__intro p { margin: 0; }
.event-head { display: flex; align-items: center; gap: 14px; }
.event-head__year { font-size: 56px; line-height: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--ink); background: var(--white); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-submit { font: inherit; font-weight: 800; min-height: 48px; padding: 0 18px; background: var(--ink); color: var(--white); border: 0; border-radius: 999px; cursor: pointer; }

/* ---------- Calendario ---------- */
.cal-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-month { font-size: 30px; min-width: 190px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--white); }
.chips a.is-active { background: var(--ink); color: var(--white); }
.cal-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cal-grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.cal-day { aspect-ratio: 1; min-height: 64px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border: 1px solid var(--line); background: var(--off); color: var(--muted-2); text-decoration: none; }
.cal-day.has-events { background: var(--white); color: var(--ink); }
.cal-day:hover { border-color: var(--ink); color: var(--ink); }
.cal-day.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cal-day__n { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.dots { display: flex; gap: 4px; min-height: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot--trofeo { background: transparent; border: 2px solid currentColor; }
.dot--storia { border-radius: 0; background: #8A8A85; }
.cal-panel { flex: 1 1 340px; min-width: 0; padding: 24px; }
.cal-panel__date { font-size: 36px; margin: 6px 0 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--body); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .dot { color: var(--ink); }
@media (max-width: 480px) { .cal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cal-day { min-height: 56px; padding: 8px; } .cal-day__n { font-size: 22px; } .cal-month { min-width: 150px; font-size: 26px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D6D6D2; }
.site-footer__inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; font-size: 13px; line-height: 1.5; }
.site-footer__legal { display: flex; flex-direction: column; gap: 4px; }
.site-footer__links .menu { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__links a { color: var(--white); display: inline-block; padding: 4px 0; }

/* ---------- Blocchi WordPress ---------- */
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img { height: auto; }
.has-text-align-center { text-align: center; }

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