/* =========================================================
   Se Finanza - Design tokens (estratti dal sito originale)
   ========================================================= */
:root {
	--color-dark: #051221;
	--color-dark-2: #0d2f56;
	--color-gold: #a18b41;
	--color-gold-dark: #7d6a30;
	--color-light-bg: #eceff3;
	--color-white: #ffffff;
	--color-text: #1d1e20;
	--color-text-muted: #5b6270;
	--color-border: #dadce0;

	--font-heading: 'DM Serif Display', serif;
	--font-body: 'Poppins', sans-serif;

	--container-width: 1240px;

	--h1-desktop: 64px;
	--h1-mobile: 40px;
	--h2-desktop: 56px;
	--h2-mobile: 36px;
	--h3-desktop: 48px;
	--h3-mobile: 32px;
	--h4-desktop: 40px;
	--h4-mobile: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 20px;
}

h1 { font-size: var(--h1-mobile); }
h2 { font-size: var(--h2-mobile); }
h3 { font-size: var(--h3-mobile); }
h4 { font-size: var(--h4-mobile); }

@media (min-width: 920px) {
	h1 { font-size: var(--h1-desktop); }
	h2 { font-size: var(--h2-desktop); }
	h3 { font-size: var(--h3-desktop); }
	h4 { font-size: var(--h4-desktop); }
}

p { margin: 0 0 16px; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 90px 0;
	position: relative;
}

.section--light {
	background: var(--color-light-bg);
}

.section--dark {
	position: relative;
	color: var(--color-white);
	background:
		radial-gradient(1100px 560px at 8% -10%, rgba(161, 139, 65, 0.20), transparent 60%),
		radial-gradient(900px 520px at 108% 115%, rgba(53, 125, 249, 0.14), transparent 60%),
		linear-gradient(180deg, var(--color-dark) 0%, #081a30 100%);
	overflow: hidden;
}

.section--dark::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('../images/hero-bg.jpg');
	background-size: cover;
	background-position: center;
	opacity: 0.07;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.section--dark::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(161, 139, 65, 0.6), transparent);
}

.section--dark > .container {
	position: relative;
	z-index: 1;
}

.section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 56px;
}

.section-header p {
	color: var(--color-text-muted);
	font-size: 18px;
}

.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-gold);
	margin-bottom: 12px;
}

/* Buttons */
.btn {
	display: inline-block;
	position: relative;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 14px;
	padding: 16px 40px;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
	cursor: pointer;
	text-align: center;
}

.btn:hover {
	transform: translateY(-3px);
}

.btn:active {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--color-gold);
	color: var(--color-white);
}
.btn--primary:hover {
	background: var(--color-dark);
	box-shadow: 0 14px 28px rgba(161, 139, 65, 0.35);
}

.btn--secondary {
	background: transparent;
	color: var(--color-white);
	border-color: var(--color-white);
}
.btn--secondary:hover {
	background: var(--color-white);
	color: var(--color-dark);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.btn--dark {
	background: var(--color-dark);
	color: var(--color-white);
}
.btn--dark:hover {
	background: var(--color-gold);
	box-shadow: 0 14px 28px rgba(161, 139, 65, 0.35);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	background: var(--color-dark);
	padding: 24px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
	padding: 12px 0;
	background: rgba(5, 18, 33, 0.96);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.site-header .site-logo img {
	transition: max-width 0.3s ease;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-logo img {
	max-width: 180px;
}

.main-nav {
	display: none;
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
}

.main-nav a {
	position: relative;
	display: inline-block;
	color: var(--color-white);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 300;
	padding-bottom: 4px;
	transition: color 0.25s ease;
}

.main-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--color-gold);
	transition: width 0.25s ease;
}

.main-nav a:hover { color: var(--color-gold); }
.main-nav a:hover::after { width: 100%; }

.header-cta { display: none; }

.nav-toggle {
	background: none;
	border: none;
	color: var(--color-white);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

@media (min-width: 920px) {
	.main-nav { display: block; }
	.header-cta { display: inline-block; }
	.nav-toggle { display: none; }
}

.mobile-nav {
	display: none;
	background: var(--color-dark);
	border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 16px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mobile-nav a {
	color: var(--color-white);
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
}

@media (min-width: 920px) {
	.mobile-nav { display: none !important; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative;
	background: var(--color-dark);
	color: var(--color-white);
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	top: -10%;
	left: 0;
	width: 100%;
	height: 120%;
	object-fit: cover;
	opacity: 0.35;
	will-change: transform;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 18, 33, 0.35) 0%, rgba(5, 18, 33, 0.85) 100%);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 40px;
	padding: 64px 0;
}

.hero-text { max-width: 620px; text-align: center; }

.hero-text h1 span { color: var(--color-gold); }

.hero-text p {
	font-size: 18px;
	margin-bottom: 32px;
}

.hero-text > * {
	opacity: 0;
	transform: translateY(24px);
	animation: heroFadeUp 0.8s ease forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.28s; }
.hero-text > *:nth-child(3) { animation-delay: 0.46s; }

.hero-photo {
	position: relative;
	opacity: 0;
	animation: heroFadeUp 1s ease forwards;
	animation-delay: 0.3s;
}

.hero-photo::before {
	content: '';
	position: absolute;
	inset: -12%;
	background: radial-gradient(circle, rgba(161, 139, 65, 0.4), transparent 70%);
	filter: blur(30px);
	z-index: -1;
}

.hero-photo img {
	border-radius: 16px;
	max-width: 320px;
}

@keyframes heroFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 920px) {
	.hero-content {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
		padding: 110px 0;
	}
	.hero-text { text-align: left; }
	.hero-photo img { max-width: 395px; }
}

/* =========================================================
   Grid layouts (servizi / metodologia / progetti)
   ========================================================= */
.grid {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 16px;
	padding: 40px 32px;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(29, 30, 32, 0.1);
	border-color: transparent;
}

.card .icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-light-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 22px;
	transition: transform 0.35s ease;
}

