/* ==========================================================================
   Statale 17: stili del tema
   Concetto: una strada che attraversa la campagna aquilana. Foto vere a tutta
   larghezza, fasce verde pino e calcare chiaro, giallo paglia come unico accento.
   Il cippo "SS 17 · km 48" è il segno di riconoscimento.
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
	--stone: #F2F3EE;
	--stone-2: #E6E8DF;
	--paper: #FBFBF8;
	--ink: #17201A;
	--ink-soft: #505C54;
	--pine: #1F3628;
	--pine-2: #2A4635;
	--on-pine: #EEF0E6;
	--straw: #D6A541;
	--straw-hi: #E7BC5F;
	--straw-ink: #87610F;
	--road: #B3261E;
	--line: rgba(23, 32, 26, .12);
	--line-light: rgba(238, 240, 230, .16);

	--f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--wrap: 1240px;
	--gutter: max(20px, env(safe-area-inset-left, 0px));
	--gutter-r: max(20px, env(safe-area-inset-right, 0px));
	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 12px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .7em 1em; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* ---------- tipografia ---------- */
.eyebrow { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--straw-ink); margin-bottom: 1rem; }
.eyebrow--light { color: var(--straw); }
.eyebrow a { text-decoration: none; }
.h-xl { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; }
.h-lg { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 800; }
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.h-sm { font-size: 1.4rem; letter-spacing: -.015em; }
h1 em, h2 em { font-style: normal; color: var(--straw-ink); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; margin-top: 1.5rem; }

/* ---------- pulsanti e link ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 600 1rem/1 var(--f-body); padding: .95em 1.45em; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--lg { font-size: 1.06rem; padding: 1.1em 1.7em; }
.btn--block { width: 100%; }
.btn--straw { background: var(--straw); color: #1B1A12; }
.btn--straw:hover { background: var(--straw-hi); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--pine); }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); color: var(--ink); background: rgba(242, 243, 238, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); transition: background-color .35s, box-shadow .35s, color .35s; }
.site-header.is-over:not(.is-scrolled):not(.is-open) { background: transparent; box-shadow: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: block; position: relative; flex: none; }
.brand .logo { height: 54px; width: auto; transition: opacity .3s; }
.brand .logo-chiaro { position: absolute; inset: 0 auto auto 0; opacity: 0; }
.site-header.is-over:not(.is-scrolled):not(.is-open) .logo-chiaro { opacity: 1; }
.site-header.is-over:not(.is-scrolled):not(.is-open) .logo-scuro { opacity: 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.9rem; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding-block: .4rem; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--straw); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }
.nav__contact { display: none; }
.site-header__cta { padding: .8em 1.35em; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; cursor: pointer; margin-left: auto; position: relative; }
.burger__lines, .burger__lines::before, .burger__lines::after { position: absolute; left: 50%; width: 18px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger__lines { top: 50%; transform: translate(-50%, -50%); }
.burger__lines::before, .burger__lines::after { content: ""; left: 0; }
.burger__lines::before { transform: translateY(-6px); }
.burger__lines::after { transform: translateY(6px); }
.is-open .burger__lines { background: transparent; }
.is-open .burger__lines::before { transform: rotate(45deg); }
.is-open .burger__lines::after { transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); min-height: max(640px, min(100svh, 980px)); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--pine); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: kenburns 22s ease-out both; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 14, .55) 0%, rgba(12, 20, 14, .05) 30%, rgba(12, 20, 14, .25) 55%, rgba(12, 20, 14, .85) 100%); }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__body { width: 100%; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero__title { font-size: clamp(3.1rem, 9.2vw, 8.6rem); font-weight: 800; line-height: .92; letter-spacing: -.04em; max-width: 11ch; font-stretch: 88%; }
.hero__title em { color: var(--straw); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; margin-top: clamp(1.75rem, 4vw, 3rem); flex-wrap: wrap; padding-right: clamp(0px, 12vw, 160px); }
.hero__sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 44ch; opacity: .94; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cippo { position: absolute; right: var(--gutter-r); bottom: clamp(2.5rem, 6vw, 4.5rem); width: clamp(84px, 9vw, 124px); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4)); animation: rise .9s .3s var(--ease) both; }
.cippo__ss { font: 500 20px var(--f-mono); fill: #fff; }
.cippo__km { font: 500 14px var(--f-mono); fill: #17201A; }
.cippo__n { font: 800 50px var(--f-display); fill: #17201A; letter-spacing: -.03em; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__body > * { animation: rise .9s var(--ease) both; }
.hero__body > :nth-child(2) { animation-delay: .08s; }
.hero__body > :nth-child(3) { animation-delay: .18s; }

/* ---------- nastro cereali ---------- */
.ticker { background: var(--straw); color: #1B1A12; overflow: hidden; padding-block: 1rem; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font: 700 clamp(1.25rem, 2.2vw, 1.7rem)/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.ticker svg { width: 14px; height: 14px; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- chi siamo ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.75rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--pine); }
.facts dd { margin: .5rem 0 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }
.about__photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1.02; }
.ph { overflow: hidden; border-radius: var(--r-lg); background: var(--stone-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.about__photos .ph--1 { grid-row: 1 / 3; }
.about__photos .ph--1 img { object-position: 72% 40%; }

/* ---------- intestazioni sezione ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 4rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head > div { flex: 1 1 520px; max-width: 760px; }
.section-head .h-lg { max-width: 16ch; }
.section-head__txt { max-width: 42ch; color: var(--ink-soft); font-size: 1.08rem; flex: 0 1 420px; }

/* ---------- appartamenti ---------- */
.rooms { background: var(--paper); }
.rooms__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.room { display: flex; flex-direction: column; gap: 1.1rem; }
.room__open { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-md); }
.room__img { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--r-md); overflow: hidden; background: var(--stone-2); }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.room__open:hover .room__img img { transform: scale(1.05); }
.chip { position: absolute; left: 14px; top: 14px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(251, 251, 248, .92); color: var(--ink); padding: .6em .85em; border-radius: 999px; backdrop-filter: blur(6px); }
.room__body { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.room__body h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.room__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--ink-soft); font-size: .95rem; }
.room__meta span { display: inline-flex; align-items: center; gap: .4em; }
.room__meta .ico { width: 18px; height: 18px; color: var(--straw-ink); }
.room .link-arrow { margin-top: .35rem; font-size: .95rem; }

