/* Giannoni theme. Tokens from the "Giannoni Sereno" design. */
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--bg: #FFFFFF;
	--surface: #F4F5F1;
	--ink: #45493F;
	--heading: #1D2119;
	--accent: #B3D23F;
	--accent-ink: #1F3A10;
	--sage: #B4D69C;
	--blush: #DFB3B3;
	--mist: #E8E8E5;
	--forest: #1E4A12;
	--footer: #232521;
	--font-heading: "Raleway", system-ui, sans-serif;
	--font-body: "Open Sans", system-ui, sans-serif;
	--font-logo: "Montserrat", system-ui, sans-serif;
	--sp-sm: 12px;
	--sp-md: 24px;
	--sp-lg: 48px;
	--sp-xl: 96px;
	--radius: 2px;
	--container: 1080px;
	--gutter: 20px;
}

/* Reset (zero specificity so components always win) */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
:where(ul.nav__list, ul.footer-menu, ul.service-list, ul.tile-list, ul.check-list) { list-style: none; padding: 0; }
:where(img) { max-width: 100%; height: auto; display: block; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--heading); line-height: 1.15; font-weight: 700; }

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

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* Brand wordmark */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--heading); line-height: 1; }
.brand__name { font-family: var(--font-logo); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; letter-spacing: .01em; }
.brand__role { font-family: var(--font-body); font-size: .95rem; margin-top: 4px; color: var(--ink); }
.brand--light, .brand--light .brand__role { color: #FFFFFF; }
.brand--static { margin-bottom: var(--sp-sm); }

/* Header and navigation */
.site-header { background: var(--bg); border-bottom: 1px solid var(--mist); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); min-height: 88px; }
.nav__list { display: flex; gap: 6px; flex-wrap: nowrap; }
.nav__list a { display: block; padding: 6px 16px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); white-space: nowrap; }
.nav__list a:hover { color: var(--heading); background: var(--surface); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { background: var(--accent); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 26px; height: 2px; background: var(--heading); position: relative; transition: transform .2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -8px; }
.nav-toggle__bar::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
	.site-header__inner { min-height: 72px; flex-wrap: wrap; }
	.brand__name { font-size: 1.3rem; }
	.brand__role { font-size: .85rem; }
	.nav-toggle { display: block; }
	.nav { display: none; width: 100%; padding-bottom: var(--sp-sm); }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 2px; }
	.nav__list a { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

/* Heroes */
.home-hero, .page-hero { position: relative; background: var(--footer); color: #FFFFFF; overflow: hidden; isolation: isolate; }
.home-hero__img, .page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 18, .45) 0%, rgba(20, 24, 18, .6) 100%); }
.home-hero__inner { min-height: min(72vh, 640px); display: flex; align-items: center; justify-content: center; padding-block: var(--sp-xl); text-align: center; }
.home-hero__quote p { font-family: var(--font-heading); font-style: italic; font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.2; color: #FFFFFF; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.home-hero__quote cite { display: block; margin-top: var(--sp-md); font-family: var(--font-heading); font-style: normal; font-weight: 600; font-size: 1.4rem; }
.home-hero__quote cite::before { content: "- "; }
.page-hero__inner { min-height: clamp(220px, 34vw, 380px); display: flex; align-items: center; justify-content: center; text-align: center; padding-block: var(--sp-lg); }
.page-hero__title { color: #FFFFFF; font-size: clamp(2rem, 4.5vw, 3.2rem); text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.page-hero--plain { background: var(--surface); color: var(--heading); }
.page-hero--plain::after { display: none; }
.page-hero--plain .page-hero__inner { min-height: 0; }
.page-hero--plain .page-hero__title { color: var(--heading); text-shadow: none; }
@media (max-width: 600px) { .br-lg { display: none; } }

/* Sections and bands */
.section { padding-block: var(--sp-xl); }
.section--tight { padding-block: var(--sp-lg); }
.section--flush-top { padding-top: 0; }
.band--sage { background: var(--sage); }
.band--blush { background: var(--blush); }
.band--mist { background: var(--mist); }
.band--sage, .band--blush { --ink: #2E3329; }
.section-title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: var(--sp-lg); max-width: 36ch; margin-inline: auto; text-wrap: balance; }
.band--sage .section-title:has(+ .section-sub) { max-width: 40ch; margin-bottom: var(--sp-md); }
.section-title--forest { color: var(--forest); font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: none; }
.section-sub { text-align: center; font-weight: 700; color: var(--heading); margin-bottom: var(--sp-lg); }
.title-rule { font-size: clamp(1.7rem, 2.8vw, 2.2rem); padding-left: 20px; border-left: 4px solid var(--accent); margin-bottom: var(--sp-md); color: #4A4E45; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose--lead { font-size: 1.07rem; }
.container--narrow.prose { margin-inline: auto; }

/* Split: text + circle image */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--sp-xl); align-items: center; }
.split--reverse { grid-template-columns: 1fr 1.35fr; }
.split--reverse .split__media { order: -1; }
.split__text h2:not(.title-rule) { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: var(--sp-md); }
.split__media { display: flex; justify-content: center; }
.circle { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (max-width: 860px) {
	.split, .split--reverse { grid-template-columns: 1fr; gap: var(--sp-lg); }
	.split__media, .split--reverse .split__media { order: -1; }
	.circle { max-width: 260px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; text-decoration: none; padding: 16px 30px; border-radius: var(--radius); border: 0; cursor: pointer; transition: background-color .15s, transform .1s; }
.btn:hover { background: #A2C12E; color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border: 1px solid var(--heading); color: var(--heading); font-size: .8rem; letter-spacing: .14em; padding: 12px 26px; margin-top: var(--sp-md); }
.btn--ghost:hover { background: var(--heading); color: #FFFFFF; }

/* Quotes */
.quote { max-width: 860px; margin-inline: auto; padding: 6px 0 6px 28px; border-left: 4px solid var(--accent); }
.quote p { font-family: var(--font-heading); font-weight: 600; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; color: #4A4E45; }
.quote cite { display: block; margin-top: var(--sp-sm); font-family: var(--font-heading); font-style: normal; font-weight: 700; color: var(--heading); }
.quote cite::before { content: "- "; }

/* Home services */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md) var(--sp-lg); max-width: 920px; margin-inline: auto; }
.service-list__item { position: relative; padding-left: 34px; }
.service-list__item::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border: 2px solid var(--forest); border-radius: var(--radius); }
.service-list__item::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 2px); width: 6px; height: 10px; border: solid var(--forest); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.service-list__item h3 { font-size: 1.15rem; font-weight: 600; color: var(--heading); }
.service-list__item p { font-size: .92rem; margin-top: 4px; }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }

/* Tile lists (short items in a row) */
.tile-list { display: grid; gap: var(--sp-md); }
.tile-list--5 { grid-template-columns: repeat(5, 1fr); }
.tile-list--4 { grid-template-columns: repeat(4, 1fr); }
.tile-list--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-inline: auto; }
.tile-list li { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 1.02rem; line-height: 1.35; padding-top: var(--sp-sm); border-top: 3px solid var(--accent); }
.band--sage .tile-list li { border-top-color: var(--forest); }
@media (max-width: 960px) { .tile-list--5, .tile-list--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tile-list--5, .tile-list--4, .tile-list--3 { grid-template-columns: 1fr; } }

