/* ============================================================
   Campania d'Autore — Main stylesheet
   Trasposto dall'HTML hi-fi del design handoff.
   ============================================================ */

:root{
	--bg:          #f5efe4;
	--bg-soft:     #f9f4ea;
	--paper:       #ffffff;
	--ink:         #25201b;
	--ink-2:       #4a4036;
	--ink-soft:    #6e6258;
	--rule:        #e2d8c6;
	--rule-soft:   #ece3d2;
	--accent:      #c4593a;
	--accent-deep: #a94a30;
	--navy:        #1e3a52;
	--navy-deep:   #15293c;
	--leaf:        #8a8569;

	--serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	--sans:  "Outfit", "DM Sans", system-ui, -apple-system, sans-serif;

	--container: 1200px;
	--gutter: 32px;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
body{
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }

.container{
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ────────── Accessibilità ────────── */
.screen-reader-text{
	border: 0; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px;
	overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link{
	position: absolute; left: -9999px; top: 8px; z-index: 9999;
	background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 4px;
	font-size: 14px;
}
.skip-link:focus{ left: 8px; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ────────── Decorative helpers ────────── */
.fleur{
	display: flex; align-items: center; justify-content: center; gap: 14px;
	color: var(--accent); margin: 14px auto 0; opacity: .85;
}
.fleur::before, .fleur::after{
	content: ""; display: block; width: 56px; height: 1px;
	background: currentColor; opacity: .55;
}
.fleur svg{ width: 14px; height: 14px; }

.section-title{
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(28px, 3vw, 36px);
	letter-spacing: .005em;
	color: var(--ink);
	text-align: center;
	margin: 0;
}
.section-head{ text-align: center; margin: 0 0 36px; }

/* Placeholder usato quando manca un'immagine */
.placeholder-media{
	position: absolute; inset: 0; width: 100%; height: 100%;
	background:
		linear-gradient(135deg, #e9dfcd 0%, #d6c8ad 100%);
}
.luogo-media .placeholder-media,
.esperta-portrait .placeholder-media{
	position: relative;
}

/* ────────── Header ────────── */
.site-header{
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--rule-soft);
}
.site-header .inner{
	display: flex; align-items: center; gap: 28px;
	padding: 18px var(--gutter);
	max-width: 1320px; margin: 0 auto;
}
.brand{
	display: flex; align-items: center; gap: 10px;
	flex: 0 0 auto;
}
.brand-mark{ width: 46px; height: 46px; flex: 0 0 auto; color: var(--leaf); }
.brand-name{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 26px;
	line-height: 1.05;
	color: var(--navy);
	letter-spacing: .005em;
}
.brand-name em{ font-style: italic; font-weight: 400; display: block; margin-top: -2px; }

.nav{
	display: flex; align-items: center; gap: 28px;
	margin-left: auto;
}
.nav a{
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	line-height: 1.25;
	text-align: center;
	max-width: 96px;
	transition: color .15s ease;
	position: relative;
	padding: 4px 0;
}
.nav a:hover{ color: var(--accent); }
.nav a::after{
	content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px;
	height: 1px; background: var(--accent);
	transition: left .2s ease, right .2s ease;
}
.nav a:hover::after{ left: 0; right: 0; }

/* WP nav menu li (fallback markup) — reset stile lista */
.nav ul, .mobile-nav ul{ list-style: none; padding: 0; margin: 0; }
.nav > ul{ display: flex; gap: 28px; align-items: center; }

/* ────────── Buttons ────────── */
.btn{
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px;
	height: 46px; padding: 0 22px;
	border-radius: 4px;
	font-family: var(--sans);
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: .005em;
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
	white-space: nowrap;
}
.btn-primary{
	background: var(--accent);
	color: #fff;
	box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn-primary:hover{ background: var(--accent-deep); }
.btn-primary:active{ transform: translateY(1px); }
.btn-ghost{
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,.85);
}
.btn-ghost:hover{ background: rgba(255,255,255,.12); }
.btn-dark{
	background: var(--navy);
	color: #fff;
}
.btn-dark:hover{ background: var(--navy-deep); }

.header-cta{ flex: 0 0 auto; }

/* ────────── Hamburger / Mobile drawer ────────── */
.nav-toggle{
	display: none;
	margin-left: auto;
	width: 44px; height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	flex-direction: column;
	align-items: center; justify-content: center;
	gap: 5px;
}
.nav-toggle-bar{
	display: block; width: 22px; height: 2px;
	background: var(--ink);
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){
	opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){
	transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer{
	position: fixed; top: 0; right: 0; bottom: 0;
	width: min(86%, 360px);
	background: var(--bg);
	border-left: 1px solid var(--rule);
	z-index: 100;
	transform: translateX(100%);
	transition: transform .25s ease;
	padding: 80px 28px 28px;
	overflow-y: auto;
}
.mobile-drawer[hidden]{ display: block; visibility: hidden; }
.mobile-drawer.is-open{
	transform: translateX(0);
	visibility: visible;
}
.mobile-nav{ display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 22px;
	color: var(--ink);
	padding: 10px 0;
	border-bottom: 1px solid var(--rule-soft);
}
.mobile-nav a.btn{
	font-family: var(--sans);
	font-size: 14.5px;
	border-bottom: 0;
	margin-top: 24px;
	color: #fff;
}
.mobile-cta{ display: inline-flex; }

.mobile-backdrop{
	position: fixed; inset: 0;
	background: rgba(0,0,0,.4);
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}
.mobile-backdrop.is-open{
	opacity: 1;
	pointer-events: auto;
}
body.has-drawer-open{ overflow: hidden; }

/* ────────── Hero ────────── */
.hero{
	position: relative;
	height: clamp(460px, 58vw, 620px);
	overflow: hidden;
	background: #1c2a36;
}
.hero-image{
	position: absolute; inset: 0;
}
.hero-image .hero-photo{
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center center;
}
.hero::after{
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(15,25,35,.7) 0%, rgba(15,25,35,.45) 30%, rgba(15,25,35,0) 60%);
	pointer-events: none;
}
.hero-inner{
	position: relative; z-index: 2;
	height: 100%;
	display: flex; flex-direction: column; justify-content: center;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	color: #fff;
}
.hero h1{
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(40px, 5.4vw, 68px);
	line-height: 1.04;
	letter-spacing: -.005em;
	margin: 0 0 20px;
	text-wrap: pretty;
	max-width: 14ch;
	text-shadow: 0 1px 24px rgba(0,0,0,.25);
}
.hero p.lede{
	font-size: 16px;
	line-height: 1.55;
	max-width: 44ch;
	margin: 0 0 30px;
	color: rgba(255,255,255,.92);
	text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ────────── Three-up features ────────── */
.features{
	padding: 70px 0 64px;
	background: var(--bg);
}
.feat-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin-top: 24px;
}
.feat{
	text-align: center;
	padding: 8px 36px;
	border-right: 1px solid var(--rule);
}
.feat:last-child{ border-right: 0; }
.feat-icon{
	width: 64px; height: 64px; margin: 0 auto 18px;
	color: var(--leaf);
	display: flex; align-items: center; justify-content: center;
}
.feat h3{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--ink);
}
.feat p{
	margin: 0;
	color: var(--ink-soft);
	font-size: 14px;
	line-height: 1.55;
	max-width: 30ch;
	margin-inline: auto;
}

/* ────────── Itinerari cards ────────── */
.itinerari{
	padding: 30px 0 60px;
}
.itin-grid{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.itin-card{
	background: var(--paper);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--rule-soft);
	box-shadow: 0 1px 2px rgba(40,30,20,.04);
	display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.itin-card:hover{
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(40,30,20,.08);
}
.itin-media{
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.itin-media img{
	width: 100%; height: 100%;
	object-fit: cover;
}
.badge{
	position: absolute; top: 12px; left: 12px;
	background: var(--navy);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 3px;
	letter-spacing: .01em;
}
.itin-body{
	padding: 18px 20px 20px;
	display: flex; flex-direction: column; gap: 10px;
	flex: 1;
}
.itin-body h3{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 21px;
	line-height: 1.18;
	margin: 0;
	color: var(--ink);
}
.itin-body p{
	margin: 0;
	color: var(--ink-soft);
	font-size: 13.5px;
	line-height: 1.55;
	flex: 1;
}
.more-link{
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--accent);
	font-weight: 500;
	font-size: 13.5px;
	margin-top: 4px;
}
.more-link svg{ width: 14px; height: 14px; transition: transform .15s ease; }
.more-link:hover svg{ transform: translateX(3px); }

/* ────────── Categorie ────────── */
.categorie{ padding: 30px 0 60px; }
.cat-grid{
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}
.cat{
	background: var(--paper);
	border: 1px solid var(--rule-soft);
	border-radius: 6px;
	padding: 26px 18px 22px;
	text-align: center;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
	cursor: pointer;
	display: flex; flex-direction: column; align-items: center;
}
.cat:hover{
	border-color: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(40,30,20,.07);
}
.cat-icon{
	width: 52px; height: 52px;
	color: var(--leaf);
	margin-bottom: 14px;
	display: flex; align-items: center; justify-content: center;
}
.cat h3{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.22;
	margin: 0 0 10px;
	color: var(--ink);
	min-height: 2.4em;
}
.cat p{
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* ────────── Luoghi ────────── */
.luoghi{ padding: 30px 0 60px; }
.luoghi-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.luogo{
	background: var(--paper);
	border: 1px solid var(--rule-soft);
	border-radius: 6px;
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.luogo:hover{
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(40,30,20,.08);
}
.luogo-media{
	aspect-ratio: 16 / 9;
	position: relative;
	overflow: hidden;
}
.luogo-media img{
	width: 100%; height: 100%;
	object-fit: cover;
}
.luogo-body{ padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.luogo-body h3{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
	color: var(--ink);
}
.luogo-body p{
	margin: 0;
	color: var(--ink-soft);
	font-size: 13.5px;
	line-height: 1.55;
}

/* ────────── Esperta ────────── */
.esperta{
	background: var(--bg-soft);
	padding: 70px 0;
	border-top: 1px solid var(--rule-soft);
	border-bottom: 1px solid var(--rule-soft);
}
.esperta-grid{
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 60px;
	align-items: center;
}
.esperta-portrait{
	position: relative;
	aspect-ratio: 4 / 3.2;
	border-radius: 4px;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 30% 40%, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%),
		linear-gradient(180deg, #efe7d8 0%, #d9cfbb 100%);
}
.esperta-portrait img{
	width: 100%; height: 100%;
	object-fit: cover;
}
.esperta-body h2{
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(32px, 3.4vw, 40px);
	margin: 0 0 14px;
	color: var(--ink);
}
.esperta-body p{
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.6;
	max-width: 44ch;
	margin: 0 0 24px;
}

/* ────────── Newsletter ────────── */
.newsletter{
	background: var(--navy);
	color: #fff;
	padding: 56px 0;
	position: relative;
	overflow: hidden;
}
.newsletter .branch-l{
	position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
	width: 140px; opacity: .35; color: #b9c8d4;
	pointer-events: none;
}
.newsletter .inner{
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 48px;
	align-items: center;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	padding-left: 180px;
}
.newsletter h2{
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(26px, 2.6vw, 32px);
	line-height: 1.2;
	margin: 0;
}
.newsletter form{
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
}
.newsletter input[type="email"]{
	height: 48px;
	border-radius: 4px;
	border: 0;
	padding: 0 16px;
	font-family: var(--sans);
	font-size: 14.5px;
	color: var(--ink);
	background: #fff;
	outline: 0;
}
.newsletter input[type="email"]::placeholder{ color: #9b9085; }
.newsletter input[type="email"]:focus{ box-shadow: 0 0 0 3px rgba(196,89,58,.45); }
.newsletter .note{
	grid-column: 1 / -1;
	font-size: 13px;
	color: rgba(255,255,255,.75);
	margin: 4px 0 0;
}
.newsletter .ok{ color: #d9eed4; }
.newsletter .err{ color: #f5b9a8; }

/* ────────── Footer ────────── */
.site-footer{
	background: var(--bg);
	padding: 60px 0 24px;
	position: relative;
	overflow: hidden;
}
.site-footer .branch-r{
	position: absolute; right: -10px; bottom: 30px;
	width: 200px; opacity: .55; color: var(--leaf);
	pointer-events: none;
}
.footer-grid{
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
.footer-brand .brand-name{ color: var(--navy); }
.footer-brand p{
	margin: 14px 0 18px;
	color: var(--ink-soft);
	font-size: 13.5px;
	line-height: 1.55;
	max-width: 28ch;
}
.socials{ display: flex; gap: 12px; }
.socials a{
	width: 32px; height: 32px;
	border-radius: 50%;
	border: 1px solid var(--ink);
	display: flex; align-items: center; justify-content: center;
	color: var(--ink);
	transition: background .15s ease, color .15s ease;
}
.socials a:hover{ background: var(--ink); color: var(--bg); }
.socials svg{ width: 14px; height: 14px; }

.foot-col h4{
	font-family: var(--serif);
	font-weight: 500;
	font-size: 18px;
	margin: 4px 0 14px;
	color: var(--ink);
}
.foot-col ul{
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 8px;
}
.foot-col a{
	font-size: 13.5px;
	color: var(--ink-soft);
	transition: color .15s ease;
}
.foot-col a:hover{ color: var(--accent); }

.footer-bottom{
	border-top: 1px solid var(--rule);
	padding-top: 18px;
	text-align: center;
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* ────────── Responsive ────────── */
@media (max-width: 1100px){
	.nav{ gap: 18px; }
	.nav a{ font-size: 12.5px; max-width: 84px; }
	.itin-grid{ grid-template-columns: repeat(2, 1fr); }
	.cat-grid{ grid-template-columns: repeat(3, 1fr); }
	.luoghi-grid{ grid-template-columns: 1fr; }
	.footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
	.nav, .header-cta{ display: none; }
	.nav-toggle{ display: inline-flex; }
	.feat-grid{ grid-template-columns: 1fr; }
	.feat{ border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 0; }
	.feat:last-child{ border-bottom: 0; }
	.itin-grid{ grid-template-columns: 1fr; }
	.cat-grid{ grid-template-columns: repeat(2, 1fr); }
	.esperta-grid{ grid-template-columns: 1fr; gap: 32px; }
	.newsletter .inner{ grid-template-columns: 1fr; padding-left: var(--gutter); gap: 24px; }
	.newsletter .branch-l{ display: none; }
	.newsletter form{ grid-template-columns: 1fr; }
	.footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}
