
/* ─────────────────────────────────────────────────────────────
   Tokens — palette read off the house itself: sage joinery,
   cotto floor, travertine plaster, brass fittings, and the blue
   of the enamel street plaque beside the door.
   ───────────────────────────────────────────────────────────── */
:root{
  --travertino:#EFE8DA;
  --calce:#FBF8F1;
  --salvia:#7E9070;
  --salvia-chiaro:#C3D0B7;   /* AA-legible sage on --salvia-scuro */
  --salvia-scuro:#41503A;
  --cotto:#9C5137;
  --inchiostro:#1F3A6E;
  --ottone:#B08D4F;
  --nero:#2A2622;

  --display:"Palatino Linotype","Book Antiqua",Palatino,"Iowan Old Style",Georgia,serif;
  --body:"Avenir Next",Avenir,"Segoe UI",system-ui,-apple-system,sans-serif;

  --step--1:clamp(.78rem,.75rem + .15vw,.86rem);
  --step-0:clamp(1rem,.96rem + .2vw,1.12rem);
  --step-1:clamp(1.2rem,1.1rem + .5vw,1.5rem);
  --step-2:clamp(1.6rem,1.35rem + 1.2vw,2.4rem);
  --step-3:clamp(2.6rem,1.8rem + 4vw,6rem);

  --gutter:clamp(1.25rem,5vw,4.5rem);
  --measure:34rem;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--travertino);
  color:var(--nero);
  font:var(--step-0)/1.65 var(--body);
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}

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

.wrap{max-width:74rem;margin-inline:auto;padding-inline:var(--gutter)}

/* ─────────────────────────────────────────────────────────────
   Signature: the targa viaria. Roman street names are painted on
   white enamel tiles with a blue double rule — the one beside
   this door carries the street name. Every section label on the page
   is one of those tiles.
   ───────────────────────────────────────────────────────────── */
