/* ==========================================================================
   Dama Bianca Student Residence
   Palette: blu notte #1B365D, azzurro polvere #8FA9C4, sabbia #E5D3B3
   ========================================================================== */

:root {
  --navy: #1b365d;
  --navy-deep: #12284a;
  --navy-ink: #0c1a31;
  --sky: #8fa9c4;
  --sky-soft: #c7d5e4;
  --sky-mist: #e8eef5;
  --sand: #e5d3b3;
  --sand-soft: #f2e9d9;
  --ivory: #faf7f1;
  --paper: #fffdf9;
  --ink: #15253f;
  --muted: #56647a;
  --accent: #4f6f97;
  --line: rgba(27, 54, 93, 0.14);
  --line-light: rgba(250, 247, 241, 0.2);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 84px;
  --pnrr-h: 58px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--sand); color: var(--navy-ink); }

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

.visually-hidden {
  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: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 36px; height: 36px; }

/* --- Tipografia ---------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.7;
}
.eyebrow--light { color: var(--sand); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.45rem + 2.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}
.display em, .hero__title em, .page-hero__title em, .doc__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.display--light { color: var(--ivory); }
.display--light em { color: var(--sand); }

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 38em;
  text-wrap: pretty;
}
.lead--light { color: var(--sky-soft); }

.section-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 760px; }
.section-head .display + .lead { margin-top: 22px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

.rich { color: var(--muted); font-size: 1.05rem; }
.rich p:last-child { margin-bottom: 0; }
.rich strong { color: var(--ink); font-weight: 600; }
.rich a { color: var(--navy); }
.rich ul { padding-left: 1.2em; margin-bottom: 1em; }
.rich--large { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }

/* --- Pulsanti ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-hover: var(--navy-deep);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 52px;
  padding: 0.95em 1.7em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .icon { transition: transform 0.45s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; --btn-hover: var(--navy-ink); }
.btn--sand { --btn-bg: var(--sand); --btn-fg: var(--navy-ink); --btn-hover: #f1e4cc; }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff; --btn-hover: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn--small { min-height: 42px; padding: 0.65em 1.25em; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy);
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .icon { transition: transform 0.45s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--sand); }

/* --- Immagini ------------------------------------------------------------ */

.pic {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--pic-bg, var(--sky-mist));
  width: 100%;
  height: 100%;
}
.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pic__note {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 26, 49, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em;
  line-height: 1.5;
  pointer-events: none;
}

/* --- Barra PNRR (logo firma obbligatorio, sempre visibile all'apertura) --- */

.pnrr-bar {
  position: relative; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.pnrr-bar__inner { display: flex; align-items: center; min-height: var(--pnrr-h); padding-block: 9px; }
.pnrr-bar__link { display: block; }
.pnrr-bar img { height: clamp(24px, 3.6vw, 40px); width: auto; max-width: 100%; }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  color: var(--navy);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header.is-solid, html.is-scrolled .site-header {
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--navy);
}
.site-header.is-over-hero { color: #fff; }
html.is-scrolled .site-header.is-over-hero { color: var(--navy); }
html.header-hidden .site-header { transform: translateY(-100%); }
html.menu-open .site-header { transform: none; background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }

.brand { display: block; color: inherit; line-height: 0; }
.site-header .brand .logo { height: 62px; width: auto; transition: height 0.4s var(--ease); }
html.is-scrolled .site-header .brand .logo { height: 54px; }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); list-style: none; }
.nav__link {
  position: relative;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none;
  padding-block: 6px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.btn--header { --btn-bg: var(--navy); --btn-fg: #fff; --btn-hover: var(--navy-ink); }
.is-over-hero .btn--header { --btn-bg: var(--sand); --btn-fg: var(--navy-ink); --btn-hover: #f1e4cc; }
html.is-scrolled .is-over-hero .btn--header { --btn-bg: var(--navy); --btn-fg: #fff; --btn-hover: var(--navy-ink); }

/* Selettore lingua */
.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 6px;
  list-style: none; cursor: pointer;
  padding: 8px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  transition: background-color 0.3s var(--ease);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: rgba(127, 127, 127, 0.12); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 200px;
  list-style: none; padding: 8px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(12, 26, 49, 0.35), 0 0 0 1px var(--line);
  animation: pop 0.35s var(--ease);
}
.lang__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px;
  text-decoration: none; font-size: 0.92rem;
}
.lang__list a:hover { background: var(--sky-mist); }
.lang__list a[aria-current] { background: var(--sand-soft); font-weight: 600; }
.lang__code { width: 26px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* Menu mobile */
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle__lines { position: relative; width: 22px; height: 10px; }
.menu-toggle__lines i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle__lines i:first-child { top: 0; }
.menu-toggle__lines i:last-child { top: 100%; }
html.menu-open .menu-toggle__lines i:first-child { top: 50%; transform: rotate(45deg); }
html.menu-open .menu-toggle__lines i:last-child { top: 50%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--navy-ink);
  color: var(--ivory);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: block; visibility: hidden; }
html.menu-open .mobile-menu { clip-path: inset(0); visibility: visible; }
.mobile-menu__inner {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px;
}
.mobile-menu__list { list-style: none; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 10px 0;
  font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid var(--line-light);
}
.mobile-menu__index { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--sky); }
[data-menu-link] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
html.menu-open [data-menu-link] { opacity: 1; transform: none; }
html.menu-open li:nth-child(1) [data-menu-link] { transition-delay: 0.25s; }
html.menu-open li:nth-child(2) [data-menu-link] { transition-delay: 0.3s; }
html.menu-open li:nth-child(3) [data-menu-link] { transition-delay: 0.35s; }
html.menu-open li:nth-child(4) [data-menu-link] { transition-delay: 0.4s; }
html.menu-open li:nth-child(5) [data-menu-link] { transition-delay: 0.45s; }
html.menu-open .mobile-menu__footer { transition-delay: 0.5s; }
.mobile-menu__footer { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 32px; }
.mobile-menu__mail { color: var(--sky-soft); font-size: 0.95rem; }
.mobile-menu__langs { display: flex; gap: 8px; list-style: none; }
.mobile-menu__langs a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none;
}
.mobile-menu__langs a[aria-current] { background: var(--sand); color: var(--navy-ink); border-color: var(--sand); }
html.menu-open { overflow: hidden; }

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