.card:hover .icon {
	transform: scale(1.12) rotate(-6deg);
}

.card h3 {
	font-size: 22px;
	font-family: var(--font-body);
	font-weight: 500;
	margin-bottom: 12px;
}

.card p {
	color: var(--color-text-muted);
	margin: 0;
}

/* Metodologia - step numerati */
.step {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.step-number {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-gold);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-size: 20px;
}

.step h3 {
	font-size: 20px;
	font-family: var(--font-body);
	font-weight: 500;
	margin-bottom: 8px;
}

.step p { color: var(--color-text-muted); margin: 0; }

/* Testimonianze */
.testimonial {
	background: var(--color-white);
	border-radius: 16px;
	padding: 40px;
	border: 1px solid var(--color-border);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(29, 30, 32, 0.1);
}

.testimonial .stars {
	color: var(--color-gold);
	letter-spacing: 2px;
	margin-bottom: 16px;
}

.testimonial p {
	font-style: italic;
	color: var(--color-text);
}

.testimonial .author {
	font-weight: 500;
	color: var(--color-gold);
	margin-top: 16px;
	display: block;
}

/* FAQ (accordion) */
.faq-item {
	border-bottom: 1px solid var(--color-border);
}

.faq-question {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 24px 0;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 17px;
	color: var(--color-text);
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.faq-question::after {
	content: '+';
	font-size: 24px;
	color: var(--color-gold);
	flex: none;
	margin-left: 16px;
	transition: transform 0.3s ease;
	display: inline-block;
}

.faq-item.is-open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0;
	color: var(--color-text-muted);
	transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
	opacity: 0;
}

.faq-item.is-open .faq-answer {
	max-height: 400px;
	padding: 0 0 24px;
	opacity: 1;
}

/* Newsletter */
.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 480px;
	margin: 0 auto;
}

@media (min-width: 600px) {
	.newsletter-form { flex-direction: row; }
}

.newsletter-form input[type="email"] {
	flex: 1;
	padding: 16px 20px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 15px;
}

/* Contact form */
.contact-form {
	display: grid;
	gap: 16px;
	max-width: 640px;
}

.contact-form label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 15px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.form-notice {
	padding: 16px 20px;
	border-radius: 10px;
	margin-bottom: 24px;
}
.form-notice--success { background: #def4f0; color: #008361; }
.form-notice--error { background: #ffe8ef; color: #d63163; }

/* Metriche (chi sono) */
.metric {
	text-align: center;
}
.metric strong {
	display: block;
	font-family: var(--font-heading);
	font-size: 40px;
	color: var(--color-gold);
	font-variant-numeric: tabular-nums;
}
.metric span {
	color: var(--color-text-muted);
	font-size: 14px;
}

/* Timeline (chi sono) */
.timeline {
	border-left: 2px solid var(--color-border);
	padding-left: 32px;
	display: grid;
	gap: 40px;
}
.timeline-item .period {
	color: var(--color-gold);
	font-weight: 500;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--color-dark);
	color: var(--color-white);
	padding: 64px 0 32px;
}

.footer-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
	margin-bottom: 40px;
}

@media (min-width: 700px) {
	.footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-grid h4 {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-gold);
	margin-bottom: 16px;
}

.footer-grid p, .footer-grid a {
	color: rgba(255,255,255,0.8);
	font-size: 15px;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 24px;
	font-size: 13px;
	color: rgba(255,255,255,0.6);
	text-align: center;
}

.footer-bottom p { margin: 0 0 8px; }

/* Blog */
.post-list {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.post-list { grid-template-columns: repeat(2, 1fr); }
}

.post-card {
	border: 1px solid var(--color-border);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.post-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(29, 30, 32, 0.1);
}

.post-card img {
	aspect-ratio: 16/9;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-card:hover img { transform: scale(1.06); }

.post-card a { overflow: hidden; display: block; }

.post-card-body { padding: 24px; }

.post-card h3 {
	font-size: 20px;
	font-family: var(--font-body);
	font-weight: 500;
}

.post-card .post-meta {
	font-size: 13px;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.single-content {
	max-width: 760px;
	margin: 0 auto;
}

.single-content img { border-radius: 12px; margin: 24px 0; }

.pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 48px;
}

.pagination a, .pagination span {
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	transition: background-color 0.25s ease, color 0.25s ease;
}

.pagination a:hover {
	background: var(--color-gold);
	color: var(--color-white);
	border-color: var(--color-gold);
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-group.is-visible > * {
	opacity: 1;
	transform: translateY(0);
}

.reveal-group > * {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.35s; }

/* =========================================================
   Parallax
   ========================================================= */
.parallax-bg {
	will-change: transform;
}

/* =========================================================
   Scroll-to-top button
   ========================================================= */
.scroll-top-btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-gold);
	color: var(--color-white);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
	z-index: 90;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-top-btn:hover {
	background: var(--color-dark);
}
