/*
Theme Name: Sentiero Sottile
Theme URI: https://sentierosottile.local
Author: Sentiero Sottile
Description: Tema custom minimale per Sentiero Sottile — psicologia, neuroscienze, yoga, spiritualità. Design essenziale, arioso, contemplativo.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: sentiero-sottile
*/

/* ==========================================================================
   Reset di base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ss-ivory);
	color: var(--ss-ink);
	font-family: var(--ss-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* ==========================================================================
   Palette & tipografia
   ========================================================================== */
:root {
	--ss-ivory: #FBF8F2;
	--ss-white: #FFFFFF;
	--ss-sand: #EDE1CC;
	--ss-sage: #8FA37E;
	--ss-sage-dark: #5D6E52;
	--ss-dust-blue: #AEC3CB;
	--ss-dust-blue-dark: #7C97A0;
	--ss-plum: #8C6E86;
	--ss-gold: #AD7F35;
	--ss-ink: #2F2C26;
	--ss-ink-soft: #64604F;
	--ss-line: rgba(47, 44, 38, 0.12);

	--ss-font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ss-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--ss-container: 1180px;
	--ss-radius: 6px;
}

@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/fraunces-regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/fraunces-medium.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/fraunces-medium-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/fraunces-semibold.woff2') format('woff2');
}
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/worksans-regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/worksans-medium.woff2') format('woff2');
}
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/worksans-semibold.woff2') format('woff2');
}

h1, h2, h3, h4 {
	font-family: var(--ss-font-heading);
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: var(--ss-ink);
	letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
	display: block;
	font-family: var(--ss-font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ss-sage-dark);
	margin-bottom: 1.1em;
}

.lede {
	font-size: 1.2rem;
	color: var(--ss-ink-soft);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--ss-container);
	margin: 0 auto;
	padding: 0 28px;
}
.section {
	padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--sand { background: var(--ss-sand); }
.section--sage { background: var(--ss-sage-dark); color: var(--ss-ivory); }
.section--sage h2, .section--sage p { color: var(--ss-ivory); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 20;
	background: var(--ss-ivory);
	border-bottom: 1px solid var(--ss-line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 0;
}
.site-logo {
	font-family: var(--ss-font-heading);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--ss-ink);
}
.site-logo span { color: var(--ss-sage-dark); }

.primary-nav ul { display: flex; gap: 2.2rem; align-items: center; }
.primary-nav a {
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--ss-ink-soft);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	color: var(--ss-sage-dark);
	border-color: var(--ss-sage-dark);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--ss-ink);
	margin: 5px 0;
	transition: 0.2s;
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ss-ivory);
		border-bottom: 1px solid var(--ss-line);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.primary-nav.is-open { max-height: 400px; }
	.primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 28px 24px; }
	.primary-nav li { width: 100%; }
	.primary-nav a { display: block; padding: 12px 0; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
	padding: 72px 0 96px;
}
.hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 64px;
	align-items: center;
}
.hero__title {
	margin-bottom: 0.55em;
}
.hero__title em {
	font-style: italic;
	color: var(--ss-sage-dark);
}
.hero__lines p {
	font-size: 1.15rem;
	color: var(--ss-ink-soft);
	margin-bottom: 0.35em;
}
.hero__tags {
	margin-top: 2.2rem;
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ss-sage-dark);
	font-weight: 600;
}
.hero__figure {
	position: relative;
	display: flex;
	justify-content: center;
}
.hero__figure img {
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 30px 60px -20px rgba(93, 110, 82, 0.35);
}
.hero__figure::before {
	content: "";
	position: absolute;
	inset: -18px;
	border: 1px solid var(--ss-dust-blue);
	border-radius: 50%;
	z-index: -1;
}

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.hero__figure { order: -1; }
	.hero__figure img { max-width: 320px; }
}

/* ==========================================================================
   Manifesto / intro text block
   ========================================================================== */
.manifesto {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}
.manifesto p { font-size: 1.15rem; color: var(--ss-ink-soft); }

/* ==========================================================================
   Cards "Da dove vuoi cominciare"
   ========================================================================== */
.card-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin-top: 3rem;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.path-card {
	background: var(--ss-white);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	padding: 30px 24px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.path-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -24px rgba(47, 44, 38, 0.25);
	border-color: var(--ss-sage);
}
.path-card__index {
	font-family: var(--ss-font-heading);
	font-style: italic;
	color: var(--ss-plum);
	font-size: 1.1rem;
}
.path-card h3 { margin-bottom: 0.2em; font-size: 1.15rem; }
.path-card p { font-size: 0.94rem; color: var(--ss-ink-soft); margin-bottom: 0; }
.path-card__arrow { margin-top: auto; font-size: 0.85rem; color: var(--ss-sage-dark); font-weight: 600; }

/* ==========================================================================
   Ambiti / preview grid
   ========================================================================== */
.ambit-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 3rem;
}
@media (max-width: 860px) { .ambit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ambit-grid { grid-template-columns: 1fr; } }