/* Check list */
.check-list { display: grid; gap: 14px var(--sp-lg); max-width: 960px; margin-inline: auto; }
.check-list--2col { display: block; columns: 2; column-gap: var(--sp-lg); }\n.check-list--2col li { break-inside: avoid; margin-bottom: 14px; }
.check-list li { position: relative; padding-left: 28px; font-weight: 700; color: var(--heading); line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .2em; width: 6px; height: 11px; border: solid var(--forest); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 760px) { .check-list--2col { columns: 1; } }

/* Mindfulness programs */
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg) var(--sp-xl); }
.program__title { font-size: 1.25rem; margin-bottom: var(--sp-sm); padding-bottom: 8px; border-bottom: 3px solid var(--accent); display: inline-block; }
.program p { font-size: .95rem; }
@media (max-width: 760px) { .program-grid { grid-template-columns: 1fr; } }

/* Call to action */
.cta { padding-block: var(--sp-xl); text-align: center; }
.cta__title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; }
.cta__note { margin-top: var(--sp-sm); font-weight: 600; color: var(--heading); }
.cta .btn { margin-top: var(--sp-md); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: start; }
.contact-grid--single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.contact-card { margin-bottom: var(--sp-lg); }
.contact-card__lines { line-height: 1.9; }
.news-heading { text-align: center; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: var(--sp-sm); margin-bottom: var(--sp-md); border-bottom: 3px solid var(--accent); }
.news-card { background: var(--surface); padding: var(--sp-lg) var(--sp-md); text-align: left; }
.news-card + .news-card { margin-top: var(--sp-md); }
.news-card__img { width: 100%; max-width: 320px; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 auto var(--sp-md); }
.news-card__title { text-align: center; font-size: 1.3rem; margin-bottom: var(--sp-sm); }
.news-card .prose { font-size: .95rem; max-width: none; }
.single__img { margin-bottom: var(--sp-md); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--sp-lg); } }

