/* Ilaria Cancarini — tema */

:root {
	--green: #78b284;
	--green-dark: #4f7f5b;
	--green-ink: #2f4a36;
	--mint: #c4e9c9;
	--mint-soft: #eef8ef;
	--ink: #2b2b2b;
	--muted: #5f6661;
	--line: #dfe9e1;
	--white: #fff;
	--radius: 16px;
	--font-body: 'Montserrat', system-ui, sans-serif;
	--font-head: 'Oswald', 'Arial Narrow', sans-serif;
	--font-script: 'Charmonman', cursive;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 48px);
	--space: clamp(64px, 9vw, 128px);
	--header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--green-ink);
	margin: 0 0 .5em;
	letter-spacing: .01em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px; background: var(--white); color: var(--ink);
}

:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.label {
	font-family: var(--font-script);
	font-size: 1.1rem;
	color: var(--green-dark);
	margin: 0 0 .6em;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.label::after {
	content: '';
	width: 48px;
	height: 1px;
	background: currentColor;
	opacity: .6;
}
.label a { color: inherit; text-decoration: none; }
.label--light { color: var(--white); }

/* Pulsanti */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 28px;
	border: 1.5px solid var(--green);
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	color: var(--green-ink);
	text-decoration: none;
	background: transparent;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
	margin-top: 1rem;
}
.btn svg { transition: transform .25s; }
.btn:hover { background: var(--green); color: var(--white); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--green); color: var(--white); }
.btn--solid:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--light { border-color: var(--white); color: var(--green-ink); background: var(--white); margin: 0; }
.btn--light:hover { background: var(--green-ink); border-color: var(--green-ink); color: var(--white); }
.btn--small { padding: 9px 18px; font-size: .85rem; }

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	transition: background .3s, box-shadow .3s;
}
.site-header.is-sticky,
.nav-open .site-header {
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 1px 0 var(--line);
	backdrop-filter: blur(8px);
}
.site-header__inner {
	height: 100%;
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.logo img { width: 140px; height: auto; }

.site-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: clamp(16px, 2.4vw, 36px);
}
.site-nav__menu a {
	position: relative;
	display: block;
	padding: 6px 0;
	font-weight: 600;
	font-size: .95rem;
	color: var(--green-ink);
	text-decoration: none;
}
.site-nav__menu a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--green);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .4s cubic-bezier(.8, 0, .2, 1);
}
.site-nav__menu a:hover::after,
.site-nav__menu .current-menu-item > a::after,
.site-nav__menu .current_page_item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}
.site-nav__menu li:last-child > a {
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--green);
	color: var(--white);
}
.site-nav__menu li:last-child > a::after { display: none; }
.site-nav__menu li:last-child > a:hover { background: var(--green-dark); }

.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	min-width: 220px;
	background: var(--white);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .2s;
}
.site-nav .sub-menu a { padding: 8px 18px; }
.site-nav li { position: relative; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
	z-index: 60;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute;
	left: 11px;
	width: 24px;
	height: 2px;
	background: var(--green-ink);
	transition: transform .3s, opacity .3s;
}
.nav-toggle__bar { top: 22px; }
.nav-toggle__bar::before { content: ''; left: 0; top: -8px; }
.nav-toggle__bar::after { content: ''; left: 0; top: 8px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed;
		inset: 0;
		background: var(--white);
		padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}
	/* backdrop-filter crea un contenitore per i figli fixed: col menu aperto va tolto, altrimenti il menu resta alto quanto l'header */
	.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }
	.site-nav__menu { flex-direction: column; gap: 6px; }
	.site-nav__menu a { font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; padding: 8px 0; }
	.site-nav__menu li:last-child > a { display: inline-block; margin-top: 16px; font-size: 1.2rem; padding: 12px 28px; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.site-nav .sub-menu a { font-size: 1.2rem; }
}