.hero {
  position: relative;
  min-height: calc(100svh - var(--pnrr-h));
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--navy-ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__pic img { transform-origin: 50% 60%; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 26, 49, 0.55) 0%, rgba(12, 26, 49, 0.08) 28%, rgba(12, 26, 49, 0.2) 55%, rgba(12, 26, 49, 0.86) 100%),
    linear-gradient(90deg, rgba(12, 26, 49, 0.45) 0%, rgba(12, 26, 49, 0) 60%);
}
.hero__inner { position: relative; padding-bottom: clamp(32px, 5vh, 56px); }
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 1.6rem + 4.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 11.5em;
  text-wrap: balance;
}
.hero__title em { color: var(--sand); }
.hero__text {
  max-width: 34em;
  margin: 28px 0 36px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bottom {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 28px;
}
.hero__facts {
  flex: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  list-style: none;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  max-width: 820px;
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1.1; }
.hero__facts span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); line-height: 1.4; }
.hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
}
.hero__scroll i { position: relative; width: 1px; height: 56px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: #fff;
  animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* --- Apertura pagine interne --------------------------------------------- */

.page-hero {
  position: relative;
  min-height: clamp(460px, 70svh, 720px);
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--navy-ink);
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 49, 0.6) 0%, rgba(12, 26, 49, 0.1) 35%, rgba(12, 26, 49, 0.82) 100%);
}
.page-hero__inner { position: relative; z-index: 1; padding-block: 56px clamp(48px, 7vw, 88px); }
.page-hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.012em;
  max-width: 13em; text-wrap: balance;
}
.page-hero__title em { color: var(--sand); }
.page-hero__text { max-width: 36em; margin: 22px 0 0; color: rgba(255, 255, 255, 0.86); font-size: 1.08rem; }
.page-hero .pic__note { left: auto; right: var(--gutter); bottom: 20px; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 26px;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.75);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--dark { color: var(--muted); }

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

.section { position: relative; padding-block: clamp(84px, 11vw, 168px); }
.section--sand { background: var(--sand-soft); }
.section--navy { background: var(--navy); color: var(--ivory); }

/* Presentazione */
.intro__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 128px); align-items: center;
}
.intro__rich { margin-bottom: 48px; }
.intro__media { position: relative; padding-bottom: 12%; }
.intro__main { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.intro__main .pic img { height: 116%; }
.intro__small {
  position: absolute; left: -14%; bottom: 0;
  width: 48%; aspect-ratio: 1;
  border: 10px solid var(--ivory);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(12, 26, 49, 0.45);
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin: 0; }
.stats__item {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.stats__value { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 1.4vw, 3.3rem); line-height: 1; color: var(--navy); font-variant-numeric: lining-nums; }
.stats__label { margin-top: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* Anteprima stanze */
.room-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 88px);
}
.room-card--offset { margin-top: clamp(0px, 8vw, 120px); }
.room-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.room-card__media img { transition: transform 1.4s var(--ease); }
.room-card:hover .room-card__media img { transform: scale(1.05); }
.room-card__body { padding-top: 28px; }
.room-card__title { font-family: var(--serif); font-size: clamp(1.8rem, 1.5rem + 0.9vw, 2.4rem); line-height: 1.1; color: var(--navy); margin-bottom: 12px; }
.room-card__text { color: var(--muted); max-width: 30em; }
.room-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
}