/* Contact Form 7 */
.wpcf7 { scroll-margin-top: 110px; }
#scrivimi { scroll-margin-top: 110px; }
.wpcf7-form p { margin: 0 0 var(--sp-md); }
.wpcf7-form label { display: block; font-weight: 600; color: var(--heading); font-size: .95rem; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
	width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--heading);
	background: #FFFFFF; border: 1px solid #B9BDB3; border-radius: var(--radius);
}
.wpcf7-form textarea { min-height: 160px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--forest); }
.wpcf7-form ::placeholder { color: #6B7064; }
.wpcf7-acceptance { display: block; font-weight: 400; font-size: .9rem; }
.wpcf7-list-item { margin: 0 0 8px; display: block; }
.wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.wpcf7-list-item input { margin-top: .35em; accent-color: var(--forest); width: 16px; height: 16px; flex: none; }
.wpcf7-submit { display: inline-block; background: var(--accent); color: var(--accent-ink); font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 14px 32px; border: 0; border-radius: var(--radius); cursor: pointer; }
.wpcf7-submit:hover { background: #A2C12E; }
.wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7-not-valid-tip { color: #9B1C1C; font-size: .85rem; font-weight: 600; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: var(--sp-md) 0 0; padding: 12px 16px; border-radius: var(--radius); }
.wpcf7-spinner { vertical-align: middle; }

/* Footer */
.site-footer { background: var(--footer); color: #D9DBD4; font-size: .92rem; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-lg); padding-block: var(--sp-xl) var(--sp-lg); align-items: start; }
.site-footer__col + .site-footer__col { border-left: 1px solid #3A3D37; padding-left: var(--sp-lg); }
.site-footer__places { margin-top: var(--sp-md); }
.footer-menu { text-align: center; }
.footer-menu li { border-bottom: 1px solid #44473F; }
.footer-menu a { display: block; padding: 8px 0; font-weight: 600; }
.site-footer__title { color: #FFFFFF; font-size: 1.6rem; margin-bottom: var(--sp-sm); }
.site-footer__contact { text-align: right; }
.site-footer__legal { border-top: 1px solid #3A3D37; padding-block: var(--sp-md); font-size: .8rem; color: #B5B8AF; text-align: center; }
.site-footer__legal .sep { margin-inline: 8px; opacity: .5; }
@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr; text-align: center; gap: var(--sp-md); }
	.site-footer__col + .site-footer__col { border-left: 0; padding-left: 0; }
	.site-footer__contact { text-align: center; }
	.site-footer .brand { align-items: center; }
}

@media (max-width: 600px) {
	:root { --sp-xl: 64px; --sp-lg: 36px; --gutter: 16px; }
}

/* Privacy table */
.prose .wp-block-table { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose td { padding: 14px 16px 14px 0; border-bottom: 1px solid #C9CCC3; vertical-align: top; }
.prose td:first-child { width: 50%; }
@media (max-width: 600px) { .prose tr, .prose td { display: block; width: 100% !important; } .prose td:first-child { border-bottom: 0; padding-bottom: 2px; font-weight: 600; color: var(--heading); } }
.privacy-policy .page-hero--plain { background: var(--bg); }
.privacy-policy .page-hero--plain .page-hero__inner { padding-bottom: var(--sp-md); }
.privacy-policy .section { padding-top: var(--sp-md); }
.privacy-policy .container--narrow.prose { max-width: calc(var(--container) + 2 * var(--gutter)); }
.prose .wp-block-table table, .prose .wp-block-table td { border: 0; }
.prose .wp-block-table td { border-bottom: 1px solid #C9CCC3; padding: 14px 16px 14px 0; }
