/* =========================================================================
   Hidden Sicily DMC
   Colori e tipografia derivano dal brand kit (generate_brand_kit.py):
   inchiostro, carta, ocra, muted, sabbia; Georgia maiuscoletto per il
   marchio e i titoli, sans di sistema per il corpo.
   ========================================================================= */

:root {
	--ink:        #11100e;
	--paper:      #f7f1e6;
	--off-white:  #fbfaf7;
	--ochre:      #d5a047;
	--muted:      #6f675b;
	--sand:       #ddd2c0;
	--line:       #e4dccd;

	--serif: Georgia, "Times New Roman", Times, serif;
	--sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap:    1180px;
	--wrap-sm:  760px;
	--gutter:    20px;

	--r:      2px;
	--shadow: 0 1px 2px rgba(17, 16, 14, .05), 0 8px 24px rgba(17, 16, 14, .06);

	--step: clamp(3rem, 7vw, 5.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
	margin: 0;
	background: var(--off-white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration-color: var(--sand); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--ochre); }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--paper); padding: .7rem 1.1rem;
}
.skip-link:focus { left: 0; }

.eyebrow {
	font-family: var(--sans); font-size: .72rem; font-weight: 700;
	letter-spacing: .18em; text-transform: uppercase; color: var(--ochre);
	margin: 0 0 .9rem;
}

/* --- Bottoni ----------------------------------------------------------- */

.btn {
	display: inline-block; padding: .82rem 1.6rem;
	font-family: var(--sans); font-size: .78rem; font-weight: 700;
	letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
	border: 1px solid var(--ink); border-radius: var(--r);
	background: var(--ink); color: var(--paper);
	transition: background .18s ease, color .18s ease, border-color .18s ease;
	cursor: pointer;
}
.btn:hover { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--ochre); border-color: var(--ochre); }

/* --- Testata ----------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--off-white);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.2rem; min-height: 74px;
}

.brand { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; flex: 0 0 auto; }
.brand__name {
	font-family: var(--serif); font-weight: 700; font-variant: small-caps;
	letter-spacing: .055em; font-size: 1.42rem; color: var(--ink); line-height: 1;
}
.brand__dmc {
	font-family: var(--sans); font-weight: 800; font-size: .58rem;
	letter-spacing: .22em; color: var(--ochre);
}
.brand img { max-height: 46px; width: auto; }

.nav-toggle {
	display: none; border: 1px solid var(--line); background: transparent;
	border-radius: var(--r); padding: .55rem .7rem; cursor: pointer; line-height: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { display: flex; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
	font-size: .76rem; font-weight: 700; letter-spacing: .13em;
	text-transform: uppercase; text-decoration: none; color: var(--ink);
	padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { border-bottom-color: var(--ochre); }

.lang-switch { display: flex; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.lang-switch a {
	font-size: .7rem; font-weight: 700; letter-spacing: .09em;
	text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-current a { color: var(--ink); border-bottom: 2px solid var(--ochre); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-header__nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--off-white); border-bottom: 1px solid var(--line);
		padding: 1.1rem var(--gutter) 1.5rem;
	}
	.site-header__nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: flex-start; gap: .1rem; }
	.site-nav a { display: block; padding: .72rem 0; font-size: .9rem; width: 100%; border-bottom: 1px solid var(--line); }
	.site-nav a:hover, .site-nav .current-menu-item > a { border-bottom-color: var(--ochre); }
	.lang-switch { margin-top: 1.1rem; }
}

/* --- Hero -------------------------------------------------------------- */

.hero {
	position: relative; display: grid; align-items: center;
	min-height: clamp(360px, 62vh, 620px);
	background: var(--ink); color: var(--paper); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(17,16,14,.34) 0%, rgba(17,16,14,.62) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: var(--step); }
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero__lead { font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 56ch; color: var(--sand); }
.hero__tagline {
	font-family: var(--serif); font-style: italic; font-size: 1.02rem;
	color: var(--sand); margin-top: 1.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.page-head { padding-block: clamp(2.6rem, 6vw, 4.4rem) clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; }

/* --- Sezioni ----------------------------------------------------------- */

.section { padding-block: var(--step); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2 { color: var(--paper); }
.section--ink p { color: var(--sand); }

.section__head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__head p { color: var(--muted); margin: 0; }
.section--ink .section__head p { color: var(--sand); }

/* --- Griglie e schede --------------------------------------------------- */

.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 1.9rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
	.grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--off-white); border: 1px solid var(--line);
	border-radius: var(--r); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.22rem; margin: 0 0 .5rem; }