.targa{
  display:inline-block;
  background:linear-gradient(160deg,#fff 0%,var(--calce) 45%,#F2ECE0 100%);
  color:var(--inchiostro);
  font-family:var(--display);
  font-size:var(--step--1);
  letter-spacing:.22em;
  text-transform:uppercase;
  line-height:1.35;
  padding:.7em 1.15em;
  border:1px solid var(--inchiostro);
  outline:3px solid #fff;
  outline-offset:-6px;
  box-shadow:0 1px 0 rgba(0,0,0,.18), 0 6px 18px -12px rgba(0,0,0,.5);
}
.targa span{display:block;font-size:.86em;letter-spacing:.18em;opacity:.75}

/* ── Hero ─────────────────────────────────────────────────── */
.hero{
  background:var(--salvia-scuro);
  color:var(--calce);
  padding-block:clamp(3.5rem,9vw,7rem);
  position:relative;
}
.hero::after{
  content:"";position:absolute;inset:auto 0 0 0;height:6px;
  background:repeating-linear-gradient(90deg,var(--cotto) 0 34px,#8A4630 34px 68px);
  opacity:.85;
}
.hero-grid{
  display:grid;gap:clamp(2rem,5vw,4rem);
  grid-template-columns:1fr;align-items:center;
}
@media(min-width:56rem){ .hero-grid{grid-template-columns:1.05fr .95fr} }
/* The lede is three sentences long, so on wide screens the hero gets a wider
   frame and the text column takes the larger share. The postcard column
   shrinks toward the photo's native 539px, which also stops it upscaling. */
@media(min-width:64rem){
  .hero .wrap{max-width:92rem}
  .hero-grid{grid-template-columns:1.7fr 1fr}
  .hero .lede{max-width:54rem}
  .hero .postcard{margin-inline:auto 0}   /* push the postcard to the right edge */
}

.hero h1{
  font-family:var(--display);
  font-size:var(--step-3);
  font-weight:400;
  line-height:.92;
  letter-spacing:-.015em;
  margin:1.4rem 0 0;
}
.hero h1 em{
  display:block;font-style:normal;
  color:var(--ottone);
}
.lede{
  max-width:var(--measure);
  font-size:var(--step-1);
  line-height:1.5;
  margin:1.6rem 0 0;
  color:#E6E1D2;
}
.hero-meta{
  margin:2rem 0 0;padding:0;list-style:none;
  display:flex;flex-wrap:wrap;gap:.55rem 1.4rem;
  font-size:var(--step--1);letter-spacing:.14em;text-transform:uppercase;
  color:var(--salvia-chiaro);
}
/* Middle dot between facts. It trails each item rather than leading the next,
   so when the list wraps on a narrow screen a line never starts with a dot.
   Spacing is tight enough that the four Italian facts fit on one line in the
   wide hero column. */
.hero-meta{gap:.55rem .8rem;letter-spacing:.11em}
.hero-meta li{white-space:nowrap}
.hero-meta li:not(:last-child)::after{content:"·";margin-left:.8rem;opacity:.7}

/* The Rome photograph is only 539px wide, so it is framed as a
   postcard rather than stretched across the page. */
.postcard{
  background:var(--calce);
  padding:clamp(.7rem,1.6vw,1.1rem);
  padding-bottom:clamp(2.4rem,4vw,3.2rem);
  box-shadow:0 24px 50px -28px rgba(0,0,0,.75);
  transform:rotate(-1.1deg);
  max-width:34rem;margin-inline:auto;
  position:relative;
}
.postcard img{border:1px solid rgba(42,38,34,.18);width:100%}
.postcard figcaption{
  position:absolute;left:0;right:0;bottom:.9rem;
  text-align:center;
  font-family:var(--display);font-style:italic;
  color:var(--nero);opacity:.75;font-size:var(--step--1);
}

/* ── The house ────────────────────────────────────────────── */
.casa{padding-block:clamp(4rem,9vw,7.5rem)}
.casa-grid{display:grid;gap:clamp(2rem,5vw,4rem);grid-template-columns:1fr}
@media(min-width:56rem){ .casa-grid{grid-template-columns:14rem 1fr} }
/* A grid item's automatic minimum size is its min-content width, so a wide
   child can push the track — and the whole document — past the viewport. */
.casa-grid > *{min-width:0}
.casa-grid > .targa{align-self:start}

.casa h2{
  font-family:var(--display);font-weight:400;
  font-size:var(--step-2);line-height:1.1;
  margin:1.2rem 0 0;max-width:22ch;
}
.casa p{max-width:var(--measure);margin:1.1rem 0 0}
.casa-grid > div > p:first-of-type{
  font-size:var(--step-1);line-height:1.55;
}
.casa-grid > div > p:first-of-type::first-letter{
  float:left;font-family:var(--display);
  font-size:3.4em;line-height:.82;
  padding:.06em .1em 0 0;color:var(--cotto);
}
/* Wide screens mirror the hero: there the text takes 1.7fr and the
   photo 1fr on the right; here the label takes the 1fr on the left
   and the copy runs across the wide column. */
@media(min-width:64rem){
  .casa.wrap{max-width:92rem}
  .casa-grid{grid-template-columns:1fr 1.7fr}
  .casa h2,.casa p{max-width:none}
}
/* The spec list sits below both columns and uses the full frame,
   so each value fits on one or two lines. */
.casa-grid > .scheda{grid-column:1/-1;max-width:none;margin-top:.6rem}

.scheda{
  margin:2.6rem 0 0;padding:1.4rem 0 0;
  border-top:1px solid rgba(42,38,34,.2);
  display:grid;
  /* min() is load-bearing here. With a bare 8rem the auto-fit repetition count
     resolves against max-width (44rem), so this grid reported a 632px
     min-content width on a 360px phone and dragged the document off screen. */
  grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));
  gap:1.1rem clamp(1.2rem,5vw,2.5rem);
  max-width:44rem;
}
.scheda div{font-size:var(--step--1)}
.scheda dt{
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--salvia-scuro);opacity:.85;
}
.scheda dd{
  margin:.3rem 0 0;font-family:var(--display);
  font-size:var(--step-0);
}
.todo{
  background:rgba(176,141,79,.22);
  border-bottom:1.5px dotted var(--cotto);
  padding:0 .25em;
}