/* finestra dettagli */
.dlg { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); overflow: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.dlg[open] { display: grid; grid-template-columns: 1.1fr 1fr; animation: pop .35s var(--ease); }
.dlg::backdrop { background: rgba(12, 20, 14, .6); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg__img { min-height: 100%; background: var(--stone-2); }
.dlg__img img { width: 100%; height: 100%; object-fit: cover; }
.dlg__body { padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.dlg__body .eyebrow { margin: 0; }
.dlg__body p { color: var(--ink-soft); }
.dlg__body .btn { margin-top: auto; }
.dlg__close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251, 251, 248, .92); display: grid; place-items: center; cursor: pointer; }
.tags { list-style: none; margin: .25rem 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .88rem; background: var(--stone-2); border-radius: 999px; padding: .35em .85em; }

/* ---------- campi ---------- */
.fields { position: relative; color: #F4F4EE; isolation: isolate; overflow: hidden; background: var(--pine); }
.fields__media { position: absolute; inset: 0; z-index: -1; }
.fields__media img { width: 100%; height: 100%; object-fit: cover; }
.fields__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 28, 20, .92) 0%, rgba(16, 28, 20, .72) 55%, rgba(16, 28, 20, .55) 100%); }
.fields__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.fields h2 em { color: var(--straw); }
.fields__txt { margin-top: 1.5rem; font-size: 1.1rem; opacity: .86; max-width: 46ch; }
.grains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grains li { min-width: 0; display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1rem 1.1rem; border-radius: var(--r-md); background: rgba(238, 240, 230, .07); box-shadow: inset 0 0 0 1px var(--line-light); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .3s; min-height: 10rem; }
.grains li:hover { background: rgba(214, 165, 65, .16); }
.grains svg { width: 30px; height: 44px; color: var(--straw); }
.grains strong { font: 700 1.1rem/1.15 var(--f-display); letter-spacing: -.01em; }
.grains small { margin-top: auto; font: 500 .68rem/1.35 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; opacity: .7; }

