/* ==========================================================================
   Palazzo Cesare – stile principale (mobile-first)
   Palette: Pietra, Calce, Inchiostro, Adriatico, Terracotta, Ulivo, Sabbia, Oro
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
	--pietra: #F5EFE4;
	--calce: #FFFCF6;
	--inchiostro: #1E2B33;
	--inchiostro-soft: #4A5860;
	--adriatico: #1D5A73;
	--adriatico-dark: #154457;
	--terracotta: #A9482A;
	--terracotta-dark: #8C3A21;
	--ulivo: #5E6B3F;
	--sabbia: #E3D6BF;
	--oro: #B98A3E;
	--whatsapp: #1F7A4D;

	--font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 6px 24px rgba(30, 43, 51, .10);
	--gutter: 16px;
	--max: 1160px;
	--header-h: 64px;
	--bookbar-h: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--pietra);
	color: var(--inchiostro);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--bookbar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--adriatico); text-underline-offset: .18em; }
a:hover { color: var(--adriatico-dark); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--inchiostro); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--adriatico); outline-offset: 2px; border-radius: 4px; }
.small { font-size: .9rem; color: var(--inchiostro-soft); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--inchiostro); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1280px; }
.section { padding-block: 48px; }
.section--tint { background: var(--calce); border-block: 1px solid var(--sabbia); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.section__title { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0; }
.section__title::after { content: ""; display: block; width: 44px; height: 2px; background: var(--oro); margin-top: 10px; }
.section--tint .section__title { margin-bottom: 24px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ulivo); margin: 0 0 6px; }
.eyebrow--light { color: #fff; opacity: .92; }

/* ---------- Icone ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Pulsanti e link ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border-radius: 999px; border: 1.5px solid transparent;
	font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: .95rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--adriatico); color: var(--adriatico); }
.btn--ghost:hover { background: var(--adriatico); color: #fff; }
.btn--text { background: none; color: var(--adriatico); text-decoration: underline; padding-inline: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
/* Nota: niente backdrop-filter qui, altrimenti il menu mobile (position: fixed) resta "intrappolato" nell'intestazione. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--calce); border-bottom: 1px solid var(--sabbia); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.site-logo { display: block; color: var(--inchiostro); line-height: 0; }
.site-logo svg { height: 46px; width: auto; }
@media (min-width: 960px) { .site-logo svg { height: 52px; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; color: var(--inchiostro); cursor: pointer; border-radius: 50%; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.site-nav { display: none; }
.site-nav.is-open {
	display: flex; flex-direction: column; gap: 8px;
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
	background: var(--calce); padding: 24px var(--gutter); overflow-y: auto;
}
.site-nav .menu { list-style: none; display: flex; flex-direction: column; }
.site-nav .menu a { display: block; padding: 14px 4px; font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; color: var(--inchiostro); text-decoration: none; border-bottom: 1px solid var(--sabbia); }
.site-nav .menu .current-menu-item > a, .site-nav .menu a[aria-current="page"] { color: var(--terracotta); }
.site-nav__cta { margin-top: 20px; }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.site-nav, .site-nav.is-open { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; overflow: visible; }
	.site-nav .menu { flex-direction: row; gap: 24px; }
	.site-nav .menu a { font-family: var(--font-text); font-size: 1rem; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; }
	.site-nav .menu a:hover { border-bottom-color: var(--oro); }
	.site-nav__cta { margin: 0; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 64vh; min-height: 64svh; display: flex; align-items: flex-end; color: #fff; background: var(--adriatico-dark); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 43, 51, .12) 0%, rgba(30, 43, 51, .30) 40%, rgba(30, 43, 51, .82) 100%); }
.hero__title, .hero__lead, .hero .eyebrow { text-shadow: 0 1px 12px rgba(15, 22, 26, .45); }
.hero__content { position: relative; z-index: 1; padding-block: 48px 72px; }
.hero__credit { position: absolute; top: 8px; right: 10px; z-index: 2; margin: 0; font-size: .72rem; line-height: 1.3; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.hero__credit a { color: inherit; }
.hero__img { object-position: 50% 60%; }
.hero__title { color: #fff; font-size: clamp(2.4rem, 9vw, 4.4rem); max-width: 14ch; margin-bottom: 12px; }
.hero__lead { font-size: 1.15rem; max-width: 38ch; margin: 0; opacity: .95; }

/* ---------- Modulo prenotazione ---------- */
.booking-wrap { position: relative; z-index: 2; margin-top: -40px; }
.booking {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
	background: var(--calce); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.booking__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.booking__field--wide, .booking__submit, .booking__note { grid-column: 1 / -1; }
.booking label, .filters label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ulivo); }
.booking input, .booking select, .filters select {
	width: 100%; min-height: 48px; padding: 10px 12px;
	border: 1px solid var(--sabbia); border-radius: var(--radius-sm); background: #fff;
	font: 400 1rem var(--font-text); color: var(--inchiostro); appearance: none; -webkit-appearance: none;
}
.booking select, .filters select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2B33' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.booking input:focus, .booking select:focus, .filters select:focus { border-color: var(--adriatico); outline: 2px solid var(--adriatico); outline-offset: 0; }
.booking__note { display: flex; align-items: center; gap: 6px; margin: 0; }
.booking__note .icon { color: var(--ulivo); }
@media (min-width: 900px) {
	.booking { grid-template-columns: 2fr 1fr 1fr .8fr auto; align-items: end; padding: 20px; }
	.booking__field--wide { grid-column: auto; }
	.booking__submit { grid-column: auto; }
}

