/* In TV Foggia 2026 – stili */

@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
	--accent: #c8232c;
	--ink: #0f1b2d;
	--text: #1a1f2b;
	--muted: #5a6372;
	--line: #e3e6eb;
	--soft: #f2f4f7;
	--placeholder: #e3e7ed;
	--radius: 12px;
	--head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.icon { flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 15px/1 var(--body); cursor: pointer; }
.btn:hover { color: #fff; filter: brightness(0.92); }

/* --- Barra in alto --- */
.topbar { background: var(--ink); color: #e6eaf0; font-size: 13px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-social { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #e6eaf0; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* --- Testata --- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 18px; }
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-badge { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; background: var(--accent); color: #fff; font: 800 20px/1 var(--head); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 800 28px/1.1 var(--head); letter-spacing: -0.5px; color: var(--ink); }
.brand-tagline { font-size: 13px; color: var(--muted); }
.custom-logo { max-height: 72px; width: auto; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-search label { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid #d5dae1; border-radius: 999px; color: var(--muted); }
.header-search input { border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; width: 190px; color: var(--text); }
.header-search label:focus-within { border-color: var(--accent); }
.menu-toggle { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid #d5dae1; border-radius: 999px; background: #fff; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }

.main-nav ul { display: flex; flex-wrap: wrap; gap: 2px 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 12px 0; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Testata con immagine grande */
.header-banner { display: block; background: #1b1030; line-height: 0; }
.header-banner img { width: 100%; height: clamp(120px, 20vw, 290px); object-fit: cover; object-position: 50% 0; }
.has-banner { border-bottom: 1px solid var(--line); }
.header-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.has-banner .main-nav a { padding: 16px 0 13px; }
.has-banner .header-tools { padding: 8px 0; }

/* --- Homepage --- */
.home-main { display: flex; flex-direction: column; gap: 48px; padding-top: 28px; padding-bottom: 56px; }

.hero { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero-slides { position: relative; }
.slide[hidden] { display: none; }
.slide.is-active { animation: intvfg-fade .45s ease; }
@keyframes intvfg-fade { from { opacity: .35; } to { opacity: 1; } }
.slide-media { position: relative; aspect-ratio: 16 / 9; max-height: 500px; width: 100%; border-radius: 14px; overflow: hidden; background: #24364f; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-media .img-placeholder { position: absolute; inset: 0; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 96px 28px 26px; background: linear-gradient(to top, rgba(8, 14, 24, .92) 0%, rgba(8, 14, 24, .7) 45%, rgba(8, 14, 24, 0) 100%); color: #fff; }
.slide-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #e6eaf0; }
.slide-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.slide-title { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.5px; color: #fff; max-width: 920px; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.slide-title a { color: #fff; }
.slide-title a::after { content: ""; position: absolute; inset: 0; }
.slide-title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.slide-excerpt { margin: 10px 0 0; max-width: 760px; font-size: 16px; line-height: 1.5; color: #dbe1e9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider-arrows { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; z-index: 2; }
.slider-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; }
.slider-btn:hover { background: #fff; color: var(--accent); }
.slider-dots { display: flex; gap: 2px; margin-top: 4px; }
.dot { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 4px; border: 0; background: transparent; cursor: pointer; }
.dot span { display: block; width: 8px; height: 8px; border-radius: 999px; background: #c5ccd6; transition: width .3s, background .3s; }
.dot.is-active span { width: 28px; background: var(--accent); }
.kicker { margin: 16px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.kicker a { color: var(--accent); }

.hero-list { flex: 1 1 340px; }
.hero-list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-item { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: background .3s; }
.hero-item:hover { background: var(--soft); }
.hero-item.is-active { background: var(--soft); }
.hero-num { min-width: 24px; font: 800 22px/1.1 var(--head); color: #6b7484; }
.hero-item.is-active .hero-num { color: var(--accent); }
.hero-item-text { display: flex; flex-direction: column; gap: 4px; }
.hero-item-title { font: 700 16px/1.35 var(--head); }
.hero-item-meta { font-size: 12px; color: var(--muted); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.section-title { font-size: 26px; }
.hero-list .section-title { font-size: 22px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
.section-title-sm { font-size: 22px; }
.section-more { font-size: 14px; font-weight: 600; color: #b3202a; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.grid-cols { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 32px; }
.grid-list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.card { display: flex; flex-direction: column; gap: 8px; }
.card-media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--placeholder); margin-bottom: 4px; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img { transform: scale(1.03); }
.img-placeholder { display: flex; align-items: flex-end; padding: 12px; font: 700 13px var(--head); color: #8b94a3; }
.slide-media .img-placeholder { color: #c9d3e0; font-size: 16px; padding: 20px; }
.card-title { font-size: 18px; line-height: 1.3; }
.card-meta, .card-date { margin: 0; font-size: 12px; color: var(--muted); }
.card-meta { font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); }
.card-excerpt { margin: 0; font-size: 15px; color: #3e4654; }
.col-section .card { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.col-section .card:last-child { border-bottom: 0; margin-bottom: 0; }
.card-compact .card-title { font-size: 16px; line-height: 1.35; }
.home-more { text-align: center; margin: 0; }

/* --- Pagine interne --- */
.layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 32px; padding-bottom: 56px; }
.layout-main { flex: 999 1 600px; min-width: 0; }
.layout-side { flex: 1 1 300px; max-width: 100%; }
.layout-page .layout-main { max-width: 860px; margin: 0 auto; }
.page-head { margin-bottom: 28px; }
.page-head .kicker { margin-top: 0; }
.page-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.5px; }
.page-desc { color: var(--muted); margin-top: 8px; }

.entry-head .kicker { margin-top: 0; }
.entry-title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.7px; margin-top: 8px; }
.entry-lead { font-size: 19px; color: #3e4654; margin: 14px 0 0; }
.entry-media { margin: 24px 0 0; }
.entry-img { width: 100%; border-radius: 14px; }
.entry-media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content { font-size: 18px; line-height: 1.7; margin-top: 24px; max-width: 760px; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content img { border-radius: 10px; }
.entry-content .alignnone, .entry-content .aligncenter { margin: 0 0 1em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 4px 20px 12px 0; }
.entry-content .alignright { float: right; margin: 4px 0 12px 20px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: 13px; color: var(--muted); }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.entry-content h2, .entry-content h3 { margin: 1.4em 0 .5em; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; }
.entry-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.share { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 14px; font-weight: 600; margin-right: 4px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.share-btn:hover { background: var(--accent); color: #fff; }
.related { margin-top: 48px; }

/* Paginazione */
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 15px; }
.page-numbers.current { background: var(--accent); color: #fff; }
.page-numbers.dots { background: transparent; }

/* Widget */
.widget { margin-bottom: 36px; }
.widget-title { font-size: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.widget li:last-child { border-bottom: 0; }
.widget select { width: 100%; height: 44px; border: 1px solid #d5dae1; border-radius: 8px; padding: 0 10px; font: inherit; background: #fff; }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.widget .social-list li { padding: 0; border: 0; }
.social-list a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.social-list a:hover { background: var(--accent); color: #fff; }
.social-list span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.fb-box { max-width: 340px; }

/* Ricerca, commenti, 404 */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.search-field { flex: 1 1 220px; height: 44px; border: 1px solid #d5dae1; border-radius: 999px; padding: 0 16px; font: inherit; }
.notfound { padding-top: 64px; padding-bottom: 80px; max-width: 720px; }
.notfound .kicker { margin: 0; }
.empty { color: var(--muted); }
.comments { margin-top: 48px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid #d5dae1; border-radius: 8px; padding: 10px 12px; font: inherit; }
.comment-form .submit { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 15px var(--body); cursor: pointer; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: #c9d3e0; margin-top: 0; }
.site-footer a { color: #e6eaf0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 40px; }
.site-footer .widget-title { color: #fff; border-bottom-color: #3a4b63; }
.site-footer .widget li { border-bottom-color: #24364f; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.footer-name { font: 800 22px var(--head); color: #fff; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-copy { border-top: 1px solid #24364f; text-align: center; padding: 16px; font-size: 13px; }

/* --- Telefono --- */
@media (max-width: 760px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.brand-name { font-size: 22px; }
	.brand-badge { width: 44px; height: 44px; font-size: 17px; }
	.brand-tagline { display: none; }
	.header-inner { padding-top: 14px; padding-bottom: 14px; }
	.header-tools { width: 100%; }
	.header-search { flex: 1; }
	.header-search input { width: 100%; }
	.menu-toggle { display: flex; }
	.main-nav { display: none; padding-bottom: 8px; }
	.main-nav.is-open { display: block; }
	.has-banner .main-nav { order: 2; width: 100%; }
	.has-banner .header-tools { padding: 10px 0; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.main-nav .current-menu-item > a { border-bottom-color: var(--accent); }
	.home-main { gap: 36px; padding-top: 16px; }
	.slider-arrows { top: 10px; right: 10px; }
	.slide-media { aspect-ratio: 4 / 3; }
	.slide-caption { padding: 64px 16px 16px; }
	.slide-excerpt { display: none; }
	.entry-content { font-size: 17px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; }
}

@media (prefers-reduced-motion: reduce) {
	.slide.is-active { animation: none; }
	.card-img, .dot span, .hero-item { transition: none; }
}