.ambit {
	padding: 8px 0 28px;
	border-bottom: 1px solid var(--ss-line);
}
.ambit__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ss-sand);
	margin-bottom: 16px;
	color: var(--ss-gold);
}
.ambit__mark svg { width: 16px; height: 16px; }
.ambit h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.ambit p { font-size: 0.94rem; color: var(--ss-ink-soft); margin-bottom: 0; }

/* ==========================================================================
   Video (embed Instagram)
   ========================================================================== */
.video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 3rem;
}
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }
.video-grid .instagram-media { margin: 0 !important; width: 100% !important; }

.video-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	aspect-ratio: 9 / 14;
	background: var(--ss-white);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	padding: 24px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -24px rgba(47, 44, 38, 0.25);
	border-color: var(--ss-sage);
}
.video-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ss-sand);
	color: var(--ss-sage-dark);
}
.video-card__icon svg { width: 20px; height: 20px; margin-left: 2px; }
.video-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.video-card span { font-size: 0.85rem; color: var(--ss-sage-dark); font-weight: 600; }

.video-grid__note {
	margin-top: 2.5rem;
	text-align: center;
	font-size: 0.88rem;
	color: var(--ss-ink-soft);
}
.video-grid__note a { color: var(--ss-sage-dark); font-weight: 600; }

/* ==========================================================================
   Citazione finale
   ========================================================================== */
.quote-block {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}
.quote-block p {
	font-family: var(--ss-font-heading);
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1.6;
	margin-bottom: 0.3em;
	color: var(--ss-ivory);
}
.quote-block__compass {
	display: flex;
	justify-content: center;
	margin: 1.8rem 0 1rem;
	color: var(--ss-gold);
}
.quote-block__compass svg { width: 22px; height: 22px; }
.quote-block__sig {
	font-family: var(--ss-font-body);
	font-style: normal;
	font-size: 0.82rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ss-dust-blue);
}

/* ==========================================================================
   Pagine interne (generiche)
   ========================================================================== */
.page-hero {
	padding: 64px 0 40px;
	border-bottom: 1px solid var(--ss-line);
}
.page-hero__title { margin-bottom: 0.4em; }
.page-hero .lede { max-width: 640px; }

.entry-content {
	padding: 56px 0 96px;
	max-width: 760px;
	margin: 0 auto;
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.entry-content li { list-style: disc; margin-bottom: 0.4em; }
.entry-content ol li { list-style: decimal; }
.entry-content blockquote {
	margin: 2em 0;
	padding: 0.4em 0 0.4em 1.6em;
	border-left: 2px solid var(--ss-sage);
	font-family: var(--ss-font-heading);
	font-style: italic;
	font-size: 1.2rem;
	color: var(--ss-ink-soft);
}
.entry-content img { border-radius: var(--ss-radius); margin: 1.6em 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--ss-ink-soft); margin-top: 0.5em; }

/* ==========================================================================
   Contatti
   ========================================================================== */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info dt {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ss-sage-dark);
	font-weight: 600;
	margin-bottom: 0.3em;
}
.contact-info dd { margin: 0 0 1.8em; font-size: 1.02rem; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ss-ink-soft);
	margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-white);
	font-family: var(--ss-font-body);
	font-size: 0.98rem;
	color: var(--ss-ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--ss-sage);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 13px 30px;
	background: var(--ss-sage-dark);
	color: var(--ss-ivory) !important;
	border: none;
	border-radius: var(--ss-radius);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s ease;
}
.btn:hover { background: #4a5941; }

.form-notice {
	padding: 14px 18px;
	border-radius: var(--ss-radius);
	font-size: 0.92rem;
	margin-bottom: 8px;
}
.form-notice--success { background: #E4EBDF; color: var(--ss-sage-dark); }
.form-notice--error { background: #F3E3DD; color: #9C4A32; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--ss-sand);
	padding: 56px 0 32px;
}
.site-footer__inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--ss-line);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand-mark { display: flex; align-items: center; gap: 10px; }
.site-footer__brand-mark svg { width: 20px; height: 20px; color: var(--ss-gold); flex-shrink: 0; }
.site-footer__brand .site-logo { display: block; }
.site-footer__brand p { color: var(--ss-ink-soft); font-size: 0.92rem; max-width: 320px; }
.site-footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a { font-size: 0.92rem; color: var(--ss-ink-soft); }
.site-footer__nav a:hover { color: var(--ss-sage-dark); }

.social-row { display: flex; gap: 12px; }
.social-row a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--ss-line);
	color: var(--ss-ink-soft);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-row a:hover {
	color: var(--ss-ivory);
	background: var(--ss-sage-dark);
	border-color: var(--ss-sage-dark);
}
.social-row svg { width: 17px; height: 17px; }

.site-footer__disclaimer {
	font-size: 0.78rem;
	color: var(--ss-ink-soft);
	max-width: 640px;
	margin: 18px auto 0;
	text-align: center;
	line-height: 1.6;
}
.site-footer__col-title {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ss-sage-dark);
	font-weight: 600;
	margin-bottom: 14px;
}
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 24px;
	font-size: 0.82rem;
	color: var(--ss-ink-soft);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.section-head { max-width: 640px; margin: 0 0 1rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