/* ---------- Griglie e schede ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; background: var(--calce); border: 1px solid var(--sabbia); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 4 / 3; background: var(--sabbia); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; height: 100%; color: var(--inchiostro-soft); font-size: .9rem; background: linear-gradient(135deg, var(--sabbia), #efe5d3); }
.card__placeholder .icon { width: 36px; height: 36px; color: var(--oro); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card__title { font-size: 1.75rem; margin: 0 0 6px; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--adriatico); }
.card__text { color: var(--inchiostro-soft); margin-bottom: 10px; }
.card__link { margin-top: auto; padding-top: 6px; }
.card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.card__actions .btn { flex: 1; }

/* ---------- Dati (m², ospiti...) ---------- */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--inchiostro-soft); font-size: .95rem; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .icon { color: var(--ulivo); }
.facts--lg { font-size: 1.05rem; margin-top: 12px; }
.facts--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-block: 8px 24px; }
.facts--grid li { background: var(--calce); border: 1px solid var(--sabbia); border-radius: var(--radius-sm); padding: 12px; color: var(--inchiostro); }
@media (min-width: 640px) { .facts--grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Punti di forza ---------- */
.features { list-style: none; display: grid; gap: 24px; grid-template-columns: 1fr; }
.features li > .icon { width: 32px; height: 32px; color: var(--terracotta); margin-bottom: 8px; }
.features h3 { font-size: 1.5rem; margin-bottom: 4px; }
.features p { margin: 0; color: var(--inchiostro-soft); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Riquadri link (check-in, guida, contatti) ---------- */
.tile { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--calce); border: 1px solid var(--sabbia); border-radius: var(--radius); color: var(--inchiostro); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.tile:hover { border-color: var(--adriatico); box-shadow: var(--shadow); color: var(--inchiostro); }
.tile > .icon { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--pietra); color: var(--terracotta); }
.tile strong { display: block; font-size: 1.1rem; }
.tile span { color: var(--inchiostro-soft); }
.contact-list { list-style: none; display: grid; gap: 12px; margin-block: 24px; }

.cta { text-align: center; }
.cta .section__title::after { margin-inline: auto; }
.cta p { margin-top: 16px; color: var(--inchiostro-soft); }

/* ---------- Intestazione pagine ---------- */
.page-head { padding-block: 32px 16px; }
.page-head__title { font-size: clamp(2.2rem, 7vw, 3.2rem); margin-bottom: 8px; }
.page-head__lead { font-size: 1.15rem; color: var(--inchiostro-soft); margin: 0; }
.page { padding-bottom: 56px; }

/* ---------- Filtri ---------- */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--calce); border: 1px solid var(--sabbia); border-radius: var(--radius); padding: 16px; }
.filters__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filters__field:first-child { grid-column: 1 / -1; }
.filters__actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.js .filters__actions [data-filters-submit] { display: none; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(3, 1fr) auto; align-items: end; } .filters__field:first-child { grid-column: auto; } .filters__actions { grid-column: auto; } }
.results-count { margin: 16px 0 8px; color: var(--inchiostro-soft); }
.notice-box { background: var(--calce); border: 1px dashed var(--sabbia); border-radius: var(--radius); padding: 24px; text-align: center; }

.group { padding-block: 24px 16px; }
.group__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin-bottom: 16px; border-bottom: 1px solid var(--sabbia); padding-bottom: 12px; }
.group__title { font-size: 2rem; margin: 0; }
.group__title a { color: inherit; text-decoration: none; }
.group__lead { margin: 4px 0 0; color: var(--inchiostro-soft); }