.price { margin: 0; font-size: 0.95rem; color: var(--muted); }
.price strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--navy); }
.price--ask a { color: var(--navy); font-weight: 600; }

/* Incluso nel canone */
.included__layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
}
.included__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.included__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line-light);
}
.included__item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line-light);
}
.included__item:nth-child(odd) { padding-right: 32px; }
.included__icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(229, 211, 179, 0.45);
  color: var(--sand);
}
.included__title { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; color: var(--ivory); }
.included__text { margin: 0; font-size: 0.92rem; color: var(--sky-soft); line-height: 1.55; }

/* Spazi: galleria orizzontale */
.spaces { padding-block: 0; background: var(--ivory); }
.spaces__pin { padding-block: clamp(84px, 11vw, 160px); }
@media (min-width: 901px) {
  .spaces__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 24px) 48px; }
  .spaces__pin .section-head { margin-bottom: 28px; }
  .spaces__hint { margin-bottom: 28px; }
  .space-card { --card-h: clamp(260px, 50vh, 560px); width: calc(var(--card-h) * 0.8); }
  .space-card__media { height: var(--card-h); aspect-ratio: auto; }
}
.spaces__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.spaces__hint { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-bottom: clamp(40px, 5vw, 72px); white-space: nowrap; }
.spaces__viewport { overflow: hidden; }
.spaces__track {
  display: flex; gap: clamp(20px, 2.4vw, 36px);
  list-style: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  width: max-content;
  will-change: transform;
}
.space-card { width: clamp(280px, 30vw, 440px); flex: none; }
.space-card__media { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; }
.space-card__media img { transition: transform 1.4s var(--ease); }
.space-card:hover .space-card__media img { transform: scale(1.05); }
.space-card__body { position: relative; padding: 24px 8px 0 56px; }
.space-card__num { position: absolute; left: 0; top: 30px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.space-card__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; color: var(--navy); margin-bottom: 8px; }
.space-card__text { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Passaggi */
.steps { background: var(--paper); }
.steps__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.steps__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.steps__track { position: relative; }
.steps__line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line); }
.steps__line-fill { position: absolute; inset: 0; background: var(--navy); transform-origin: top; transform: scaleY(0); }
.steps__list { list-style: none; }
.step { position: relative; padding: 0 0 56px 92px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--navy);
  font-family: var(--serif); font-size: 1.5rem; color: var(--navy);
}
.step__title { font-family: var(--serif); font-size: clamp(1.6rem, 1.35rem + 0.7vw, 2.1rem); line-height: 1.15; color: var(--navy); padding-top: 8px; margin-bottom: 10px; }
.step__text { margin: 0; color: var(--muted); max-width: 34em; }

/* Dove siamo (home) */
.location-teaser { position: relative; min-height: clamp(560px, 92svh, 880px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-ink); }
.location-teaser__media { position: absolute; inset: 0; }
.location-teaser__media .pic img { height: 120%; }
.location-teaser__inner { position: relative; display: flex; justify-content: flex-end; padding-block: clamp(48px, 8vw, 96px); }
.location-card {
  max-width: 520px;
  padding: clamp(32px, 4vw, 56px);
  background: var(--ivory);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.5);
}
.location-card .display { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); margin-bottom: 18px; }
.location-card__address { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy); margin: 20px 0 24px; }

/* FAQ */
.faq__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 7vw, 120px); }
.faq__layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: 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: 24px;
  padding: 26px 0;
  list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.65rem); line-height: 1.25; color: var(--navy); transition: color 0.3s; }
.faq__item summary:hover .faq__q { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.4s var(--ease), border-color 0.4s; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--navy);
  transform: translate(-50%, -50%); transition: transform 0.5s var(--ease), background-color 0.4s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--navy); border-color: var(--navy); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a .rich { padding: 0 64px 28px 0; }

/* Invito finale */
.cta-band { position: relative; min-height: clamp(520px, 78svh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--navy-ink); text-align: center; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media .pic img { height: 124%; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 26, 49, 0.55), rgba(12, 26, 49, 0.78)); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-block: 96px; }
.cta-band .display { max-width: 14em; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); }
.cta-band .lead { margin: 24px auto 36px; }