/* ── Gallery ──────────────────────────────────────────────── */
.galleria{
  background:var(--calce);
  padding-block:clamp(4rem,9vw,7.5rem);
  border-block:1px solid rgba(42,38,34,.12);
}
.galleria-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:1.5rem;justify-content:space-between}
.galleria-head p{
  margin:0;font-size:var(--step--1);
  letter-spacing:.1em;text-transform:uppercase;color:var(--salvia-scuro);opacity:.85;
}

.tiles{
  margin-top:2.6rem;
  display:grid;gap:clamp(.6rem,1.4vw,1.1rem);
  grid-template-columns:repeat(12,1fr);
}
.tile{
  display:block;position:relative;overflow:hidden;
  grid-column:span 12;
  background:var(--travertino);
}
@media(min-width:48rem){
  .tile:nth-child(1){grid-column:span 7}
  .tile:nth-child(2){grid-column:span 5}
  .tile:nth-child(3){grid-column:span 5}
  .tile:nth-child(4){grid-column:span 7}
}
.tile img{
  width:100%;aspect-ratio:16/9;object-fit:cover;
  transition:transform .7s cubic-bezier(.2,.7,.3,1),filter .7s;
}
.tile:hover img,.tile:focus-visible img{transform:scale(1.035);filter:saturate(1.06)}
.tile figcaption{
  position:absolute;left:0;bottom:0;
  padding:.6em 1em;
  background:var(--calce);
  color:var(--inchiostro);
  font-family:var(--display);
  font-size:var(--step--1);
  letter-spacing:.16em;text-transform:uppercase;
}

/* Lightbox with no JavaScript: each photo is a :target fragment,
   so the page keeps script-src 'none' and the back button works. */
.lightbox{display:none}
.lightbox:target{
  display:grid;
  position:fixed;inset:0;z-index:50;
  place-items:center;
  padding:clamp(.75rem,3vw,2.5rem);
  background:rgba(30,36,26,.94);
}
.lightbox figure{margin:0;max-width:min(100%,72rem)}
.lightbox img{
  width:100%;max-height:78vh;object-fit:contain;
  box-shadow:0 30px 70px -40px #000;
}
.lightbox figcaption{
  margin-top:1rem;text-align:center;
  color:var(--calce);font-family:var(--display);
  letter-spacing:.14em;text-transform:uppercase;font-size:var(--step--1);
}
.lb-nav{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:space-between;
  padding:clamp(.5rem,2vw,2rem);
  pointer-events:none;
}
.lb-nav a{
  pointer-events:auto;
  width:3rem;height:3rem;display:grid;place-items:center;
  border:1px solid rgba(251,248,241,.45);
  color:var(--calce);text-decoration:none;font-size:1.1rem;
  background:rgba(0,0,0,.25);
}
.lb-nav a:hover{background:var(--ottone);border-color:var(--ottone);color:var(--nero)}
.lb-close{
  position:absolute;top:clamp(.5rem,2vw,2rem);right:clamp(.5rem,2vw,2rem);
  width:3rem;height:3rem;display:grid;place-items:center;
  border:1px solid rgba(251,248,241,.45);
  color:var(--calce);text-decoration:none;font-size:1.4rem;line-height:1;
}
.lb-close:hover{background:var(--ottone);border-color:var(--ottone);color:var(--nero)}

/* ── Footer ───────────────────────────────────────────────── */
.piede{
  padding-block:clamp(3rem,6vw,4.5rem);
  font-size:var(--step--1);
}
.piede a{color:var(--cotto)}
.piede .cin{margin-top:1.2rem;opacity:.75}
.piede-contatti{margin-top:1.4rem}
.piede-date{margin-top:.6rem;max-width:34rem;opacity:.8}

/* 404 (classes, not inline styles: the CSP allows only style-src 'self') */
.e404{font-family:var(--display);font-weight:400;font-size:var(--step-2);margin-top:1.2rem}
.e404-lingue{margin-top:1.5rem;padding-left:1.1rem}

/* Privacy notice: a slim plaque at the foot of every page. The summary
   is the always-visible short notice; the full text opens in place. */
