﻿/* ==========================================================================
	PiperNova - sito pubblico
	StilePubblico-1.css del 13/09/2026. Prima stava tutto dentro n.asp.
	Numerato: a ogni modifica si incrementa il numero del file e si aggiorna
	n.asp, così i browser non servono la versione vecchia.
	========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--bg: #F7F5F0;
	--bg-card: #FFFFFF;
	--ink: #1A1916;
	--ink-muted: #6B6860;
	--accent: #1D4E3F;
	--accent-light: #E8F2EF;
	--accent-hover: #153829;
	--border: #E0DDD6;
	--serif: 'DM Serif Display', Georgia, serif;
	--sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
	font-family: var(--sans);
	background: var(--bg);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ── NAV ── */
nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 245, 240, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	padding: 0 2rem;
}

.nav-inner {
	max-width: 1080px;
	margin: 0 auto;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}

.nav-logo img {
	height: 32px;
	width: auto;
}

.nav-logo-text {
	font-family: var(--serif);
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.nav-link {
	font-size: 14px;
	font-weight: 400;
	color: var(--ink-muted);
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
	color: var(--ink);
	background: var(--border);
}

.nav-cta {
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: var(--accent);
	text-decoration: none;
	padding: 8px 18px;
	border-radius: 8px;
	transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-hover); }

.nav-links { display: flex; align-items: center; gap: 4px; }

/* ── HERO ── */
.hero {
	max-width: 1080px;
	margin: 0 auto;
	padding: 100px 2rem 80px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.hero-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	background: var(--accent-light);
	padding: 5px 12px;
	border-radius: 4px;
	margin-bottom: 1.25rem;
}

.hero h1 {
	font-family: var(--serif);
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin-bottom: 1.25rem;
}

.hero h1 em {
	font-style: italic;
	color: var(--accent);
}

.hero-desc {
	font-size: 1.05rem;
	color: var(--ink-muted);
	line-height: 1.75;
	margin-bottom: 2rem;
	font-weight: 300;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
	display: inline-block;
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	background: var(--accent);
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 8px;
	transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
	display: inline-block;
	font-size: 15px;
	font-weight: 400;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--border);
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 8px;
	transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover { background: var(--bg-card); border-color: #bbb; }

/* Hero visual */
.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-graphic {
	width: 100%;
	max-width: 380px;
	aspect-ratio: 1 / 1;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 2.5rem;
	position: relative;
	overflow: hidden;
}

.hero-graphic::before {
	content: '';
	position: absolute;
	top: -60px; right: -60px;
	width: 200px; height: 200px;
	background: var(--accent-light);
	border-radius: 50%;
	opacity: 0.6;
}

.hero-graphic img {
	width: 80px;
	height: auto;
	position: relative;
	z-index: 1;
}

.hero-graphic-text {
	font-family: var(--serif);
	font-size: 1.4rem;
	text-align: center;
	color: var(--ink);
	line-height: 1.3;
	position: relative;
	z-index: 1;
}

.hero-stat-row {
	display: flex;
	gap: 1.5rem;
	width: 100%;
	position: relative;
	z-index: 1;
}

.hero-stat {
	flex: 1;
	background: var(--bg);
	border-radius: 10px;
	padding: 12px 14px;
	text-align: center;
}

.hero-stat strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.5rem;
	color: var(--accent);
}

.hero-stat span {
	font-size: 11px;
	color: var(--ink-muted);
	font-weight: 400;
	letter-spacing: 0.03em;
}

/* ── SECTION BASE ── */
section { padding: 80px 2rem; }

.section-inner {
	max-width: 1080px;
	margin: 0 auto;
}

.section-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.75rem;
}

.section-title {
	font-family: var(--serif);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin-bottom: 1rem;
}

.section-subtitle {
	font-size: 1rem;
	color: var(--ink-muted);
	font-weight: 300;
	line-height: 1.75;
	max-width: 560px;
}

/* ── SERVIZI ── */
#servizi { background: var(--bg-card); }

.services-header {
	margin-bottom: 3rem;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.service-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 2rem;
	transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}

.service-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 1rem;
}