.card__title a { text-decoration: none; }
.card__text { color: var(--muted); font-size: .94rem; margin: 0 0 1.1rem; }
.card__meta {
	margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	font-size: .8rem; color: var(--muted);
}
.card__price { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.card__price small { font-family: var(--sans); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }

/* --- Contenuto editoriale ----------------------------------------------- */

.entry { padding-block: clamp(2.4rem, 5vw, 4rem); }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote {
	margin: 2em 0; padding: .3em 0 .3em 1.4em;
	border-left: 3px solid var(--ochre);
	font-family: var(--serif); font-style: italic; font-size: 1.14rem; color: var(--muted);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.entry-content th, .entry-content td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --- Itinerario: giorno per giorno --------------------------------------- */

.days { list-style: none; margin: 0; padding: 0; }
.day { display: grid; grid-template-columns: 78px 1fr; gap: 1.5rem; padding: 1.7rem 0; border-top: 1px solid var(--line); }
.day:last-child { border-bottom: 1px solid var(--line); }
.day__n {
	font-family: var(--serif); font-size: .72rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); padding-top: .25rem;
}
.day__n b { display: block; font-size: 1.9rem; letter-spacing: 0; color: var(--ink); line-height: 1; }
.day__title { font-size: 1.12rem; margin: 0 0 .5rem; }
.day__body { color: var(--muted); }
.day__foot { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; }

@media (max-width: 620px) {
	.day { grid-template-columns: 1fr; gap: .5rem; }
	.day__n { display: flex; align-items: baseline; gap: .5rem; padding-top: 0; }
	.day__n b { font-size: 1.3rem; }
}

.tag {
	display: inline-block; padding: .28rem .6rem;
	font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted);
}
.tag--ochre { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }

/* --- Riquadro prezzi / date ---------------------------------------------- */

.panel {
	background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--r); padding: 1.6rem 1.7rem;
}
.panel + .panel { margin-top: 1.2rem; }
.panel h3 { margin-top: 0; font-size: 1.05rem; }

.rows { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rows th, .rows td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rows th { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rows td:last-child, .rows th:last-child { text-align: right; }
.rows tr:last-child td { border-bottom: 0; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
@media (max-width: 980px) { .layout-aside { grid-template-columns: 1fr; } }

.aside-sticky { position: sticky; top: 100px; }
@media (max-width: 980px) { .aside-sticky { position: static; } }

/* --- Piè di pagina ------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--sand); padding-block: clamp(2.8rem, 6vw, 4.2rem) 2rem; margin-top: var(--step); }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--ochre); }
.site-footer h2, .site-footer h3 { color: var(--paper); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.6rem, 3.5vw, 3rem); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h3 { font-size: .74rem; font-family: var(--sans); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: .5rem; }
.footer-col a { text-decoration: none; font-size: .93rem; }
.footer-col a:hover { text-decoration: underline; }

.footer-brand .brand__name { color: var(--paper); font-size: 1.5rem; }
.footer-brand p { font-size: .93rem; margin-top: .9rem; }

.legal {
	margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(221, 210, 192, .18);
	font-size: .78rem; line-height: 1.7; color: #9a9182;
}
.legal strong { color: var(--sand); font-weight: 700; }
.legal__bottom { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between; }
.legal__bottom ul { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }

/* --- Utilita' ------------------------------------------------------------ */

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-block; padding: .5rem .85rem; text-decoration: none;
	border: 1px solid var(--line); border-radius: var(--r); font-size: .85rem;
}
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.notice-empty { color: var(--muted); font-style: italic; }

.cta-band { background: var(--ochre); color: var(--ink); padding-block: clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.6rem; }

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
	flex: 1; padding: .8rem 1rem; font: inherit; font-size: .95rem;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--off-white); color: var(--ink);
}