.privacy{
  margin-top:2rem;max-width:48rem;
  border:1px solid rgba(42,38,34,.22);background:rgba(255,255,255,.35);
}
.privacy summary{cursor:pointer;list-style:none;padding:.85rem 1.1rem;line-height:1.55}
.privacy summary::-webkit-details-marker{display:none}
.privacy summary strong{
  font-family:var(--display);font-weight:400;letter-spacing:.14em;
  text-transform:uppercase;margin-right:.5em;color:var(--inchiostro);
}
.privacy-more{color:var(--cotto);text-decoration:underline;text-underline-offset:.2em;white-space:nowrap}
.privacy-more::after{content:" +"}
.privacy[open] .privacy-more::after{content:" \2212"}
.privacy summary:focus-visible{outline:2px solid var(--cotto);outline-offset:2px}
.privacy-body{padding:0 1.1rem 1rem;border-top:1px solid rgba(42,38,34,.14)}
.privacy-body p{margin:.8rem 0 0;line-height:1.6}
.privacy-updated{opacity:.65}

@media(prefers-reduced-motion:reduce){
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .postcard{transform:none}
}
/* ═══════════════════════════════════════════════════════════
   NAVIGATION — a <details> element, so the dropdown opens with
   no JavaScript and the page keeps script-src 'none'.
   ═══════════════════════════════════════════════════════════ */
.nav{position:fixed;top:clamp(.75rem,2vw,1.5rem);left:clamp(.75rem,2vw,1.5rem);z-index:60}
.nav summary{
  list-style:none;cursor:pointer;
  display:inline-flex;align-items:center;gap:.75em;
}
.nav summary::-webkit-details-marker{display:none}
.nav summary .targa{transition:box-shadow .25s}
.nav summary:hover .targa{box-shadow:0 2px 0 rgba(0,0,0,.2),0 10px 26px -12px rgba(0,0,0,.7)}
.nav-bars{display:grid;gap:3px;padding-right:.1rem}
.nav-bars i{display:block;width:16px;height:1.5px;background:var(--inchiostro);transition:transform .3s}
.nav[open] .nav-bars i:first-child{transform:translateY(4.5px) rotate(45deg)}
.nav[open] .nav-bars i:nth-child(2){opacity:0}
.nav[open] .nav-bars i:last-child{transform:translateY(-4.5px) rotate(-45deg)}

.nav-menu{
  margin-top:.6rem;
  background:var(--calce);
  border:1px solid var(--inchiostro);
  outline:3px solid #fff;outline-offset:-6px;
  box-shadow:0 20px 44px -22px rgba(0,0,0,.65);
  padding:.9rem;min-width:15rem;
}
.nav-menu > a{
  display:block;text-decoration:none;
  font-family:var(--display);color:var(--inchiostro);
  letter-spacing:.14em;text-transform:uppercase;font-size:var(--step--1);
  padding:.62em .7em;border-bottom:1px solid rgba(31,58,110,.16);
}
.nav-menu > a:last-of-type{border-bottom:0}
.nav-menu > a:hover{background:var(--inchiostro);color:var(--calce)}
.nav-menu a small{
  display:block;font-family:var(--body);text-transform:none;
  letter-spacing:0;opacity:.6;font-size:.82em;margin-top:.15em;
}
/* The same five languages as the top-right tile, at the foot of the
   menu, so they can be changed from anywhere on the page. */
.nav-lingue{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:.2rem;
  margin:.5rem 0 0;padding:.75rem .3rem 0;list-style:none;
  border-top:1px solid rgba(31,58,110,.28);
}
.nav-lingue a{
  display:flex;align-items:center;justify-content:center;
  min-width:2.4rem;min-height:2.4rem;padding:0 .4em;
  text-decoration:none;font-family:var(--display);color:var(--inchiostro);
  font-size:var(--step--1);letter-spacing:.14em;line-height:1;
  opacity:.75;transition:opacity .2s,background .2s,color .2s;
}
.nav-lingue a:hover{opacity:1;background:var(--inchiostro);color:var(--calce)}
.nav-lingue a.attiva{opacity:1;color:var(--cotto);box-shadow:inset 0 -2px 0 var(--cotto)}

/* ═══════════════════════════════════════════════════════════
   SIGNPOST — the in-page navigation. Roman lanes are signed with
   stacked plaques; these sit askew and straighten when you reach
   for them, revealing what is on the other side.
   ═══════════════════════════════════════════════════════════ */