/* Stanze: dettaglio */
.room-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.room-detail--reverse .room-detail__media { order: 2; }
.room-detail__media { position: relative; padding-bottom: 14%; }
.room-detail__main { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.room-detail__main .pic img { height: 112%; }
.room-detail__small {
  position: absolute; right: -8%; bottom: 0; width: 46%; aspect-ratio: 4 / 5;
  border: 10px solid var(--ivory); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(12, 26, 49, 0.45);
}
.room-detail--reverse .room-detail__small { right: auto; left: -8%; border-color: var(--sand-soft); }
.room-detail__text .rich { margin-bottom: 32px; }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-bottom: 36px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.checklist .icon { color: var(--accent); margin-top: 4px; }
.room-detail__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Dotazione */
.equipment__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.equipment__item {
  display: flex; align-items: center; gap: 18px;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.equipment__item:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(12, 26, 49, 0.3); }
.equipment__item .icon { color: var(--navy); width: 28px; height: 28px; }
.equipment__note { margin: 40px auto 0; text-align: center; color: var(--muted); max-width: 42em; font-size: 0.95rem; }

/* La residenza */
.about__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.about__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.about__media .pic img { height: 114%; }

.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.service {
  padding: 30px 26px 28px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 24px 48px -30px rgba(12, 26, 49, 0.3); }
.service__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 50%; background: var(--sky-mist); color: var(--navy); }
.service__title { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.service__text { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.year__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts__row { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; text-align: right; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--navy); }

/* Dove siamo: pagina */
.location__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.address-card { margin-top: 36px; padding: 28px; border-radius: var(--radius-lg); background: var(--sand-soft); }
.address-card__label { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.address-card__value { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--navy); }
.map-consent {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(143, 169, 196, 0.35), transparent 55%),
    repeating-linear-gradient(45deg, var(--sky-mist) 0 18px, #eef2f7 18px 36px);
  overflow: hidden;
  text-align: center;
}
.map-consent__inner { max-width: 340px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--navy); }
.map-consent__inner p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location__note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.nearby__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); }
.nearby__list { list-style: none; border-top: 1px solid var(--line); }
.nearby__list li { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.nearby__name { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.nearby__distance { color: var(--muted); font-size: 0.92rem; text-align: right; }

.directions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.direction { padding: 30px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.direction .icon { color: var(--navy); margin-bottom: 18px; }
.direction h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.direction p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Contatti */
.contact__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-card { padding: clamp(28px, 3vw, 44px); background: var(--navy); color: var(--ivory); border-radius: var(--radius-lg); }
.contact-card__title { font-family: var(--serif); font-size: 1.8rem; line-height: 1.15; margin-bottom: 24px; color: var(--sand); }
.contact-card__list { list-style: none; display: grid; gap: 16px; margin-bottom: 28px; }
.contact-card__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; overflow-wrap: anywhere; }
.contact-card__list .icon { color: var(--sky); margin-top: 4px; }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(27, 54, 93, 0.22);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27, 54, 93, 0.1); }
.field--error input, .field--error textarea { border-color: #a23b3b; }
.field__error { margin: 0; font-size: 0.82rem; color: #a23b3b; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.field--check label { flex: 1; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.field--check .field__error { flex-basis: 100%; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 32px; }
.form__note { margin: 0; flex: 1; min-width: 220px; font-size: 0.82rem; color: var(--muted); }
.form-alert { padding: 14px 18px; border-radius: 10px; background: #f8e5e2; color: #7d2727; font-size: 0.92rem; }
.form-success { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border-radius: var(--radius-lg); background: var(--sand-soft); color: var(--navy); }
.form-success p { margin: 0; font-size: 1.05rem; }

/* Documenti (PNRR, pagine legali) */
.doc { padding-top: clamp(48px, 7vw, 96px); }
.doc__title { font-family: var(--serif); font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1.06; color: var(--navy); margin-bottom: 14px; text-wrap: balance; }
.doc__updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 40px; }
.doc__lang-note { padding: 14px 18px; border-radius: 10px; background: var(--sky-mist); color: var(--navy); font-size: 0.92rem; margin-bottom: 32px; }
.doc__block { margin-top: 48px; }
.doc__h2 { font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2.2rem); color: var(--navy); margin-bottom: 16px; }
.prose { color: var(--ink); font-size: 1.02rem; }
.prose h2 { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); margin: 44px 0 14px; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--sand-soft); }
.pnrr__logos { padding: 20px 24px; margin-bottom: 44px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pnrr__logos img { width: 100%; height: auto; }
.pnrr__meta { display: grid; gap: 0; margin: 32px 0 8px; border-top: 1px solid var(--line); }
.pnrr__meta div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pnrr__meta dt { color: var(--muted); font-size: 0.9rem; }
.pnrr__meta dd { margin: 0; font-weight: 600; color: var(--navy); }

.notfound { min-height: 70svh; display: flex; align-items: center; }
.notfound__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound__code { font-family: var(--serif); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--sand); margin: 0; }
.notfound .lead { margin: 18px auto 32px; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--navy-ink); color: var(--sky-soft); padding-top: clamp(72px, 9vw, 120px); font-size: 0.92rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: 64px; }
.brand--footer { color: var(--sand); margin-bottom: 24px; }
.brand--footer .logo { height: 118px; }
.site-footer__about { max-width: 26em; }
.site-footer__title { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); margin-bottom: 20px; }
.site-footer__list { list-style: none; display: grid; gap: 12px; }
.site-footer__list li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.site-footer__list .icon { color: var(--sky); margin-top: 3px; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer__pnrr { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line-light); }
/* Logo firma sempre a colori (Linee guida MUR): su fondo scuro va su una targa bianca. */
.site-footer__pnrr-logo { display: block; padding: 14px 18px; background: #fff; border-radius: 10px; }
.site-footer__pnrr-logo img { width: 100%; height: auto; }
.site-footer__pnrr p { margin: 0; font-size: 0.85rem; }
.site-footer__cup { margin-top: 6px !important; color: var(--sand); font-weight: 600; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 28px 0 36px; border-top: 1px solid var(--line-light); font-size: 0.8rem; color: var(--sky); }
.site-footer__bottom p { margin: 0; max-width: 72em; }
.site-footer__bottom a { color: inherit; }
.site-footer__top-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--sand); white-space: nowrap; }