/* ---------- ristorante ---------- */
.table__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.table__photos { position: relative; padding-bottom: 16%; padding-right: 10%; }
.table__photos .ph:first-child { aspect-ratio: 4 / 3.3; }
.ph--float { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid var(--stone); }
.ph--float img { object-position: 18% 50%; }
.menu { list-style: none; margin: 2.25rem 0; padding: 0; border-top: 1px solid var(--line); }
.menu li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.menu span { font-weight: 600; font-size: 1.06rem; }
.menu small { font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); text-align: right; }
.actions { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.note { color: var(--ink-soft); font-size: .95rem; }

/* ---------- esperienze ---------- */
.exp { background: var(--stone-2); }
.exp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--pine); }
.card__img img, .card__img .illo { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.illo__sky { fill: var(--pine); }
.illo__m1 { fill: #2E4C39; }
.illo__m2 { fill: #3A5E46; }
.illo__snow { fill: #EEF0E6; opacity: .9; }
.illo__route { fill: none; stroke: var(--straw); stroke-width: 1.5; stroke-dasharray: 4 6; }
.illo__plane { fill: var(--straw); }
.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; align-items: flex-start; }
.card__body .eyebrow { margin: 0; }
.card__body p:not(.eyebrow) { color: var(--ink-soft); font-size: 1rem; }
.card__body .link-arrow { margin-top: auto; padding-top: .5rem; }

/* ---------- dintorni ---------- */
.around__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.places { list-style: none; margin: 2rem 0 2.25rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.75rem; }
.places li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-weight: 600; min-width: 0; }
.places small { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-soft); text-align: right; }
.map { background: var(--paper); border-radius: var(--r-lg); padding: .75rem; }
.map figcaption { font-size: .8rem; color: var(--ink-soft); padding: .5rem .75rem .25rem; }
.map__svg { width: 100%; height: auto; }
.map__relief path { fill: var(--pine); opacity: .07; }
.map__contour path { fill: none; stroke: var(--pine); stroke-opacity: .2; }
.map__road { fill: none; stroke: var(--straw); stroke-width: 7; stroke-linecap: round; }
.map__road-dash { fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-dasharray: 8 8; }
.map__road-label { font: 500 11px var(--f-mono); fill: var(--straw-ink); }
.map__places circle, .map__places path { fill: var(--ink-soft); }
.map__places text { font: 600 13px var(--f-body); fill: var(--ink); }
.map__places .map__city { fill: var(--ink); }
.map__places .map__minor { font-weight: 500; font-size: 11px; fill: var(--ink-soft); }
.map__dot { fill: var(--road); stroke: var(--paper); stroke-width: 3; }
.map__pulse { fill: var(--straw); opacity: .3; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.8); opacity: 0; } }
.map__us-l { font: 800 17px var(--f-display); fill: var(--ink); letter-spacing: -.01em; }

/* ---------- prenota ---------- */
.book { background: var(--pine); color: var(--on-pine); }
.book__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.book h2 em { color: var(--straw); }
.book__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.book__txt { margin-top: 1.5rem; font-size: 1.1rem; opacity: .85; max-width: 44ch; }
.contact-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-md); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-light); transition: background-color .2s; }
.contact-list a:hover { background: rgba(238, 240, 230, .07); }
.contact-list .ico { width: 24px; height: 24px; flex: none; color: var(--straw); }
.contact-list span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.contact-list small { font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .65; }