.indicazioni{
  background:var(--salvia-scuro);color:var(--calce);
  padding-block:clamp(3.5rem,8vw,6rem);
}
.palina{
  margin-top:2.4rem;
  display:grid;gap:clamp(.8rem,2vw,1.4rem);
  grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));
}
.palina a{
  text-decoration:none;color:var(--inchiostro);
  background:linear-gradient(160deg,#fff 0%,var(--calce) 45%,#F2ECE0 100%);
  border:1px solid var(--inchiostro);
  outline:3px solid #fff;outline-offset:-6px;
  padding:1.5rem 1.35rem 1.35rem;
  box-shadow:0 2px 0 rgba(0,0,0,.2),0 14px 30px -18px rgba(0,0,0,.8);
  transition:transform .4s cubic-bezier(.2,.8,.3,1),box-shadow .4s;
  display:block;
}
.palina a:nth-child(1){transform:rotate(-1.4deg)}
.palina a:nth-child(2){transform:rotate(.9deg)}
.palina a:nth-child(3){transform:rotate(-.6deg)}
.palina a:hover,.palina a:focus-visible{
  transform:rotate(0) translateY(-5px);
  box-shadow:0 3px 0 rgba(0,0,0,.22),0 26px 46px -22px rgba(0,0,0,.9);
}
.palina b{
  display:block;font-family:var(--display);font-weight:400;
  font-size:var(--step-1);letter-spacing:.16em;text-transform:uppercase;
  line-height:1.2;
}
.palina i{
  display:block;font-style:normal;font-family:var(--body);
  font-size:var(--step--1);letter-spacing:.1em;text-transform:uppercase;
  color:var(--cotto);margin-top:.55rem;
}
/* The reveal: collapsed to zero height until hover or keyboard focus. */
.palina em{
  display:block;font-style:normal;font-family:var(--body);
  letter-spacing:0;text-transform:none;color:var(--nero);
  font-size:var(--step--1);line-height:1.55;
  max-height:0;opacity:0;overflow:hidden;
  transition:max-height .45s cubic-bezier(.2,.8,.3,1),opacity .35s,margin .45s;
}
.palina a:hover em,.palina a:focus-visible em{max-height:8rem;opacity:1;margin-top:.9rem}

/* ═══════════════════════════════════════════════════════════
   GUIDE SECTIONS
   ═══════════════════════════════════════════════════════════ */
.guida{padding-block:clamp(3.5rem,8vw,6.5rem)}
.guida--chiara{background:var(--calce);border-block:1px solid rgba(42,38,34,.12)}
.guida h2{
  font-family:var(--display);font-weight:400;
  font-size:var(--step-2);line-height:1.12;margin:1.2rem 0 0;max-width:24ch;
}
.guida .intro{max-width:var(--measure);margin:1rem 0 0}

.elenco{margin:2.6rem 0 0;padding:0;list-style:none;border-top:1px solid rgba(42,38,34,.2)}
.elenco li{
  border-bottom:1px solid rgba(42,38,34,.2);
  padding:1.5rem 0;
  display:grid;gap:.35rem 2rem;
  grid-template-columns:1fr;
}
@media(min-width:48rem){
  .elenco li{grid-template-columns:minmax(0,1fr) 11rem;align-items:start}
}
.elenco h3{
  margin:0;font-family:var(--display);font-weight:400;
  font-size:var(--step-1);line-height:1.2;
}
.elenco .dove{
  font-size:var(--step--1);letter-spacing:.13em;text-transform:uppercase;
  color:var(--salvia-scuro);opacity:.85;margin:.35rem 0 0;
}
.elenco .nota{margin:.7rem 0 0;max-width:46ch}
.elenco .azioni{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}
@media(min-width:48rem){ .elenco .azioni{align-items:stretch} }

.bottone{
  display:inline-block;text-decoration:none;
  font-size:var(--step--1);letter-spacing:.11em;text-transform:uppercase;
  font-family:var(--display);
  padding:.62em 1em;
  border:1px solid var(--inchiostro);color:var(--inchiostro);
  background:transparent;text-align:center;
  transition:background .2s,color .2s;
}
.bottone:hover{background:var(--inchiostro);color:var(--calce)}
.bottone--cotto{border-color:var(--cotto);color:var(--cotto)}
.bottone--cotto:hover{background:var(--cotto);color:var(--calce)}

/* ═══════════════════════════════════════════════════════════
   TRANSPORT
   ═══════════════════════════════════════════════════════════ */
.tratta{margin-top:2.8rem}
.tratta > h3{
  font-family:var(--display);font-weight:400;font-size:var(--step-1);
  margin:0 0 .3rem;
}
.tratta > p{margin:0 0 1.2rem;max-width:var(--measure);font-size:var(--step--1);opacity:.85}

.opzioni{width:100%;border-collapse:collapse;font-size:var(--step--1)}
.opzioni caption{text-align:left;padding-bottom:.6rem;opacity:.6;letter-spacing:.1em;text-transform:uppercase}
.opzioni th,.opzioni td{text-align:left;padding:.85rem .8rem;border-bottom:1px solid rgba(42,38,34,.18);vertical-align:top}
.opzioni th{
  letter-spacing:.14em;text-transform:uppercase;font-weight:400;
  color:var(--salvia-scuro);border-bottom-color:rgba(42,38,34,.35);
}
.opzioni td:first-child{font-family:var(--display);font-size:var(--step-0)}
.opzioni .prezzo{font-family:var(--display);font-size:var(--step-0);color:var(--cotto);white-space:nowrap}
.opzioni tr.consigliata td{background:rgba(126,144,112,.14)}
.opzioni tr.consigliata td:first-child::after{
  display:block;
  font-family:var(--body);font-size:.72em;letter-spacing:.14em;text-transform:uppercase;
  color:var(--salvia-scuro);margin-top:.25rem;
}
@media(max-width:47.99rem){
  .opzioni,.opzioni tbody,.opzioni tr,.opzioni td{display:block;width:100%}
  .opzioni thead{display:none}
  /* A table-caption inside a display:block table shrink-wraps, which broke
     "To the house" onto one word per line. */
  .opzioni caption{display:block;width:100%}
  .opzioni tr{border-bottom:1px solid rgba(42,38,34,.25);padding:.9rem 0}
  .opzioni td{border:0;padding:.15rem 0}
  .opzioni td::before{
    content:attr(data-l) " ";
    letter-spacing:.13em;text-transform:uppercase;opacity:.55;font-size:.85em;
  }
  .opzioni td:first-child::before{content:""}
}

.verificato{
  margin-top:2.4rem;padding:1rem 1.2rem;
  border-left:3px solid var(--ottone);
  background:rgba(176,141,79,.1);
  font-size:var(--step--1);max-width:46rem;
}

.skip{position:absolute;left:-9999px}
.skip:focus{
  left:1rem;top:1rem;position:fixed;z-index:99;
  background:var(--calce);color:var(--inchiostro);padding:.7em 1em;
}

/* the hero must clear both fixed plaques on small screens */
@media(max-width:56rem){ .hero{padding-top:clamp(6rem,20vw,8rem)} }

/* ═══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER — mirrors the Menu plaque, top right.
   Plain links: no JavaScript, and each one is a real URL that
   search engines and the browser back button both understand.
   ═══════════════════════════════════════════════════════════ */
.lingue{
  position:absolute;top:clamp(.75rem,2vw,1.5rem);right:clamp(.75rem,2vw,1.5rem);z-index:60;
}
.lingue ul{
  display:flex;margin:0;padding:0;list-style:none;
  background:linear-gradient(160deg,#fff 0%,var(--calce) 45%,#F2ECE0 100%);
  border:1px solid var(--inchiostro);
  outline:3px solid #fff;outline-offset:-6px;
  box-shadow:0 1px 0 rgba(0,0,0,.18),0 6px 18px -12px rgba(0,0,0,.5);
  padding:.32rem;
}
.lingue a{
  display:block;text-decoration:none;
  font-family:var(--display);color:var(--inchiostro);
  font-size:var(--step--1);letter-spacing:.14em;
  padding:.42em .58em;line-height:1;
  opacity:.75;transition:opacity .2s,background .2s,color .2s;
}
.lingue a:hover{opacity:1;background:var(--inchiostro);color:var(--calce)}
.lingue a.attiva{
  opacity:1;color:var(--cotto);
  box-shadow:inset 0 -2px 0 var(--cotto);
}
@media(max-width:26rem){
  .lingue a{padding:.4em .42em;letter-spacing:.08em}
}

/* "Our pick" label is supplied per language via data-pick */
.opzioni tr.consigliata td:first-child::after{content:attr(data-pick)}

/* ═══════════════════════════════════════════════════════════
   PHONES — everything below this line exists because the layout
   was measured on a 360px viewport, not because it looked small
   in a desktop window narrowed by hand.
   ═══════════════════════════════════════════════════════════ */

/* iOS paints its own grey flash on every tap; the :focus-visible
   ring already communicates activation. */
a,summary{-webkit-tap-highlight-color:transparent}

/* ── Touch targets ─────────────────────────────────────────
   A finger contact patch is ~9mm. Anything under 44px is a
   coin-flip, and the five language codes were 25px tall. */
@media(pointer:coarse){
  .lingue a{min-height:2.6rem;min-width:2.1rem;display:flex;align-items:center;justify-content:center}
  .nav summary .targa{padding-block:.95em}
  .nav-menu > a{padding-block:.85em}
  .bottone{padding:.85em 1.15em}
  .piede a{display:inline-block;padding-block:.35em}
  .lb-nav a,.lb-close{width:3.25rem;height:3.25rem}
}

/* ── The signpost cards ────────────────────────────────────
   The description was revealed on :hover, which on a touch
   screen means never. Show it outright and drop the tilt, which
   only reads as deliberate when it can straighten on hover. */
@media(hover:none){
  .palina em{max-height:none;opacity:1;margin-top:.9rem;overflow:visible}
}

/* ── Fixed plaques vs. page content ────────────────────────
   The hero already clears them; the guide pages had 8px of
   headroom, so the section label sat under the Menu tile. */
@media(max-width:56rem){
  main > .guida:first-child,
  main > .casa:first-child{padding-top:clamp(5.5rem,17vw,7rem)}
}

/* Two plaques on one line is tight below ~24rem. Tighten the
   language tile rather than let it collide with the menu. */
@media(max-width:24rem){
  .lingue ul{padding:.2rem}
  .lingue a{padding:.42em .34em;letter-spacing:.02em}
  .nav-menu{min-width:min(15rem,calc(100vw - 1.5rem))}
}

/* ── Photographs ───────────────────────────────────────────
   16:9 on a phone is a 200px-tall strip; rooms need height. */
@media(max-width:48rem){
  .tile img{aspect-ratio:4/3}
  .galleria-head{gap:.9rem}
}

/* Mobile browser chrome makes vh unreliable — dvh tracks the
   visible area as the URL bar collapses. */
.lightbox img{max-height:78dvh}
.lightbox:target{padding-block:max(1rem,env(safe-area-inset-top))}

/* Landscape phones: the lightbox has almost no vertical room. */
@media(max-height:26rem) and (orientation:landscape){
  .lightbox img{max-height:82dvh}
  .lightbox figcaption{margin-top:.5rem}
}

/* ═══════════════════════════════════════════════════════════
   COMING SOON — a sage band that closes the page, echoing the hero,
   until the photographs and guide pages are ready.
   ═══════════════════════════════════════════════════════════ */
.prossimamente{
  background:var(--salvia-scuro);color:var(--calce);
  padding-block:clamp(3.5rem,8vw,6rem);
  position:relative;
}
.prossimamente::before{
  content:"";position:absolute;inset:0 0 auto 0;height:6px;
  background:repeating-linear-gradient(90deg,var(--cotto) 0 34px,#8A4630 34px 68px);
  opacity:.85;
}
.prossimamente h2{
  font-family:var(--display);font-weight:400;
  font-size:var(--step-2);line-height:1.1;
  margin:1.4rem 0 0;max-width:24ch;color:var(--calce);
}
.prossimamente p:not(.targa){
  max-width:var(--measure);margin:1.1rem 0 0;color:#E6E1D2;
}
/* On wide screens the band and the footer share the hero's frame,
   so every section starts on the same left edge. */
@media(min-width:64rem){
  .prossimamente .wrap,.piede.wrap{max-width:92rem}
}