/* Suggerimento lingua */
.lang-hint {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 20px;
  background: var(--navy); color: var(--ivory);
  border-radius: 999px;
  box-shadow: 0 20px 50px -20px rgba(12, 26, 49, 0.6);
  animation: rise 0.6s var(--ease);
}
.lang-hint[hidden] { display: none; }
.lang-hint__body { display: flex; align-items: center; gap: 14px; }
.lang-hint__body p { margin: 0; font-size: 0.85rem; }
.lang-hint__close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); cursor: pointer; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* --- Animazioni (attive solo con JavaScript e senza "riduci movimento") --- */

html.anim [data-reveal], html.anim [data-reveal-item] { opacity: 0; transform: translateY(28px); }
html.anim [data-hero-item] { opacity: 0; transform: translateY(24px); }
html.anim [data-hero-title], html.anim [data-split] { opacity: 0; }
html.anim [data-clip] { clip-path: inset(100% 0 0 0); }
html.anim .split-ready { opacity: 1; }
.split-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__scroll i::after { animation: none; }
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-header .brand .logo, html.is-scrolled .site-header .brand .logo { height: 52px; }
  .btn--header { display: none; }
  .intro__layout, .room-detail__layout, .about__layout, .year__layout, .location__layout,
  .nearby__layout, .contact__layout, .faq__layout, .steps__layout, .included__layout { grid-template-columns: minmax(0, 1fr); }
  .included__head, .steps__aside, .faq__layout .section-head, .contact__aside { position: static; }
  .intro__media { order: -1; margin-left: 10%; }
  .room-detail--reverse .room-detail__media { order: 0; }
  .room-detail__media { margin-right: 8%; }
  .room-detail--reverse .room-detail__media { margin-right: 0; margin-left: 8%; }
  .room-cards { grid-template-columns: minmax(0, 1fr); }
  .room-card--offset { margin-top: 0; }
  .equipment__grid, .directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .spaces__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .spaces__viewport::-webkit-scrollbar { display: none; }
  .space-card { scroll-snap-align: center; width: min(78vw, 400px); }
  .location-teaser__inner { justify-content: stretch; }
  .site-footer__pnrr { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --pnrr-h: 46px; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero__facts span { font-size: 0.72rem; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .included__grid, .checklist, .form__grid, .services__grid, .equipment__grid, .directions__grid, .stats { grid-template-columns: minmax(0, 1fr); }
  .included__item, .included__item:nth-child(odd) { padding-right: 0; }
  .facts__row { flex-direction: column; gap: 4px; }
  .facts dd { text-align: left; }
  .faq__a .rich { padding-right: 0; }
  .step { padding-left: 76px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pnrr__meta div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lang-hint { border-radius: var(--radius-lg); right: 16px; }
  .lang-hint__body { flex-wrap: wrap; }
}

/* --- Prenotazione e area riservata ---------------------------------------- */

/* Accesso studenti nell'intestazione e Admin nel piè di pagina */
.header-login {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: inherit; font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.header-login:hover { background: rgba(127, 127, 127, 0.12); }
.mobile-menu__login { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; text-decoration: none; }
.site-footer__bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-footer__admin { color: var(--sky) !important; text-decoration: none; opacity: 0.8; }
.site-footer__admin:hover { opacity: 1; text-decoration: underline; }

/* Stati */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; white-space: nowrap;
  background: var(--sky-mist); color: var(--navy);
}
.badge--available, .badge--ok { background: #e3efe7; color: #245a3e; }
.badge--few, .badge--warn { background: #f6ead2; color: #7a5212; }
.badge--none, .badge--danger { background: #f6e1de; color: #8a2d2d; }
.badge--unknown, .badge--info { background: var(--sky-mist); color: var(--navy); }
.badge--muted { background: rgba(27, 54, 93, 0.07); color: var(--muted); }

/* Disponibilità */
.avail { padding-bottom: clamp(48px, 6vw, 88px); }
.avail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 56px); }
.avail__card { padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.avail__card--summer { background: var(--sand-soft); border-color: transparent; }
.avail__head { margin-bottom: 18px; }
.avail__title { font-family: var(--serif); font-size: clamp(1.6rem, 1.4rem + 0.6vw, 2rem); line-height: 1.1; color: var(--navy); margin: 0 0 6px; }
.avail__dates { margin: 0; color: var(--muted); font-size: 0.92rem; }
.avail__types { list-style: none; margin: 0; padding: 0; display: grid; }
.avail__type { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.avail__name { font-weight: 600; color: var(--ink); }
.avail__price { grid-column: 1 / -1; font-size: 0.88rem; color: var(--muted); }
.avail__price strong { color: var(--navy); }
.avail__mid { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.avail__note { margin-top: 28px; color: var(--muted); max-width: 46em; }
.avail__empty { padding: 18px 22px; border-radius: 10px; background: var(--sky-mist); color: var(--navy); }

/* Modulo di prenotazione */
.booking { padding-top: clamp(48px, 6vw, 88px); }
.bform__required { margin: 0 0 20px; font-size: 0.85rem; color: var(--muted); }
.bform__set { margin: 0 0 36px; padding: 0; border: 0; min-width: 0; }
.bform__legend {
  display: flex; align-items: baseline; gap: 14px; width: 100%;
  padding: 0 0 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.8rem); color: var(--navy);
}
.bform__legend span { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.field__label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field__hint { margin: 0; font-size: 0.82rem; color: var(--muted); }
.field--error select, .field--error .choice__item { border-color: #a23b3b; }
.field--file input[type="file"] { padding: 12px; background: var(--paper); border: 1px dashed rgba(27, 54, 93, 0.3); border-radius: 10px; font: inherit; font-size: 0.9rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.choice { display: flex; flex-wrap: wrap; gap: 12px; }
.choice__item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border: 1px solid rgba(27, 54, 93, 0.22); border-radius: 10px;
  background: var(--paper); cursor: pointer; font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field .choice__item input[type="radio"] { width: 18px; height: 18px; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--navy); flex: none; }
.choice__item:hover { border-color: var(--navy); }
.choice__item:has(input:checked) { border-color: var(--navy); background: var(--sky-mist); box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.08); }
.choice__item:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.choice--cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice__item--card { flex-wrap: wrap; align-items: flex-start; }
.choice__title { font-weight: 600; color: var(--ink); }
.choice__meta { flex-basis: 100%; padding-left: 28px; font-size: 0.85rem; color: var(--muted); }
/* Senza JavaScript: i campi del pagatore compaiono solo quando servono (dove il browser supporta :has). */
.bform:has(#b-PayerOther:not(:checked)) .bform__payer { display: none; }
.bform__payer { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Modulo a fasi (solo con JavaScript: senza, tutte le fasi restano visibili una sotto l'altra). */
.bsteps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 36px; padding: 0; }
.bsteps__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%;
  padding: 12px 0 0; border: 0; border-top: 3px solid var(--line); background: none;
  font: inherit; text-align: left; color: var(--muted); cursor: pointer; transition: border-color 0.4s, color 0.4s;
}
.bsteps__btn:disabled { cursor: default; }
.bsteps__btn:not(:disabled):hover .bsteps__label { color: var(--navy); }
.bsteps__btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.bsteps__num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.bsteps__label { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.bsteps__item.is-done .bsteps__btn { border-top-color: var(--accent); }
.bsteps__item[aria-current="step"] .bsteps__btn { border-top-color: var(--navy); color: var(--navy); }
.bform__step:focus { outline: none; }
.bform.is-wizard .bform__step[hidden] { display: none; }
.bform.is-wizard .bform__step > .bform__set:last-child { margin-bottom: 0; }
.bform.is-wizard .form__foot { padding-top: 28px; border-top: 1px solid var(--line); }
.bform .form__foot [hidden] { display: none; }

/* Università: elenco filtrabile */
.combo { position: relative; }
.combo input { width: 100%; }
.combo__list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 300px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(27, 54, 93, 0.35);
}
.combo__option { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.combo__option[aria-selected="true"], .combo__option:hover { background: var(--sky-mist); }
.combo__name { font-size: 0.95rem; color: var(--ink); }
.combo__name mark { background: none; color: var(--navy); font-weight: 700; }
.combo__city { font-size: 0.8rem; color: var(--muted); }
.combo__empty { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.terms-box { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.terms-box summary { padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--navy); }
.terms-box__body { max-height: 360px; overflow: auto; padding: 0 18px 18px; font-size: 0.92rem; }
.form__note--strong { font-weight: 600; color: var(--navy); }
.bform__privacy { margin-top: 18px; }
.form-alert p { margin: 0; }
.form-alert p + p { margin-top: 6px; }
.form-alert--info { background: var(--sky-mist); color: var(--navy); }
.form-success--stack { align-items: flex-start; }
.form-success__title { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; margin: 0 0 8px; color: var(--navy); }
.form-success__code { margin-top: 12px !important; font-weight: 700; letter-spacing: 0.04em; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-hover: var(--sky-mist); border-color: rgba(27, 54, 93, 0.3); }

/* Soggiorni brevi (stile hotel) */
.stay { background: var(--sand-soft); padding-block: clamp(64px, 8vw, 120px); }
.stay__layout { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: clamp(32px, 4vw, 56px); }
.stay__h3 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; font-family: var(--serif); font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.8rem); font-weight: 400; color: var(--navy); }
.stay__h3 span { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.stay-search { padding: clamp(22px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stay-search__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.stay-search .btn { margin-top: 18px; }
.stay-cal { position: relative; margin-bottom: 24px; }
.stay-cal__hint { margin-bottom: 14px; }
.stay-cal__nav { position: absolute; top: 30px; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.stay-cal__arrow { pointer-events: auto; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
.stay-cal__arrow:disabled { opacity: 0.35; cursor: default; }
.stay-cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 340px)); justify-content: space-around; gap: 28px; }
.stay-cal__title { margin: 6px 0 14px; text-align: center; font-weight: 700; color: var(--navy); text-transform: capitalize; }
.stay-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.stay-cal__wd { padding-bottom: 6px; text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.stay-cal__day {
  height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: none; font: inherit; font-size: 0.9rem; color: rgba(21, 37, 63, 0.32); cursor: default;
}
.stay-cal__day.is-free { color: var(--ink); background: #fff; border-color: var(--line); cursor: pointer; }
.stay-cal__day.is-full { color: rgba(138, 45, 45, 0.55); text-decoration: line-through; }
.stay-cal__day.is-end-ok { color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--accent); }
.stay-cal__day.is-range { background: var(--sky-mist); border-color: transparent; }
.stay-cal__day.is-start, .stay-cal__day.is-end { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.stay-cal__day:not(:disabled):hover { border-color: var(--navy); }
.stay-cal__day:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.stay-cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); }
.stay-cal__key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.stay-cal__key--full { background: #f6e1de; border-color: transparent; margin-left: 10px; }
.stay-offers__period { margin: -8px 0 20px; color: var(--muted); }
.stay-offers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.stay-offer { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stay-offer.is-full { opacity: 0.6; }
.stay-offer__pic { aspect-ratio: 16 / 10; margin: 0; }
.stay-offer__pic img { width: 100%; height: 100%; object-fit: cover; }
.stay-offer__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.stay-offer__body .btn, .stay-offer__body .badge { margin-top: auto; }
.stay-offer__body .badge { align-self: flex-start; }
.stay-offer__title { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--navy); }
.stay-offer__meta { margin: 0; font-size: 0.88rem; color: var(--muted); }
.stay-lines { margin: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.stay-lines div { display: flex; justify-content: space-between; gap: 12px; }
.stay-lines dt { color: var(--muted); }
.stay-lines dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.stay-lines__total { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); font-weight: 700; }
.stay-lines__total dt, .stay-lines__total dd { color: var(--navy); }
.stay-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.stay-summary { position: sticky; top: calc(var(--pnrr-h, 0px) + 100px); display: grid; gap: 12px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stay-summary__title { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.stay-summary__room { margin: 0; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.stay-summary__period { margin: 0; color: var(--muted); font-size: 0.92rem; }
.stay-result { max-width: 760px; margin-top: clamp(28px, 4vw, 48px); }
.stay-result:focus { outline: none; }

/* Area riservata */
.portal-top { background: var(--paper); border-bottom: 1px solid var(--line); color: var(--navy); }
.portal-top__inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.portal-top__brand .logo { height: 48px; width: auto; }
.portal-top__label { display: inline-flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.portal-top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.portal-top__logout { margin: 0; }
.portal-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--navy); font: inherit; font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.portal-link:hover { background: var(--sky-mist); }
.portal { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); min-height: 60vh; }
.portal__narrow { max-width: calc(520px + 2 * var(--gutter)); }
.portal-card { padding: clamp(22px, 3vw, 34px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.portal-card + .portal-card { margin-top: 20px; }
.portal-card--soft { background: #fff; }
.portal-card--navy { background: var(--navy); color: var(--ivory); border-color: transparent; }
.portal-card--navy .portal-h3 { color: var(--sand); }
.portal-card--navy a { color: #fff; }
.portal-card--navy .contact-card__list { margin-bottom: 0; }
.portal-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.portal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.portal-title { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1.08; color: var(--navy); margin: 0 0 10px; }
.portal-lead { color: var(--muted); margin-bottom: 22px; }
.portal-h2 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.85rem); line-height: 1.15; color: var(--navy); margin: 0 0 14px; }
.portal-h2 .icon { width: 22px; height: 22px; color: var(--accent); }
.portal-h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.portal-muted { color: var(--muted); font-size: 0.93rem; }
.portal-small { font-size: 0.82rem; margin-top: 12px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 20px; align-items: start; }
.portal-side { display: grid; gap: 20px; }
.portal-side .portal-card + .portal-card { margin-top: 0; }
.portal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; margin: 0; }
.portal-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.portal-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.portal-facts--compact { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.portal-facts--bank { margin: 16px 0 20px; padding: 16px 18px; background: var(--ivory); border-radius: 10px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.02em; }
.portal-note { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--sky-mist); color: var(--navy); font-size: 0.92rem; }
.portal-note--ok { background: #e3efe7; color: #245a3e; }
.portal-note--warn { background: #f6ead2; color: #6b470f; }
.portal-head + .portal-note { margin: 0 0 20px; }
.portal-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.portal-table th, .portal-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.portal-table th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--ivory); white-space: nowrap; }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-table td input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--navy); }
.portal-table label { cursor: pointer; }
.portal-table .badge { margin-left: 8px; }
.portal-table .is-late td { background: #fdf6f4; }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.portal-pay__methods { display: grid; gap: 16px; }
.portal-method { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.portal-method .field--check { margin: 12px 0 16px; }
.portal-method--transfer summary { cursor: pointer; margin: 0; list-style: none; }
.portal-method--transfer summary::-webkit-details-marker { display: none; }
.portal-method--transfer[open] summary { margin-bottom: 10px; }
.portal-method--transfer .form__grid { margin-bottom: 18px; }
.portal-pending { margin-top: 20px; }
.portal-list { list-style: none; margin: 0; padding: 0; }
.portal-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.portal-list form { margin: 0; }
.portal-file { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; color: var(--navy); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.portal-form { display: grid; gap: 18px; margin-top: 8px; }
.portal-auth__links { margin: 20px 0 0; font-size: 0.92rem; }
.portal-auth__links a, .portal-auth__hint a { color: var(--navy); font-weight: 600; }
.portal-auth__hint { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); }
.portal-terms__body { max-height: 55vh; overflow: auto; margin: 20px 0 24px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.portal-foot { padding-block: 28px; background: var(--navy-ink); color: var(--sky); font-size: 0.8rem; }
.portal-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.portal-foot p { margin: 0; }
.portal-foot a { color: var(--sky-soft); }
.portal-foot__links { display: flex; flex-wrap: wrap; gap: 16px; }
.portal-foot__links a:first-child { display: inline-block; }
.portal-foot__links a:first-child::first-letter { text-transform: uppercase; }

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-login__text { display: none; }
  .header-login { padding: 0 10px; }
  .choice--cards, .bform__payer { grid-template-columns: minmax(0, 1fr); }
  .stay-search__grid, .stay-book { grid-template-columns: minmax(0, 1fr); }
  .stay-summary { position: static; }
  .bsteps { display: flex; gap: 6px; }
  .bsteps__item { flex: 0 0 44px; }
  .bsteps__item[aria-current="step"] { flex: 1 1 auto; }
  /* Su schermi stretti si legge solo il nome della fase corrente; le altre restano per i lettori di schermo. */
  .bsteps__item:not([aria-current="step"]) .bsteps__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .portal-top__label { display: none; }
  .portal-top__brand .logo { height: 40px; }
  .portal-table th, .portal-table td { padding: 10px; }
}
.field--check .field__hint { flex-basis: 100%; padding-left: 32px; }

/* Consenso alla mappa */
.map-consent__remember { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.map-consent__remember input { width: 18px; height: 18px; accent-color: var(--navy); }
.map-consent__inner a { color: var(--navy); }
.consent-prefs { margin-top: 48px; padding: clamp(22px, 3vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 24px); }
.consent-prefs__title { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); margin: 0 0 12px; }
.consent-prefs p { color: var(--muted); }
.consent-prefs .consent-prefs__status { color: var(--navy); font-weight: 600; }
.consent-prefs .consent-prefs__done { margin-top: 12px; color: #245a3e; font-weight: 600; }
.consent-prefs [hidden] { display: none; }