/* Hero */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	padding: calc(var(--header-h) + 40px) var(--gutter) var(--space);
	max-width: 1400px;
	margin-inline: auto;
	gap: 40px;
}
.hero::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0; right: 0; bottom: 0;
	width: 38%;
	background: var(--mint);
	border-bottom-left-radius: 120px;
}
.hero--noimg::before { width: 100vw; left: 50%; right: auto; transform: translateX(-50%); background: var(--mint-soft); border-radius: 0; }
.hero__text { max-width: 640px; }
.hero__intro { font-size: 1.12rem; color: var(--muted); }
.hero__intro p:last-child { margin-bottom: 0; }
.hero__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius) var(--radius) var(--radius) 120px;
	box-shadow: 0 30px 60px -30px rgba(47, 74, 54, .45);
}
.hero--home .hero__media img { aspect-ratio: 1 / 1; border-radius: 50% 50% var(--radius) 50%; box-shadow: none; }
.hero--noimg { padding-bottom: clamp(48px, 7vw, 96px); }
.hero--noimg .hero__text { max-width: 820px; }

@media (min-width: 900px) {
	.hero { grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); min-height: 88vh; }
	.hero--noimg { grid-template-columns: 1fr; min-height: 0; }
	.hero__media { max-width: 520px; justify-self: end; width: 100%; }
}
@media (max-width: 899px) {
	.hero::before { width: 100%; height: 40%; top: auto; border-radius: 80px 0 0 0; }
	.hero--noimg::before { height: 100%; border-radius: 0; }
	.hero__media { max-width: 460px; }
}

/* Sezioni */
.split,
.aree,
.news,
.steps,
.prices,
.faq,
.sedi,
.content,
.landing-form { padding-block: var(--space); }

.split--tint,
.prices { background: var(--mint-soft); }

.split__grid {
	display: grid;
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.split__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius);
}
.split--reverse .split__media img { border-radius: 120px var(--radius) var(--radius) var(--radius); }
@media (min-width: 900px) {
	.split__grid { grid-template-columns: 1fr 1fr; }
	.split__media { max-width: 480px; }
	.split--tint .split__media { justify-self: end; }
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:not(.label) { color: var(--muted); }
.section-head--row {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}
.section-head--row h2 { margin: 0; }
.section-head--row .btn { margin: 0; }

/* Aree */
.aree__grid {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}
@media (min-width: 600px) { .aree__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .aree__grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.area__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	margin-bottom: 18px;
}
.area__num {
	font-family: var(--font-head);
	color: var(--green);
	font-size: .95rem;
	letter-spacing: .1em;
	margin: 0 0 4px;
}
.area p:not(.area__num) { color: var(--muted); font-size: .97rem; }

/* Card articoli */
.cards {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(47, 74, 54, .35); }
.card__media { display: block; aspect-ratio: 4 / 3; background: var(--mint-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-dark); font-weight: 600; margin-bottom: 8px; }
.card__title { font-size: 1.3rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.card__more { font-weight: 600; font-size: .9rem; text-decoration: none; }
.card__more::after { content: ' →'; }

/* Contenuto testuale */
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 26px; margin-bottom: .4em; }
.prose li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .5em;
	width: 11px;
	height: 12px;
	background: url('../img/elenco.svg') no-repeat center / contain;
}
.prose ul.columns { columns: 2 240px; column-gap: 40px; }
.prose ul.columns li { break-inside: avoid; }
.prose blockquote {
	margin: 2em 0;
	padding: 28px 32px;
	background: var(--mint-soft);
	border-left: 4px solid var(--green);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-family: var(--font-head);
	font-size: 1.3rem;
	line-height: 1.45;
	color: var(--green-ink);
}
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose a { font-weight: 500; }

/* Passi visita */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(16px, 3vw, 40px);
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.step__num {
	font-family: var(--font-head);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1;
	color: var(--mint);
	-webkit-text-stroke: 1px var(--green);
}
.step__body .prose { color: var(--muted); }
@media (min-width: 900px) {
	.steps__list { grid-template-columns: 1fr 1fr; }
}