/* ---------- Galleria ---------- */
.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery__track { list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 4px; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 2; background: var(--sabbia); }
.gallery__item a { display: block; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 252, 246, .92); color: var(--inchiostro); display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(30, 43, 51, .75); color: #fff; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.gallery--empty { aspect-ratio: 3 / 1; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sabbia), #efe5d3); color: var(--inchiostro-soft); }
@media (min-width: 760px) {
	.gallery { margin-inline: 0; margin-top: 8px; border-radius: var(--radius); overflow: hidden; }
	.gallery__item { flex-basis: 66%; aspect-ratio: 16 / 10; }
	.gallery__nav { display: inline-flex; }
}

/* ---------- Dettaglio struttura / unità ---------- */
.breadcrumb { font-size: .9rem; color: var(--inchiostro-soft); padding-block: 12px; }
.breadcrumb a { color: inherit; }
.detail__layout { display: grid; gap: 32px; padding-block: 24px 56px; }
.detail__head { margin-bottom: 16px; }
.detail__title { font-size: clamp(2.4rem, 8vw, 3.6rem); margin-bottom: 6px; }
.detail__lead { font-size: 1.2rem; color: var(--inchiostro-soft); margin: 0; }
.detail__section { margin-top: 40px; }
.detail__h2 { font-size: 2rem; }
.detail__h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--oro); margin-top: 8px; }
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .3em; }

.services, .rules { list-style: none; display: grid; gap: 10px 20px; grid-template-columns: 1fr; margin-bottom: 12px; }
.services li, .rules li { display: flex; align-items: center; gap: 10px; }
.services .icon { color: var(--adriatico); }
.rules .icon { color: var(--ulivo); }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, 1fr); } }

.map__frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e9e1d1, #dfe8e9); border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 12px; overflow: hidden; }
.map__frame.is-loaded { padding: 0; }
.map__frame iframe { width: 100%; height: 100%; border: 0; }
.map__address { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.map__address .icon { color: var(--terracotta); }
.codes { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 32px; font-size: .85rem; color: var(--inchiostro-soft); }

.book-card { display: none; }
.book-card .rules { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--sabbia); font-size: .95rem; }
.book-card__title { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.book-card .btn { margin-top: 10px; }

.bookbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: var(--calce); border-top: 1px solid var(--sabbia); box-shadow: 0 -4px 16px rgba(30, 43, 51, .08);
}
.bookbar__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.bookbar__text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.has-bookbar { --bookbar-h: 72px; }

@media (min-width: 960px) {
	.detail__layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 48px; }
	.book-card { display: block; position: sticky; top: calc(var(--header-h) + 20px); background: var(--calce); border: 1px solid var(--sabbia); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
	.bookbar { display: none; }
	body.has-bookbar { --bookbar-h: 0px; }
}

/* ---------- WhatsApp fluttuante ---------- */
.wa-float {
	position: fixed; right: 16px; bottom: calc(16px + var(--bookbar-h) + env(safe-area-inset-bottom)); z-index: 45;
	width: 56px; height: 56px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--whatsapp); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.wa-float:hover { color: #fff; background: #17633d; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--inchiostro); color: #d9e0e3; padding-top: 48px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 32px; }
.site-footer__logo { display: inline-block; color: #fff; line-height: 0; margin-bottom: 14px; }
.site-footer__logo svg { height: 84px; width: auto; }
.site-footer__name { font-family: var(--font-title); font-size: 1.8rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.site-footer__title { font-family: var(--font-text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #c9b48f; margin-bottom: 12px; }
.site-footer__list, .site-footer .menu { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 20px 96px; font-size: .82rem; color: #b7c2c7; }
.site-footer__legal p { margin-bottom: 6px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(15, 22, 26, .96); }
.lightbox::backdrop { background: rgba(15, 22, 26, .96); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Check-in online ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: none; }
.step { background: var(--calce); border: 1px solid var(--sabbia); border-radius: var(--radius); padding: 20px; }
.step__title { display: flex; align-items: center; gap: 12px; font-size: 1.7rem; margin-bottom: 14px; }
.step__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--adriatico); color: #fff; font: 600 1rem var(--font-text); }
.step .rules { margin-bottom: 0; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice__item { position: relative; display: block; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; inset: 0; }
.choice__box { display: block; padding: 14px 16px 14px 48px; border: 1.5px solid var(--sabbia); border-radius: var(--radius-sm); background: #fff; position: relative; }
.choice__box::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--inchiostro-soft); background: #fff; }
.choice__box strong { display: block; font-size: 1.05rem; }
.choice__box span { color: var(--inchiostro-soft); font-size: .95rem; }
.choice__item input:checked + .choice__box { border-color: var(--adriatico); box-shadow: 0 0 0 1px var(--adriatico); }
.choice__item input:checked + .choice__box::before { border-color: var(--adriatico); background: radial-gradient(circle, var(--adriatico) 45%, #fff 50%); }
.choice__item input:focus-visible + .choice__box { outline: 3px solid var(--adriatico); outline-offset: 2px; }
.checkin__direct { display: grid; gap: 12px; margin-top: 16px; }
.checkin__direct[hidden] { display: none; }
.checkin__direct input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--sabbia); border-radius: var(--radius-sm); font: 400 1rem var(--font-text); }
.checkin__direct label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ulivo); }
.checkin__done { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: #e8efe2; border: 1px solid #cfdcc3; }
.checkin__done p { margin-bottom: 12px; }
.faq { margin-top: 40px; }
.faq details, .arrival { background: var(--calce); border: 1px solid var(--sabbia); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary, .arrival summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker, .arrival summary::-webkit-details-marker { display: none; }
.faq summary::after, .arrival summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--adriatico); }
.faq details[open] summary::after, .arrival[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; margin: 0; }
.faq .btn { margin-top: 12px; }

/* ---------- Guida ospite ---------- */
.guide__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.guide__actions [hidden] { display: none; }
.toc { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin-bottom: 8px; background: var(--pietra); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 7px 14px; border: 1px solid var(--sabbia); border-radius: 999px; background: var(--calce); font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--inchiostro); }
.toc a:hover { border-color: var(--adriatico); color: var(--adriatico); }
.guide h2 { font-size: 2rem; margin-top: 40px; }
.guide h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--oro); margin-top: 8px; }
.guide h3 { font-size: 1.45rem; margin: 24px 0 6px; }
.arrival__body { padding: 0 16px 16px; }
.arrival__body .rules { margin-block: 8px 12px; }
.guide__help { margin-top: 40px; }
.print-only { display: none; }

/* ---------- Stampa / PDF ---------- */
@media print {
	@page { margin: 16mm 14mm; }
	body { background: #fff; font-size: 11pt; padding: 0; }
	.site-header, .site-footer, .wa-float, .bookbar, .no-print, .skip-link, .guide__help .btn, .lightbox { display: none !important; }
	.print-only { display: block; }
	.container { max-width: none; padding: 0; }
	.page-head { padding-top: 0; }
	.arrival, .faq details, .notice-box { border: 0; background: none; padding: 0; break-inside: avoid; }
	.arrival summary { padding: 0; font-family: var(--font-title); font-size: 1.4rem; }
	.arrival summary::after, .arrival[open] summary::after { content: none; }
	.arrival__body { padding: 0 0 8px; }
	.guide h2 { break-after: avoid; margin-top: 24px; }
	a { color: var(--inchiostro); text-decoration: none; }
	.link-arrow { display: none; }
}

/* ---------- Lingua e link legali ---------- */
.lang-switch { list-style: none; display: flex; gap: 4px; margin: 16px 0 0; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--inchiostro-soft); border: 1px solid transparent; }
.lang-switch a[aria-current] { color: var(--inchiostro); border-color: var(--sabbia); background: var(--calce); }
@media (min-width: 960px) { .lang-switch { margin: 0; } .lang-switch a { min-height: 36px; min-width: 36px; padding: 0 8px; } }
.site-footer__links a { color: #fff; }

/* ---------- Condivisione PDF, foto ingresso, WhatsApp nel check-in ---------- */
.guide__doc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.guide__share { color: var(--whatsapp); text-decoration: none; }
.guide__share .icon { width: 1.1em; height: 1.1em; }
.arrival__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-block: 8px 12px; }
.arrival__photos figure { margin: 0; }
.arrival__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }
.arrival__photos figcaption { margin-top: 4px; }
.checkin__whatsapp { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--calce); border: 1px solid var(--sabbia); }
.checkin__whatsapp > .icon { width: 32px; height: 32px; color: var(--whatsapp); flex: none; }
.checkin__whatsapp p { margin-bottom: 10px; }
@media print { .guide__share, .checkin__whatsapp { display: none !important; } .arrival__photos { grid-template-columns: repeat(3, 1fr); } }
