/*
Theme Name: Andrea Comandini Parrucchieri
Description: Tema onepage scuro ed editoriale per il salone Andrea Comandini Parrucchieri di Ravenna. Testi e foto si modificano da Aspetto > Personalizza > Contenuti del sito.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: andrea-comandini
*/

:root {
	--nero: #0d0d0d;
	--nero-2: #151515;
	--testo: #e9e7e3;
	--muted: #8d8a85;
	--linea: rgba(233, 231, 227, .18);
	--serif: "Minion Pro", "EB Garamond", Garamond, Baskerville, "Hoefler Text", "Times New Roman", serif;

	--grot: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", sans-serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1320px;
	--gutter: clamp(16px, 3.4vw, 48px);
	--header-h: 196px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--nero);
	color: var(--testo);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--testo); color: var(--nero); }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
figure { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--testo); color: var(--nero); padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--testo); outline-offset: 4px; }

/* Tipografia */
.display {
	font-family: var(--grot);
	font-size: clamp(2.6rem, 7vw, 6rem);
	line-height: .95;
	letter-spacing: -.04em;
	color: var(--testo);
}
.display-m {
	font-family: var(--grot);
	font-size: clamp(2.2rem, 5.2vw, 4.4rem);
	line-height: 1;
	letter-spacing: -.035em;
}
.label {
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 1.4em;
	font-weight: 400;
	font-family: var(--sans);
}
.paren-link {
	display: inline-block;
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--testo);
	transition: color .2s;
}
.paren-link:hover { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	height: var(--header-h);
	background: var(--nero);
	border-bottom: 1px solid var(--linea);
	transition: height .3s;
}
.site-header.is-scrolled { height: 120px; }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; text-decoration: none; }
.brand-logo { height: 170px; width: auto; transition: height .3s; }
.is-scrolled .brand-logo { height: 100px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.site-nav a { text-decoration: none; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--testo); }
.site-nav .nav-cta a { color: var(--testo); }
.site-nav .nav-cta a:hover { color: var(--muted); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--testo); font: inherit; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
.hero .display { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.035em; }
.hero-top { display: grid; grid-template-columns: 1fr minmax(180px, 260px); gap: 32px; align-items: end; padding-bottom: clamp(36px, 5vw, 64px); }
.hero .display { max-width: 16ch; }
.hero-side { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6em; }
.hero-photo {
	position: relative;
	margin: 0 var(--gutter);
	height: clamp(320px, 62vh, 720px);
	overflow: hidden;
	border-top: 1px solid var(--linea);
	border-bottom: 1px solid var(--linea);
}
.hero-photo img {
	width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
	filter: grayscale(1) contrast(1.08) brightness(.78);
	transform: scale(1.02);
}
.hero-photo::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(13, 13, 13, 0) 55%, rgba(13, 13, 13, .55));
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-alt { background: var(--nero-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; }
.head-row { align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.head-row .label { margin: 0; }
.col-text p { font-size: 1.08rem; color: #cfccc6; max-width: 56ch; }
.col-text .paren-link { margin-top: .8em; }

.statement {
	font-family: var(--grot);
	font-size: clamp(1.8rem, 4.2vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -.03em;
	margin: clamp(80px, 10vw, 140px) 0 0;
	padding-top: clamp(32px, 4vw, 48px);
	border-top: 1px solid var(--linea);
	color: var(--testo);
}
.statement span { display: block; max-width: 20ch; }

/* Striscia foto */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px; }
.strip figure { aspect-ratio: 3 / 4; overflow: hidden; background: var(--nero-2); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.strip figure:hover img { transform: scale(1.04); }

/* Servizi */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--linea); }
.service {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 32px;
	padding: 34px 0 30px;
	border-top: 1px solid var(--linea);
	align-items: baseline;
}
.service-num { font-size: .7rem; letter-spacing: .16em; color: var(--muted); }
.service-title { font-family: var(--grot); font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.025em; line-height: 1.1; }
.service-text { margin: 0; color: #bdbab4; max-width: 56ch; }

/* Andrea */
.portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: end; }
.portrait-photo { aspect-ratio: 3 / 4; overflow: hidden; max-width: 460px; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portrait-text .display-m { margin-bottom: .6em; }
.portrait-text p:not(.label) { font-size: 1.08rem; color: #cfccc6; max-width: 48ch; }

/* Recensioni */
.rating { margin: 0; font-size: .95rem; color: var(--testo); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.quote { margin: 0; padding-top: 24px; border-top: 1px solid var(--linea); }
.quote p { font-family: var(--grot); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.35; letter-spacing: -.01em; }
.quote cite { font-style: normal; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Contatti */
.contact .display { margin-bottom: .25em; }
.contact-phone {
	display: inline-block;
	font-family: var(--grot);
	font-size: clamp(1.8rem, 4.5vw, 3.6rem);
	letter-spacing: -.03em;
	text-decoration: none;
	border-bottom: 1px solid var(--linea);
	transition: border-color .2s;
	margin-bottom: clamp(56px, 8vw, 100px);
}
.contact-phone:hover { border-color: var(--testo); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.contact-grid > div { padding-top: 24px; border-top: 1px solid var(--linea); }
.contact-grid p { color: #cfccc6; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.hours dt { color: #cfccc6; }
.hours dd { margin: 0; color: var(--muted); white-space: nowrap; }
.social { display: flex; flex-direction: column; gap: 4px; }
.social a { text-decoration: none; }
.social a:hover { color: var(--muted); }

/* Pagine semplici */
.page-content { padding-top: calc(var(--header-h) + 80px); }
.page-content h1 { font-family: var(--grot); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; margin-bottom: .6em; }
.page-content .entry { color: #cfccc6; max-width: 70ch; }
.narrow { max-width: 860px; }
.link-arrow { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--linea); padding: 56px 0 90px; font-size: .78rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-logo { width: 150px; opacity: .9; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 .4em; }
.footer-links { display: flex; justify-content: flex-end; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--testo); }

.call-fab { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.two-col, .portrait { grid-template-columns: 1fr; gap: 20px; }
	.service { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; }
	.service-text { grid-column: 2; }
	.quotes, .contact-grid { grid-template-columns: 1fr; }
	.hero-top { grid-template-columns: 1fr; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
	.footer-meta { text-align: left; }
	.footer-links { justify-content: flex-start; }
}

@media (max-width: 760px) {
	.nav-toggle { display: block; }
	:root { --header-h: 124px; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0;
		background: var(--nero);
		padding: 40px var(--gutter);
		opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.menu-open .site-nav { opacity: 1; visibility: visible; }
	.menu-open { overflow: hidden; }
	.site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.site-nav li { width: 100%; border-bottom: 1px solid var(--linea); }
	.site-nav a { display: block; padding: 18px 0; font-family: var(--grot); font-size: 2rem; letter-spacing: -.03em; text-transform: none; color: var(--testo); }

	.strip { grid-template-columns: repeat(2, 1fr); }
	.brand-logo { height: 104px; }
	.is-scrolled .brand-logo { height: 70px; }
	.site-header.is-scrolled { height: 86px; }
	.hero-photo { height: 52vh; }

	.call-fab {
		display: inline-flex; align-items: center; gap: 8px;
		position: fixed; right: 16px; bottom: 16px; z-index: 40;
		background: var(--testo); color: var(--nero);
		padding: 12px 18px; border-radius: 999px;
		text-decoration: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
		box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.strip img { transition: none; }
}
