/* =========================================================
   Pagina servizio ("sala") e archivio servizi.
   ========================================================= */

/* ---------- Card servizio (stesso linguaggio dei box della home) ---------- */
.poster { position: relative; color: var(--text); container-type: inline-size; }
.poster__rod { display: none; }
.poster__cloth {
	position: relative; overflow: hidden; border-radius: var(--radius-card);
	background: var(--surface); box-shadow: var(--hairline), var(--shadow-card);
	padding: 8px 8px 0;
}
.poster__art { aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; border-radius: 10px; }
.poster__art img { width: 100%; height: 100%; object-fit: cover; }
.poster__body { padding: clamp(18px, 7cqi, 28px) clamp(14px, 6cqi, 22px) clamp(20px, 7cqi, 28px); display: grid; gap: 12px; }
.poster__title { font-size: clamp(1.375rem, 8.5cqi, 2.25rem); line-height: 1.08; letter-spacing: -.03em; overflow-wrap: normal; }
.poster__promise { font-size: var(--fs-md); color: var(--muted); font-weight: 600; }
.poster__perks { list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: var(--fs-xs); }
.poster__perks li { position: relative; padding-left: 1.1em; }
.poster__perks li::before { content: ""; position: absolute; left: 0; top: .78em; width: .5em; height: 1px; background: var(--subtle); }
.poster__cta { justify-self: start; margin-top: 8px; }
.poster__link { text-decoration: none; }
.poster__link::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* intera card cliccabile */
.poster--card .poster__cloth { transition: transform .5s var(--ease-out), box-shadow .4s; }
.poster--card:hover .poster__cloth { transform: translateY(-4px); box-shadow: var(--hairline-hi), 0 32px 56px -24px rgb(0 0 0 / .9), 0 8px 18px -8px rgb(0 0 0 / .6); }
.poster--card:focus-within .poster__cloth { box-shadow: 0 0 0 2px var(--focus), var(--shadow-card); }

/* ---------- Ingresso della sala ---------- */
.room-hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: calc(var(--header-h) + 72px) var(--gutter) var(--section);
	display: grid; gap: 48px; justify-items: center;
}
.room-hero__poster { width: min(100%, 460px); }
.room-hero__intro { width: min(100%, 640px); display: grid; gap: 28px; justify-items: center; text-align: center; }
.room-hero__intro .lead p { margin: 0; }
.room-hero__intro .lead { color: var(--text); opacity: .86; text-shadow: 0 1px 16px rgb(11 10 16 / .8); }

@media (min-width: 1024px) {
	.room-hero { grid-template-columns: minmax(0, 460px) minmax(0, 520px); justify-content: center; align-items: center; column-gap: clamp(48px, 7vw, 120px); }
	.room-hero__intro { justify-items: start; text-align: left; }
}

/* ---------- Sezioni ---------- */
.room-section { padding: var(--section) var(--gutter) 0; }
.section-title { font-size: var(--fs-xl); margin-bottom: clamp(32px, 5vw, 64px); max-width: 18ch; }

/* Ti suona familiare: citazioni */
.familiar__list { list-style: none; display: grid; gap: 20px; }
.familiar__item blockquote { margin: 0; position: relative; padding: 28px 28px 28px 72px; border-left: 1px solid var(--line-strong); }
.familiar__item blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 8px; font-weight: 800; font-size: 4rem; line-height: 1; color: var(--magenta); }
.familiar__item p { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; max-width: 30ch; }
@media (min-width: 900px) {
	.familiar__list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
}

/* Vantaggi: uno grande, gli altri accanto */
.benefits__grid { list-style: none; display: grid; gap: 16px; }
.benefit { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--hairline), var(--shadow-card); display: grid; gap: 12px; align-content: start; }
.benefit--lead { background: var(--surface-hi); box-shadow: var(--hairline-hi), var(--shadow-card); }
.benefit__spot { display: block; width: min(100%, 200px); height: auto; aspect-ratio: 4 / 3; margin: -4px 0 8px -8px; }
.benefit--lead .benefit__spot { width: min(100%, 300px); margin-bottom: 16px; }
.benefit__title { font-size: var(--fs-md); line-height: 1.2; }
.benefit--lead .benefit__title { font-size: var(--fs-lg); }
.benefit__text { color: var(--muted); }
/* Celle esatte per numero di vantaggi: nessuno spazio vuoto. */
@media (min-width: 768px) {
	.benefits__grid { grid-template-columns: 1.3fr 1fr; }
	.benefit--lead { align-content: end; min-height: 320px; grid-template-rows: 1fr auto auto; }
	.benefit--lead .benefit__spot { width: min(100%, 360px); align-self: start; }
	.benefits__grid--2 .benefit--lead { min-height: 0; }
	.benefits__grid--3 .benefit--lead { grid-row: span 2; }
	.benefits__grid--4 .benefit--lead { grid-row: span 3; }
	.benefits__grid--6 { grid-template-columns: repeat(2, 1fr); }
	.benefits__grid--6 .benefit--lead { min-height: 0; }
}
@media (min-width: 1200px) {
	.benefits__grid--5 { grid-template-columns: 1.3fr 1fr 1fr; }
	.benefits__grid--5 .benefit--lead { grid-row: span 2; }
	.benefits__grid--6 { grid-template-columns: repeat(3, 1fr); }
}

/* Come funziona: linea verticale che si disegna */
.steps__list { list-style: none; counter-reset: step; position: relative; display: grid; gap: clamp(28px, 4vw, 44px); padding-left: 48px; max-width: 760px; }
.steps__list::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps__list::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--magenta); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.step { position: relative; counter-increment: step; }
.step::before { content: ""; position: absolute; left: -43px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--magenta); z-index: 1; }
.step__title { font-size: var(--fs-lg); }
.step__title::before { content: counter(step, decimal-leading-zero) " "; color: var(--subtle); font-weight: 600; font-size: .7em; vertical-align: .15em; margin-right: .3em; }
.step__text { color: var(--muted); margin-top: 6px; font-size: var(--fs-md); max-width: 56ch; }

/* FAQ */
.faq__list { display: grid; gap: 12px; max-width: 860px; }
.faq__item { border-radius: var(--radius-field); background: var(--surface); box-shadow: var(--hairline); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 700; font-size: var(--fs-md); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { position: relative; width: 16px; height: 16px; flex: none; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--text); transition: transform .3s var(--ease-out); }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: rotate(0); }
.faq__answer { padding: 0 22px 22px; color: var(--muted); font-size: var(--fs-md); max-width: 70ch; }

/* Chiusura */
.closing { margin-top: var(--section); padding: var(--section) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 56px; }
.closing__main { display: grid; gap: 20px; justify-items: start; }
.closing__title { font-size: var(--fs-2xl); }
.closing__main .actions { align-items: center; gap: 24px; margin-top: 8px; }
.closing__rooms-title { color: var(--subtle); font-weight: 600; margin-bottom: 16px; }
.closing__rooms ul { list-style: none; display: grid; gap: 14px; }
@media (min-width: 1024px) {
	.closing { grid-template-columns: 1.4fr 1fr; align-items: end; }
	.closing__rooms { padding-left: 48px; border-left: 1px solid var(--line); }
}

/* ---------- Archivio servizi ---------- */
.archive-head { padding: calc(var(--header-h) + 72px) var(--gutter) 56px; display: grid; gap: 16px; }
.archive-head .page-title { font-size: var(--fs-2xl); max-width: 14ch; }
.poster-grid { list-style: none; padding: 0 var(--gutter); display: grid; gap: clamp(48px, 6vw, 72px) clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.poster-grid > li { padding-top: 60px; }