.book__card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 3.5vw, 2.75rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.form__alert { background: #FBE9E7; color: #8C1D18; border-radius: var(--r-sm); padding: .85rem 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.seg { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.seg legend { font: 500 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8rem; padding: 0; }
.seg__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--stone-2); border-radius: 999px; padding: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: .7em .4em; border-radius: 999px; font-weight: 600; font-size: .94rem; cursor: pointer; transition: background-color .2s, color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg label:hover { background: rgba(23, 32, 26, .06); }
.seg input:checked + label { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--straw); outline-offset: 2px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem/1.3 var(--f-body); color: var(--ink); background: var(--stone); border: 1.5px solid transparent; border-radius: var(--r-sm); padding: .85rem .95rem; transition: border-color .2s, background-color .2s; min-height: 50px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); background: #fff; }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: #B3261E; }
.field__err { color: #A1221B; font-size: .86rem; font-weight: 600; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; margin: 1.4rem 0; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 22px; height: 22px; accent-color: var(--pine); margin: 0; }
.check .field__err { grid-column: 2; }
.form__foot { text-align: center; font-size: .86rem; color: var(--ink-soft); margin-top: .9rem; }
.form-done { text-align: center; padding: 2.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.form-done svg { width: 64px; height: 64px; color: var(--pine); }
.form-done p { color: var(--ink-soft); max-width: 40ch; }
.form-done:focus { outline: none; }

/* campi visibili in base al tipo di richiesta (senza JavaScript) */
.only-soggiorno, .only-data, .only-ristorante { display: none; }
.form:has(#tipo-soggiorno:checked) .only-soggiorno { display: flex; }
.form:has(#tipo-ristorante:checked) .only-data, .form:has(#tipo-esperienza:checked) .only-data { display: flex; }
.form:has(#tipo-ristorante:checked) .only-ristorante { display: flex; }
.form:has(#tipo-info:checked) .not-info { display: none; }
/* browser senza :has(): mostra tutto */
@supports not selector(:has(*)) { .only-soggiorno, .only-data, .only-ristorante { display: flex; } }

/* ---------- footer ---------- */
.ridge { width: 100%; height: clamp(40px, 6vw, 90px); color: var(--ink); margin-top: -1px; background: var(--pine); }
.site-footer { background: var(--ink); color: var(--on-pine); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer__grid > * { min-width: 0; }
.site-footer .logo { height: 78px; width: auto; margin-bottom: 1.1rem; }
.site-footer p, .site-footer li { opacity: .82; font-size: .98rem; overflow-wrap: anywhere; }
.site-footer p + p { margin-top: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .link-arrow { opacity: 1; color: var(--straw); text-decoration: none; }
.site-footer__h { font: 500 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--straw); margin-bottom: 1.1rem; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-light); }
.site-footer__legal { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid var(--line-light); font-size: .84rem; opacity: .6; }

.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1F8A4C; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .2s var(--ease), opacity .3s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ---------- pagine semplici ---------- */
.page { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 6rem; }
.page__in { max-width: 820px; }
.prose { margin-top: 2rem; font-size: 1.06rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 2em 0 .6em; }
.prose a { color: var(--straw-ink); }
.prose-item { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }

/* ---------- comparsa allo scroll (solo se JS è attivo) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.burger { display: block; }
	.site-header__cta { margin-left: auto; }
	.burger { margin-left: 0; }
	.nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto; background: var(--stone); color: var(--ink); padding: 1rem var(--gutter-r) 2rem var(--gutter); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; max-height: calc(100dvh - var(--header-h)); overflow: auto; }
	.is-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul a { display: block; font: 700 1.7rem/1 var(--f-display); letter-spacing: -.02em; padding: .85rem 0; border-bottom: 1px solid var(--line); }
	.nav ul a::after { display: none; }
	.nav__contact { display: grid; gap: .6rem; margin-top: 1.5rem; }
	.nav__contact a { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink-soft); }
	.about__grid, .table__grid, .around__grid, .fields__grid, .book__grid { grid-template-columns: minmax(0, 1fr); }
	.book__intro { position: static; }
	.exp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.hero__foot { padding-right: 0; }
	.cippo { top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.5rem); bottom: auto; }
}
@media (max-width: 700px) {
	:root { --header-h: 66px; --r-lg: 22px; }
	.brand .logo { height: 44px; }
	.site-header__cta { display: none; }
	.burger { margin-left: auto; }
	.hero { min-height: max(600px, 100svh); }
	.hero__actions { width: 100%; }
	.hero__actions .btn { flex: 1 1 100%; }
	.cippo { width: 72px; }
	.grains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts { gap: 1rem; }
	.exp__grid, .site-footer__grid, .places { grid-template-columns: minmax(0, 1fr); }
	.rooms__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: .5rem; scrollbar-width: none; }
	.rooms__grid::-webkit-scrollbar { display: none; }
	.room { scroll-snap-align: start; }
	.dlg[open] { grid-template-columns: minmax(0, 1fr); }
	.dlg__img { aspect-ratio: 4 / 3; min-height: 0; }
	.seg__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-md); }
	.seg label { border-radius: 12px; }
	.form__grid { grid-template-columns: minmax(0, 1fr); }
	.form__grid .field--half { grid-column: auto; }
	.form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.form__grid .field:not(.field--half) { grid-column: 1 / -1; }
	.table__photos { padding-right: 0; }
	.menu li { flex-direction: column; gap: .25rem; }
	.menu small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.ticker__track { animation: none; }
}

/* ---------- domande frequenti ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font: 600 1.12rem/1.35 var(--f-body); letter-spacing: 0; margin: 0; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; color: var(--straw-ink); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { color: var(--ink-soft); padding: 0 2.5rem 1.5rem 0; max-width: 62ch; }
@media (max-width: 1080px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }
