/*
Theme Name: Orizzonte Fiscale Child
Theme URI: https://orizzontefiscale.it
Description: Tema figlio di Kadence per "Orizzonte Fiscale". Design token ufficiali (blu #1D4ED8, oro #C59B27). Tema con contenuti automatici e Header/Footer propri.
Version: 2.3.0
Author: Orizzonte Fiscale
Template: kadence
Text Domain: orizzonte-fiscale-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--of-blue: #1D4ED8;
	--of-blue-dark: #1E40AF;
	--of-blue-tint: #EDF3FC;
	--of-gold: #C59B27;
	--of-gold-dark: #A07F1E;
	--of-heading: #15294A;
	--of-ink: #4B5563;
	--of-line: #E2E8F0;
	--of-white: #FFFFFF;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--of-ink);
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Poppins', 'Inter', sans-serif;
	color: var(--of-heading);
	line-height: 1.25;
}

a {
	color: var(--of-blue);
}

.wp-block-button__link {
	background: var(--of-blue);
}

.content-area {
	padding: 52px 0;
}

.site-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Componenti usati dai contenuti creati automaticamente */
.of-badge {
	display: inline-block;
	padding: 0.35em 0.8em;
	border-radius: 999px;
	background: var(--of-blue-tint);
	color: var(--of-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.of-calendar-card {
	background: var(--of-white);
	border-top: 4px solid var(--of-gold);
	box-shadow: 0 4px 14px rgba(21, 41, 74, 0.08);
	padding: 12px;
}

.of-note-divulgativo {
	background: var(--of-blue-tint);
	border-left: 4px solid var(--of-gold);
	color: var(--of-ink);
	padding: 16px 20px;
	border-radius: 6px;
	font-size: 14px;
}

.of-note-divulgativo strong {
	color: var(--of-heading);
}

@media (max-width: 782px) {
	.of-calendar-card iframe {
		height: 280px;
	}
}

/* =========================================================
   HEADER — fascia blu notte con brand, menu e ricerca
   (header.php sostituisce l'header builder di Kadence)
   ========================================================= */
.of-header {
	background: var(--of-heading);
	position: sticky;
	top: 0;
	z-index: 60;
	box-shadow: 0 2px 10px rgba(9, 18, 42, 0.25);
}

.of-hbar {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 64px;
}

.of-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	flex-shrink: 0;
}

.of-brand-ico {
	width: 42px;
	height: 42px;
	border-radius: 9px;
	border: 1.5px solid rgba(197, 155, 39, 0.65);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 16px;
}

.of-b-o {
	color: var(--of-white);
}

.of-b-f {
	color: var(--of-gold);
}

.of-brand-name {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.of-n-white {
	color: var(--of-white);
}

.of-n-gold {
	color: var(--of-gold);
}

/* menu centrale */
.of-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.of-nav .of-menu {
	display: flex;
	justify-content: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.of-nav .of-menu a {
	color: #dbe4f2;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	padding: 7px 2px;
	transition: color 0.15s ease;
}

.of-nav .of-menu a:hover,
.of-nav .of-menu a:focus-visible {
	color: var(--of-white);
	text-decoration: underline;
	text-decoration-color: var(--of-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.of-nav .of-menu li.current-menu-item > a {
	color: var(--of-white);
	text-decoration: underline;
	text-decoration-color: var(--of-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* dropdown discreti */
.of-nav .menu-item-has-children {
	position: relative;
	display: flex;
	align-items: center;
}

.of-nav .menu-item-has-children > a {
	padding-right: 14px;
}

.of-nav .menu-item-has-children > a:after {
	content: "▾";
	font-size: 9px;
	margin-left: 5px;
	color: #9db0cf;
}

.of-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	background: var(--of-white);
	border: 1px solid var(--of-line);
	border-top: 2px solid var(--of-gold);
	border-radius: 0 0 8px 8px;
	min-width: 230px;
	padding: 7px;
	list-style: none;
	box-shadow: 0 14px 30px rgba(9, 18, 42, 0.18);
}

.of-nav .menu-item-has-children:hover .sub-menu,
.of-nav .menu-item-has-children:focus-within .sub-menu {
	display: block;
}

.of-nav .sub-menu a {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--of-heading);
	text-decoration: none;
}

.of-nav .sub-menu a:hover,
.of-nav .sub-menu a:focus-visible {
	background: var(--of-blue-tint);
	color: var(--of-heading);
	text-decoration: none;
}

/* destra: ricerca + newsletter + hamburger */
.of-hright {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.of-btn-nl {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: var(--of-white);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.of-btn-nl:hover,
.of-btn-nl:focus-visible {
	border-color: var(--of-gold);
	color: #F3E3B8;
}

.of-hamburger {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	padding: 6px;
}

.of-hamburger span {
	width: 22px;
	height: 2px;
	background: var(--of-white);
	border-radius: 2px;
}

/* menu mobile (drawer sotto la fascia) */
.of-mnav {
	display: none;
	background: var(--of-heading);
	padding: 6px 24px 20px;
	box-shadow: 0 18px 30px rgba(9, 18, 42, 0.4);
	max-height: calc(100vh - 64px);
	overflow: auto;
}

.of-mnav.open {
	display: block;
}

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

.of-mnav .of-mnav-list a {
	display: block;
	color: #e2e9f5;
	text-decoration: none;
	padding: 12px 0;
	font-size: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.of-mnav .of-mnav-list a:hover {
	color: var(--of-gold);
}

.of-mnav .of-mnav-list .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 14px;
}

.of-mnav .of-mnav-list .sub-menu a {
	color: #b9c6de;
	border-bottom: 0;
	padding: 9px 0;
	font-size: 14px;
}

/* =========================================================
   FRONT PAGE — Home (template front-page.php)
   ========================================================= */
.of-front {
	--b: #1D4ED8;
	--d: #1E40AF;
	--t: #EDF3FC;
	--g: #C59B27;
	--n: #15294A;
	--i: #4B5563;
	--w: #FFFFFF;
	--l: #E2E8F0;
	color: var(--i);
}

.of-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.of-front section {
	padding: 56px 0;
}

.of-hero {
	background: var(--w);
	border-bottom: 1px solid var(--l);
	padding: 70px 0;
}

.of-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 48px;
	align-items: center;
}

.of-pill {
	display: inline-block;
	background: var(--t);
	color: var(--n);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.of-hero h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 40px;
	color: var(--n);
	line-height: 1.2;
	margin: 0 0 16px;
}

.of-lead {
	font-size: 17px;
	color: var(--i);
	margin: 0 0 24px;
	max-width: 56ch;
}

.of-targets {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.of-targets span {
	border: 1.5px solid var(--b);
	color: var(--b);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12.5px;
}

/* scadenzario minimale: cerchio di puntini oro, senza riquadro */
.of-dead {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-align: center;
}

.of-dead-head {
	font-size: 15px;
	color: var(--n);
	margin: 0;
}

.of-dead-ring {
	width: 176px;
	height: 176px;
	border-radius: 50%;
	border: 3px dotted var(--g);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.of-dead-ring .of-rl {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--g);
}

.of-dead-ring .of-rd {
	font-family: 'Poppins', sans-serif;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	color: var(--n);
}

.of-dead-ring .of-rm {
	font-size: 12px;
	font-weight: 600;
	color: var(--i);
}

.of-dead-list {
	width: 100%;
	max-width: 360px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.of-dead-list li {
	border-left: 3px solid var(--g);
	background: var(--t);
	padding: 9px 12px;
	border-radius: 0 8px 8px 0;
	margin-bottom: 9px;
	text-align: left;
}

.of-dead-list li.hot {
	background: #FBF6E8;
}

.of-dead-list b {
	display: block;
	font-size: 13.5px;
	color: var(--n);
}

.of-dead-list span {
	font-size: 12px;
	color: var(--i);
}

/* calendario Google live: scadenze aggiornate automaticamente */
.of-dead-cal {
	width: 100%;
	max-width: 430px;
}

.of-dead-cal iframe {
	display: block;
	width: 100%;
	height: 430px;
	border: 1px solid var(--l);
	border-radius: 12px;
	background: var(--w);
}

.of-dead-open {
	display: inline-block;
	margin-top: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--b);
	text-decoration: none;
	border-bottom: 2px solid var(--g);
	padding-bottom: 2px;
}

.of-dead-open:hover {
	color: var(--d);
}

/* sezioni contenuto */
.of-sec-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.of-sub {
	color: var(--g);
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	display: block;
	margin-bottom: 4px;
}

.of-front h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 27px;
	color: var(--n);
	margin: 0;
}

.of-more {
	color: var(--n);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 2px solid var(--g);
	padding-bottom: 2px;
}

.of-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.of-card {
	border: 1px solid var(--l);
	border-radius: 12px;
	padding: 18px;
	background: var(--w);
	border-top: 4px solid var(--b);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.of-card:hover {
	border-color: var(--g);
	box-shadow: 0 12px 30px rgba(21, 41, 74, 0.12);
}

.of-card:nth-child(2) {
	border-top-color: var(--g);
}

.of-card:nth-child(3) {
	border-top-color: var(--n);
}

.of-card h3 {
	font-size: 15.5px;
	color: var(--n);
	margin: 0 0 6px;
}

.of-card h3 a {
	color: inherit;
	text-decoration: none;
}

.of-card h3 a:hover {
	color: var(--b);
	text-decoration: underline;
	text-decoration-color: var(--g);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.of-card .of-meta {
	font-size: 12px;
	color: #97a3b3;
	display: block;
	margin-bottom: 8px;
}

.of-card p {
	font-size: 13.5px;
	margin: 0;
}

.of-front .of-tint,
.of-tint {
	background: var(--t);
}

.of-tools {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.of-tool {
	border: 1px solid var(--l);
	border-radius: 12px;
	padding: 26px;
	background: var(--w);
	border-top: 4px solid var(--b);
}

.of-tool:nth-child(2) {
	border-top-color: var(--g);
}

.of-tool .of-ico {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: var(--t);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 14px;
}

.of-tool h3 {
	font-size: 18px;
	color: var(--n);
	margin: 0 0 8px;
}

.of-tool p {
	font-size: 14px;
	margin: 0 0 14px;
}

.of-btn {
	display: inline-block;
	background: var(--b);
	color: var(--w);
	border-radius: 8px;
	padding: 11px 20px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.of-btn:hover {
	background: var(--d);
	color: var(--w);
}

.of-btn.ghost {
	background: none;
	border: 1.5px solid var(--g);
	color: var(--g);
}

.of-cta {
	background: var(--n);
	color: var(--w);
}

.of-cta .of-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.of-cta h2 {
	color: var(--w);
}

.of-cta p {
	color: #c9d6f2;
	margin: 8px 0 0;
}

.of-cta .of-btn {
	background: var(--w);
	color: var(--n);
}

/* disclaimer divulgativo a fondo pagina */
.of-disclaimer {
	background: var(--n);
	color: #c9d6f2;
	padding: 40px 0;
}

.of-disclaimer h3 {
	color: var(--w);
	font-size: 20px;
	margin: 0 0 10px;
}

.of-disclaimer p {
	font-size: 13.5px;
	max-width: 900px;
	margin: 0;
}

/* =========================================================
   PAGINE (News, Archivio, Strumenti) — template dedicati
   ========================================================= */
.of-pagehead {
	background: var(--of-blue-tint);
	border-bottom: 1px solid var(--of-line);
	padding: 46px 0;
}

.of-pagehead h1 {
	font-size: 34px;
	margin: 4px 0 10px;
}

.of-pagehead p {
	max-width: 760px;
}

.of-page-body {
	padding: 52px 0;
}

.of-area {
	padding: 56px 0;
}

.of-area-tint {
	background: var(--of-blue-tint);
}

.of-areain {
	max-width: 780px;
	margin-bottom: 28px;
}

.of-areain h2 {
	font-size: 28px;
	border-left: 5px solid var(--g);
	padding-left: 16px;
	margin: 6px 0 10px;
}

.of-areain p {
	margin: 0;
}

.of-pagination {
	margin-top: 34px;
}

.of-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.of-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--l);
	border-radius: 8px;
	color: var(--n);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.of-pagination .page-numbers:hover {
	border-color: var(--g);
}

.of-pagination .page-numbers.current {
	background: var(--b);
	border-color: var(--b);
	color: var(--w);
}

/* =========================================================
   FOOTER (footer.php)
   ========================================================= */
.of-footer {
	background: var(--of-heading);
	color: #c8d3e6;
	padding: 52px 0 0;
	font-size: 14px;
}

.of-fgrid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: 36px;
	padding-bottom: 34px;
}

.of-fgrid h4 {
	color: var(--of-white);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.of-fbrand .of-brand-name {
	font-size: 18px;
}

.of-fmission {
	margin: 8px 0 0;
	color: var(--of-gold);
	font-weight: 600;
}

.of-fnote {
	color: #9fb0cd;
	font-size: 13px;
	margin: 6px 0 0;
}

.of-fnav ul,
.of-flegal ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.of-fnav li,
.of-flegal li {
	margin-bottom: 8px;
}

.of-footer a {
	color: #c8d3e6;
	text-decoration: none;
}

.of-footer a:hover {
	color: var(--of-gold);
	text-decoration: underline;
	text-decoration-color: var(--of-gold);
	text-underline-offset: 4px;
}

.of-fsubscribe p {
	color: #9fb0cd;
	font-size: 13px;
	margin: 0 0 14px;
}

.of-fbottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 16px 0;
	font-size: 12.5px;
	color: #8fa0b8;
}

.of-fbottom .of-container {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
	.of-nav {
		display: none;
	}

	.of-hamburger {
		display: inline-flex;
	}

	.of-hright .of-btn-nl {
		display: none;
	}

	.of-brand-name {
		font-size: 15px;
	}

	.of-grid,
	.of-cards,
	.of-tools,
	.of-fgrid {
		grid-template-columns: 1fr;
	}

	.of-dead-ring {
		width: 150px;
		height: 150px;
	}

	.of-dead-cal iframe {
		height: 340px;
	}

	.of-hero h1 {
		font-size: 34px;
	}
}