.service-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	background: var(--accent-light);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-icon svg {
	width: 22px;
	height: 22px;
	stroke: var(--accent);
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service-card h3 {
	font-family: var(--serif);
	font-size: 1.2rem;
	color: var(--ink);
	margin: 0;
}

.service-card p {
	font-size: 0.9rem;
	color: var(--ink-muted);
	line-height: 1.7;
	font-weight: 300;
}

/* ── DIVIDER ── */
.divider {
	max-width: 1080px;
	margin: 0 auto;
	height: 1px;
	background: var(--border);
}

/* ── APPROCCIO ── */
#approccio { background: var(--bg); }

.approach-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	margin-top: 3rem;
}

.approach-items { display: flex; flex-direction: column; gap: 1.5rem; }

.approach-item {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.approach-num {
	font-family: var(--serif);
	font-size: 1.75rem;
	color: var(--accent);
	line-height: 1;
	min-width: 36px;
}

.approach-item h4 {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 4px;
}

.approach-item p {
	font-size: 0.875rem;
	color: var(--ink-muted);
	font-weight: 300;
	line-height: 1.65;
}

.approach-aside {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 2.5rem;
}

.approach-aside blockquote {
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1.45;
	color: var(--ink);
	font-style: italic;
	margin-bottom: 1.25rem;
}

.approach-aside cite {
	font-size: 13px;
	color: var(--ink-muted);
	font-style: normal;
	font-weight: 300;
}

/* ── CONTATTI ── */
#contatti { background: var(--bg-card); }

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
	margin-top: 3rem;
}

.contact-info p {
	font-size: 0.95rem;
	color: var(--ink-muted);
	font-weight: 300;
	line-height: 1.75;
	margin-bottom: 2rem;
}

.contact-email {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--accent);
	text-decoration: none;
	padding: 14px 20px;
	background: var(--accent-light);
	border-radius: 10px;
	transition: background 0.2s;
}

.contact-email:hover { background: #d0e8e0; }

.contact-email svg {
	width: 20px;
	height: 20px;
	stroke: var(--accent);
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 2rem;
}

.contact-card h4 {
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--ink);
	margin-bottom: 1rem;
}

.contact-rows { display: flex; flex-direction: column; gap: 12px; }

.contact-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.875rem;
}

.contact-row-label {
	color: var(--ink-muted);
	font-weight: 300;
	min-width: 80px;
}

.contact-row-value {
	color: var(--ink);
	font-weight: 400;
}

/* ── FOOTER ── */
footer {
	margin-top: auto;
	background: var(--ink);
	color: rgba(255,255,255,0.55);
	padding: 2rem;
	font-size: 13px;
}

.footer-inner {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-logo {
	font-family: var(--serif);
	font-size: 1rem;
	color: rgba(255,255,255,0.9);
}

.footer-riservata {
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.25);
	padding-bottom: 1px;
}

.footer-riservata:hover { color: #fff; border-bottom-color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
	.hero {
		grid-template-columns: 1fr;
		padding: 60px 1.5rem 60px;
		gap: 2.5rem;
	}

	.hero-visual { order: -1; }

	.hero-graphic { max-width: 280px; }

	.services-grid { grid-template-columns: 1fr; }

	.approach-grid,
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.nav-links .nav-link { display: none; }

	section { padding: 60px 1.5rem; }
}

/* ── ANIMATION ── */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hero-left { animation: fadeUp 0.7s ease both; }
.hero-visual { animation: fadeUp 0.7s 0.15s ease both; }

/* ── STILI CHE PRIMA ERANO SCRITTI DENTRO I TAG ── */
.contact-firma {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: center;
}

.contact-firma img {
	height: 48px;
	width: auto;
	opacity: 0.75;
}

footer .footer-logo-img {
	height: 28px;
	width: auto;
	opacity: 0.7;
	filter: brightness(0) invert(1);
}

/* ── INFORMATIVA PRIVACY (StilePubblico-2, 1/10/2026) ── */
.footer-link { display: inline-flex; gap: 1.25rem; flex-wrap: wrap; }
.testo-legale { max-width: 760px; }
.testo-legale .aggiornamento { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.testo-legale h2 { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.01em; margin: 2.4rem 0 0.6rem; }
.testo-legale h3 { font-size: 1.02rem; font-weight: 500; margin: 1.6rem 0 0.4rem; }
.testo-legale p, .testo-legale li { margin-bottom: 0.8rem; line-height: 1.7; }
.testo-legale ul { padding-left: 1.3rem; margin-bottom: 0.8rem; }
.testo-legale a { color: var(--accent); }