/* Prezzi */
.prices__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-bottom: 24px;
}
.price {
	padding: 36px;
	background: var(--white);
	border-radius: var(--radius);
}
.price__value {
	font-family: var(--font-head);
	font-size: 2.8rem;
	font-weight: 700;
	color: var(--green);
	line-height: 1;
	margin-bottom: 16px;
}
.price p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 44px 22px 0;
	position: relative;
	font-weight: 600;
	color: var(--green-ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem;
	font-weight: 400;
	color: var(--green);
	transition: transform .25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item .prose { padding: 0 0 22px; color: var(--muted); }

/* Sedi */
.sedi { background: var(--green-ink); color: #dfeee2; }
.sedi h3 { color: var(--white); }
.sedi a { color: var(--white); }
.sedi .label { color: var(--mint); }
.sedi__head { max-width: 640px; margin-bottom: 40px; }
.sedi__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sede {
	padding: 28px;
	border: 1px solid rgba(196, 233, 201, .25);
	border-radius: var(--radius);
}
.sede p { margin-bottom: .4em; font-size: .95rem; }
.sede__city { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--mint); }
.sede__note { opacity: .75; }
.sede .btn { color: var(--white); border-color: var(--mint); }
.sede .btn:hover { background: var(--mint); color: var(--green-ink); }
.sedi__mail { margin: 32px 0 0; }
.sedi--full { background: var(--white); color: var(--ink); }
.sede__map { font-weight: 600; font-size: .9rem; text-decoration: none; }

.contact-card {
	background: var(--white);
	border-radius: var(--radius);
	padding: clamp(24px, 3vw, 36px);
	box-shadow: 0 24px 50px -30px rgba(47, 74, 54, .35);
	display: grid;
	gap: 12px;
	align-self: center;
}
.contact-card__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--green-ink); margin: 0 0 4px; }
.contact-card__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	text-decoration: none;
	color: var(--green-ink);
	font-weight: 600;
	transition: border-color .2s, background .2s;
	word-break: break-word;
}
.contact-card__row:hover { border-color: var(--green); background: var(--mint-soft); }
.contact-card__row svg { flex: none; color: var(--green); }
.contact-card__row small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.contact-card__note { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
@media (min-width: 900px) {
	.hero--contact { grid-template-columns: 1.2fr .8fr; }
}
.sedi--full h3 { color: var(--green-ink); }
.sedi--full a { color: var(--green-dark); }
.sedi--full .sede { border-color: var(--line); background: var(--mint-soft); }
.sedi--full .sede__city { color: var(--green-dark); }
.sedi--full .sede .btn { color: var(--green-ink); border-color: var(--green); }
.sedi--full .sede .btn:hover { background: var(--green); color: var(--white); }

/* Articolo */
.post__head { padding: calc(var(--header-h) + 56px) 0 40px; background: var(--mint-soft); }
.post__head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.post__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.post__cover { margin: -1px auto 48px; padding-top: 40px; }
.post__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.post .prose { padding-bottom: var(--space); }
.post__head + .prose { padding-top: clamp(40px, 6vw, 64px); }
.post__intro { font-size: 1.15rem; color: var(--muted); margin-bottom: 2em; }
.news--related { background: var(--mint-soft); }

.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.page-numbers {
	min-width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; border: 1px solid var(--line);
	text-decoration: none; color: var(--green-ink);
}
.page-numbers.current { background: var(--green); color: var(--white); border-color: var(--green); }

.landing-form { background: var(--mint-soft); }
.small { font-size: .85rem; color: var(--muted); }

/* Footer */
.insta { padding-bottom: clamp(48px, 7vw, 88px); }

.site-footer__main { border-top: 1px solid var(--line); padding-top: 56px; }
.site-footer__grid {
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	font-size: .95rem;
	color: var(--muted);
}
.site-footer__brand img { margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--green-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.widget-title { font-size: .9rem; margin-bottom: 14px; }
.site-footer__copy {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 48px;
	padding-block: 24px 96px;
	border-top: 1px solid var(--line);
	font-size: .85rem;
	color: var(--muted);
}
.site-footer__copy p { margin: 0; }

/* Animazioni */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Indice articolo */
.toc { background: var(--mint-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 2em; }
.toc__title { font-family: var(--font-head); font-size: 1.15rem; color: var(--green-ink); margin: 0 0 .6em; }
.prose .toc ol { margin: 0; padding-left: 1.3em; }
.prose .toc li { padding-left: 4px; margin-bottom: .3em; }
.prose .toc li::before { content: none; }
.toc a { color: var(--green-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Filtro categorie blog */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cat-filter a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--green-ink); text-decoration: none; transition: background .2s, border-color .2s; }
.cat-filter a:hover { border-color: var(--green); }
.cat-filter a[aria-current="page"] { background: var(--green); border-color: var(--green); color: var(--white); }

/* Ricette */
.recipe-meta { background: var(--mint-soft); border-radius: var(--radius); padding: 14px 20px; font-size: .95rem; }
.prose ol.recipe-steps { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose ol.recipe-steps li { padding-left: 6px; margin-bottom: .7em; }
.prose ol.recipe-steps li::before { content: none; }
