/* ==========================================================================
   MASSERIA BOUGANVILLEA
   Shared stylesheet — used by every page.

   Sections, in order (Cmd+F to jump):
     TOKENS      colours, fonts, spacing  ← change things here first
     BASE        resets and typography
     CURTAIN     the opening animation
     TOP BAR     the menu at the top of every page
     FOOTER      the footer on every page
     HOME        only used by index.html
     DUO         the alternating image / text rows
     PAGES       page headings and intros
     CAROUSEL    the image sliders
     BOOKING     the prenota page and its form
   ========================================================================== */


/* ==========================================================================
   TOKENS
   ========================================================================== */

:root {
  --pietra:     #e9e8e2;   /* page background — pale limestone */
  --calce:      #fafaf7;   /* lighter panels — lime wash */
  --inchiostro: #2c302e;   /* body text */
  --ombra:      #74786f;   /* secondary text */
  /* The one accent: the brand colour taken from the logo. The logo
     itself is full strength (#B50150); this is a slightly deeper,
     quieter version of it for small type and hover rules, so it does
     not shout on a page this calm. To go back to the earlier
     dusty blue, put #46596c here. */
  --blu:        #8e1548;
  --linea:      #d2d1c8;   /* hairlines */
  --bianco:     #ffffff;

  --display: "Italiana", "Didot", Georgia, serif;
  --testo: "EB Garamond", Georgia, serif;

  --gutter: 24px;
  --column: 34em;
}


/* ==========================================================================
   BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pietra);
  color: var(--inchiostro);
  font-family: var(--testo);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--blu);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================================
   CURTAIN — the opening animation
   A plain panel with the logo, which fades away on its own.
   Pure CSS, so it always clears even if the JavaScript fails.
   site.js only stops it repeating on every page you visit.

   TO CHANGE THE TIMING: 1500ms below is how long it holds.
   ========================================================================== */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--calce);
  animation: curtain-out 700ms ease 1500ms forwards;
}

.curtain img {
  width: min(240px, 52vw);
  opacity: 0;
  transform: translateY(8px);
  animation: curtain-in 1000ms cubic-bezier(0.2, 0, 0.1, 1) 150ms forwards;
}

@keyframes curtain-in { to { opacity: 1; transform: none; } }
@keyframes curtain-out { to { opacity: 0; visibility: hidden; } }

/* Already seen this visit: skip it. */
.curtain-skip .curtain { display: none; }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}


/* ==========================================================================
   TOP BAR
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gutter);
  padding: 16px var(--gutter);
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: var(--calce);
  border-bottom: 1px solid var(--linea);
}

.topbar-left { justify-self: start; }

.topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar a,
.topbar summary {
  font-family: var(--testo);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ombra);
}

/* ---- Logo, with the name in small letters underneath.
        Change the height to resize the mark itself. ---- */
.logo { display: block; text-align: center; }

.logo img { height: 46px; width: auto; margin-inline: auto; }

.wordmark {
  display: block;
  margin: 7px 0 0;
  font-family: var(--testo);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  line-height: 1.2;
  color: var(--ombra);

  /* Letter-spacing adds a gap after the final letter, which drags
     centred text off to the left. This puts it back. */
  text-indent: 0.3em;
}

@media (max-width: 560px) {
  .logo img { height: 32px; }

  .wordmark {
    margin-top: 5px;
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }
}

/* ---- Underline that grows on hover ---- */
.quiet-link {
  position: relative;
  padding-bottom: 3px;
}

.quiet-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--blu);
  transition: width 400ms ease;
}

.quiet-link:hover::after,
.quiet-link:focus-visible::after { width: 100%; }

.quiet-link:active { opacity: 0.6; }

/* ---- Menu dropdown (no JavaScript) ---- */
.menu { position: relative; }

.menu summary { cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { color: var(--inchiostro); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 16px);
  min-width: 230px;
  padding: 10px 0;
  background: var(--calce);
  border: 1px solid var(--linea);
}

.menu-panel a {
  display: block;
  padding: 10px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: background 250ms ease, color 250ms ease;
}

.menu-panel a:hover {
  background: var(--pietra);
  color: var(--inchiostro);
}

/* ---- Language flag — placeholder for a future English version ---- */
.flag {
  display: block;
  width: 22px; height: 15px;
  border: 1px solid var(--linea);
  opacity: 0.8;
  transition: opacity 250ms ease;
}

.flag:hover { opacity: 1; }


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 90px var(--gutter) calc(60px + env(safe-area-inset-bottom, 0px));
  background: var(--calce);
  border-top: 1px solid var(--linea);
  text-align: center;
  color: var(--ombra);
  font-size: 0.95rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 30px;
  text-align: center;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin: 0 auto 10px;
}

.footer p { margin: 0 0 10px; }

.footer-cta {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--blu);
}

.footer-legal {
  margin-top: 46px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}


/* ==========================================================================
   HOME — the opening image and introduction
   ========================================================================== */

/* THE OPENING PHOTOGRAPH

   The whole picture, uncropped, sized so that it FITS THE SCREEN
   underneath the top bar — you should never have to scroll to see
   the bottom of it.

   That is the reason for the max-height below. A photograph set to
   full window width gets taller as the window gets wider, while the
   screen height stays the same, so on a wide monitor the bottom of
   it ends up below the fold. Capping the height instead means the
   picture is as large as it can be while still fitting, and on a
   wide, short window there is a little background either side.

   --topbar is how tall the menu above it is. If you change the logo
   size or the top bar's padding, change this to match.

   If you ever want it cropped to a full-width band instead, delete
   the max-height line and put height: 80svh and object-fit: cover
   on .hero img. */

:root {
  --topbar: 91px;
}

@media (max-width: 560px) {
  :root { --topbar: 74px; }
}

.hero {
  display: flex;
  justify-content: center;
  background: var(--calce);
  line-height: 0;
}

.hero img {
  max-width: 100%;
  max-height: calc(100svh - var(--topbar));
  width: auto;
  height: auto;
}

.intro {
  padding: clamp(44px, 5vw, 70px) 0;
  background: var(--calce);
}

.intro p {
  margin: 0;
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.95;
  text-align: center;
  text-wrap: pretty;
}


/* ==========================================================================
   DUO — image on one side, text on the other, alternating down the page

   Every second row swaps sides automatically. You do not need to do
   anything in the HTML — the CSS counts the rows.

   On a phone they always stack: image first, then text.
   ========================================================================== */

.duo {
  display: grid;
  grid-template-columns: 1fr;

  /* The space between one row and the next.
     Change this one number to open the page up or tighten it. */
  margin-bottom: clamp(56px, 9vw, 130px);
}

/* min-width: 0 lets this column stay inside its half of the page.
   Without it a wide photograph pushes the whole page sideways. */
.duo-media { grid-row: 1; min-width: 0; }

.duo-media .carousel,
.duo-media .carousel-track { min-width: 0; max-width: 100%; }

/* A single photograph, used only on the home page. The > means
   "directly inside", so this never touches carousel images. */
.duo-media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.duo-body {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 7vw, 76px) var(--gutter);
}

@media (min-width: 860px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    /* Top-aligned, not centred. When a "read more" is open the text
       column becomes much taller than the photograph, and centring
       left the photograph floating in the middle of all that space.
       Aligned to the top it stays put and the row reads properly
       whether the text is expanded or not. */
    align-items: start;
  }

  /* Odd rows: image left, text right. */
  .duo-media { grid-row: 1; grid-column: 1; }
  .duo-body  { grid-row: 1; grid-column: 2; }

  /* Even rows: the other way round. */
  .duo:nth-of-type(even) .duo-media { grid-column: 2; }
  .duo:nth-of-type(even) .duo-body  { grid-column: 1; }

  /* On the home page each card shows one photograph, cropped to a
     steady landscape shape so every row comes out the same height
     whatever the photograph's own proportions — otherwise a portrait
     shot makes a row twice as tall as the text beside it.

     This one number sets how tall the home page's rows are. It is
     matched to the height the carousels come out at on the inner
     pages, so the whole site scrolls at the same rhythm. */
  a.duo .duo-media > img {
    height: clamp(360px, 31vw, 470px);
    width: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .duo-body { padding: clamp(50px, 5vw, 86px); }
}

/* ---- The text column ----
   These are <h2> and <p> on the inner pages and plain spans inside the
   link on the home page, so each one is told to behave as a block. */
.duo-title {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: 0.13em;
  line-height: 1.15;
}

.duo-sub {
  display: block;
  margin: 14px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ombra);
}

/* Room size — real information, so it gets its own quiet line. */
.duo-size {
  display: block;
  margin: 10px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--ombra);
}

/* The reading measure. 62ch is about 560px here, which fills the
   text column on a laptop and still stops lines getting too long to
   follow on a wide monitor. It was 44ch, which left a visible gap
   down the right-hand side once a "read more" was open. */
.duo-text {
  display: block;
  margin: clamp(22px, 3vw, 34px) 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.duo-more {
  display: block;
  width: fit-content;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  color: var(--blu);
}

.duo-more::after {
  content: "";
  display: block;
  width: 34px; height: 1px;
  margin-top: 9px;
  background: currentColor;
  transition: width 600ms cubic-bezier(0.2, 0, 0.1, 1);
}

/* When the whole row is one link, hovering anywhere extends the rule
   and lifts the photograph very slightly. */
a.duo:hover .duo-more::after,
a.duo:focus-visible .duo-more::after { width: 110px; }

a.duo .duo-media { overflow: hidden; }

a.duo .duo-media img {
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(0.2, 0, 0.1, 1);
}

a.duo:hover .duo-media img,
a.duo:focus-visible .duo-media img { transform: scale(1.03); }

a.duo:active { opacity: 0.85; }

/* Marks text that still needs writing. Delete the class once filled in. */
.placeholder {
  color: var(--ombra);
  font-style: italic;
}


/* ==========================================================================
   PAGES — headings and introductions
   ========================================================================== */

.page-head {
  padding: clamp(40px, 4.5vw, 62px) 0 clamp(34px, 5vw, 60px);
  text-align: center;
}

.page-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0.18em;
  line-height: 1.15;
}

.page-intro {
  margin: clamp(28px, 5vw, 48px) auto 0;
  max-width: var(--column);
  padding-inline: var(--gutter);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.95;
  text-align: center;
  text-wrap: pretty;
}

/* A full-width image band. */
.band {
  height: clamp(280px, 46vw, 520px);
  overflow: hidden;
}

.band img { width: 100%; height: 100%; object-fit: cover; }


/* ==========================================================================
   CAROUSEL

   Every photograph in a carousel is given the SAME HEIGHT and its
   width is left to follow — so nothing is cropped and nothing is
   stretched. A portrait photograph comes out narrow, a landscape one
   wide, and they sit in a row you scroll sideways.

   The height is set in two places below: once for phones, once for
   wider screens. Those are the numbers to change if the pictures
   feel too big or too small.

   .carousel--wide is the full-width gallery on the Eventi page.
   ========================================================================== */

.carousel { position: relative; }

.carousel-track {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track img {
  flex: 0 0 auto;
  height: clamp(200px, 58vw, 420px);   /* phones */
  width: auto;
  max-width: none;          /* overrides the site-wide max-width: 100% */
  scroll-snap-align: start;
}

@media (min-width: 860px) {
  /* Sized so that a normal landscape photograph still fits inside
     its half of the page without being clipped. */
  .carousel-track img { height: min(31vw, 560px); }
}

/* ---- Arrows: centred on the height of the photograph, one at each
        side. The gap between them lets clicks through to the image. */
.carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding-inline: 14px;
  pointer-events: none;
}

.carousel-arrow {
  pointer-events: auto;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(250, 250, 247, 0.92);
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--inchiostro);
  cursor: pointer;
  transition: background 300ms ease, color 300ms ease, opacity 300ms ease;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--bianco);
  color: var(--blu);
}

.carousel-arrow:active:not(:disabled) { transform: translateY(1px); }

.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.carousel-arrow svg { width: 15px; height: 15px; }

.carousel.single .carousel-arrows { display: none; }

/* A row showing one photograph rather than a carousel. A portrait
   shot comes out narrower than its column — the images are sized by
   height so that mixed shapes line up — so centre it rather than
   leaving it stranded against one edge, and let it stand a little
   taller than the photographs in a carousel. */
.duo-media .carousel.single .carousel-track {
  justify-content: center;
}

@media (min-width: 860px) {
  /* Bounded by BOTH the column width and a height, so the picture
     keeps its own proportions either way: a landscape shot fills the
     column, a portrait one is limited by height and sits centred. */
  .duo-media .carousel.single img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(73vw, 1040px);  /* raise this to make a single lead photograph larger */
  }
}

/* ---- Full-width version, Eventi page ---- */
.carousel--wide .carousel-track {
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

.carousel--wide .carousel-track img {
  height: clamp(240px, 46vw, 600px);
}

.carousel--wide .carousel-arrows {
  padding-inline: calc(var(--gutter) + 14px);
}


/* ==========================================================================
   BOOKING
   ========================================================================== */

/* Where a booking engine widget goes once you have signed up for one. */
.engine-slot {
  max-width: 900px;
  margin: 0 auto clamp(50px, 8vw, 90px);
  padding-inline: var(--gutter);
}

.form { max-width: 640px; margin: 0 auto; }

.field { margin-bottom: 26px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--ombra);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--calce);
  border: 1px solid var(--linea);
  border-radius: 0;
  font-family: var(--testo);
  font-size: 1.05rem;
  color: var(--inchiostro);
  transition: border-color 300ms ease;
}

.field input:hover,
.field textarea:hover { border-color: var(--ombra); }

.field textarea { min-height: 150px; resize: vertical; }

.field-pair { display: grid; grid-template-columns: 1fr; gap: 0 20px; }

@media (min-width: 560px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
}

.submit {
  width: 100%;
  padding: 16px 30px;
  background: var(--inchiostro);
  border: 1px solid var(--inchiostro);
  color: var(--calce);
  font-family: var(--testo);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 400ms ease, color 400ms ease;
}

.submit:hover { background: transparent; color: var(--inchiostro); }
.submit:active { opacity: 0.75; }

.form-note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ombra);
  text-align: center;
}

/* ---- The two OTA cards ---- */
.booking {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--linea);
  border-block: 1px solid var(--linea);
}

@media (min-width: 760px) {
  .booking { grid-template-columns: 1fr 1fr; }
}

.booking-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 300px;
  padding: clamp(44px, 7vw, 76px) var(--gutter);
  background: var(--calce);
  text-align: center;
  transition: background 400ms ease;
}

.booking-card:hover { background: var(--bianco); }

.booking-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: 0.14em;
}

.booking-card p {
  margin: 0;
  max-width: 30ch;
  color: var(--ombra);
  font-size: 1rem;
}


/* ==========================================================================
   READ MORE
   An expanding block of text, used where your mother's notes say
   "READ MORE". It uses <details>, so it needs no JavaScript and the
   hidden text is still found by Google.
   ========================================================================== */

.readmore {
  margin-top: clamp(22px, 3vw, 34px);
}

.readmore summary {
  display: inline-block;
  width: fit-content;
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  color: var(--blu);
}

.readmore summary::-webkit-details-marker { display: none; }

/* The rule under it grows on hover, like "scopri" on the home page. */
.readmore summary::after {
  content: "";
  display: block;
  width: 34px; height: 1px;
  margin-top: 9px;
  background: currentColor;
  transition: width 600ms cubic-bezier(0.2, 0, 0.1, 1);
}

.readmore summary:hover::after,
.readmore summary:focus-visible::after { width: 110px; }

/* Swaps the label once it is open. Both strings live here, not in
   the HTML, so change the wording in these two lines. */
.readmore summary .closed { display: inline; }
.readmore summary .open { display: none; }
.readmore[open] summary .closed { display: none; }
.readmore[open] summary .open { display: inline; }

.readmore-body > p {
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.readmore[open] .readmore-body { animation: unfold 700ms ease; }

@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   PULL QUOTE
   The opening line of "Una casa privata", in your mother's voice.
   ========================================================================== */

.quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.9vw, 2rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.quote-mark {
  display: block;
  margin-bottom: 0.3em;
  font-size: 2.4em;
  line-height: 0.3;
  color: var(--blu);
  opacity: 0.45;
}

.signature {
  display: block;
  margin-top: clamp(26px, 4vw, 40px);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ombra);
}


/* ==========================================================================
   STACKED SECTIONS
   Used on "Un momento speciale", where your mother asked for the
   sections with text to appear one below the other, with the rest of
   the photographs scrolling sideways underneath.
   ========================================================================== */

.stack {
  max-width: 54em;
  margin: 0 auto clamp(56px, 9vw, 120px);
  padding-inline: var(--gutter);
}

.stack-title {
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.stack-text {
  margin: clamp(22px, 3vw, 32px) 0 0;
  max-width: 48ch;
  text-wrap: pretty;
}

.stack-text + .stack-text { margin-top: 1.1em; }

/* A caption above a full-width gallery. */
.gallery-label {
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding-inline: var(--gutter);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ombra);
}


/* ==========================================================================
   WORDMARK IN PLACE OF THE LOGO

   The logo.svg file has not arrived yet, so the name is set in type
   instead. Nothing here breaks when the logo does arrive — the rules
   above for .logo img are still in place and will simply take effect.
   ========================================================================== */

.logo .wordmark {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--inchiostro);
  margin: 0;
}

@media (max-width: 560px) {
  .logo .wordmark {
    font-size: 0.46rem;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }
}

/* Left in place in case you ever want type instead of the monogram
   on the opening panel. Not used at the moment. */
.curtain-mark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  line-height: 1.9;
  text-align: center;
  color: var(--inchiostro);
  opacity: 0;
  transform: translateY(8px);
  animation: curtain-in 1000ms cubic-bezier(0.2, 0, 0.1, 1) 150ms forwards;
}

.footer-mark {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: lowercase;
  color: var(--inchiostro);
}

/* A row whose text column has no heading — the opening quotation on
   "Una casa privata". Keeps the empty <h2> from leaving a gap. */
.duo-title:empty { display: none; }


/* ==========================================================================
   SERVICES ON REQUEST
   The list at the foot of the events page. Each item sits on its own
   line with a hairline above it, so the list reads as a short menu
   rather than as bullet points.
   ========================================================================== */

.services {
  margin: clamp(26px, 4vw, 40px) auto 0;
  padding: 0;
  list-style: none;
  max-width: 34em;
}

.services li {
  padding: 16px 0;
  text-align: center;
  border-top: 1px solid var(--linea);
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.06em;
}

.services li:last-child {
  border-bottom: 1px solid var(--linea);
}

/* A centred block of text: the services list that closes the events
   page, and the thank-you page after the form is sent. Centred like
   the headings at the top of a page, rather than left-aligned like a
   column of running text. */
.stack:last-child,
.stack--centred { text-align: center; }

.stack:last-child .stack-text,
.stack--centred .stack-text {
  margin-inline: auto;
  max-width: 54ch;
}

/* The link back, centred under the text. */
.stack--centred .duo-more { margin-inline: auto; }


/* The spam trap on the enquiry form. Hidden from people but still
   reachable by a robot, which is the point — anything that fills it
   in is discarded. Not display:none, which some robots detect. */
.gotcha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* The send button while the form has no address to post to. */
.submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.submit:disabled:hover {
  background: var(--inchiostro);
  color: var(--calce);
}


/* ==========================================================================
   DOMANDE FREQUENTI
   A definition list: question, then answer. Set as a list so that a
   search engine or an assistant can tell which text answers which
   question, rather than reading it as one block of prose.
   ========================================================================== */

.faq {
  margin: clamp(26px, 4vw, 40px) 0 0;
  text-align: left;
}

.faq dt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--linea);
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  letter-spacing: 0.04em;
}

.faq dt:first-child { margin-top: 0; }

.faq dd {
  margin: 10px 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ===========================================================================
   SCHERMI TOUCH — tap targets
   Apple asks for 44x44pt minimum on anything you tap with a thumb. The
   menu button, the flag and the carousel arrows were all under it. These
   rules grow the area that responds to a tap without changing how any of
   them look. They are not behind a media query: a slightly larger click
   area does no harm with a mouse, and this way it covers iPads and touch
   laptops too, which do not always report themselves as touch devices.
   =========================================================================== */

/* The menu button and the flag keep their size; an invisible 44px zone is
   centred on each. Measured at 375, 390 and 430px: the two zones clear
   each other by 3px, so neither steals the other's taps. */
.topbar summary,
.topbar-left .quiet-link,
.flag { position: relative; }

.topbar summary::before,
.topbar-left .quiet-link::before,
.flag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 44px);
  height: 44px;
}

/* The footer link gets real height instead of a hidden zone: an invisible
   one would have reached 9px into the copyright line below it. The padding
   also opens up spacing that was too tight. */
.footer-cta {
  display: inline-block;
  padding: 10px 8px;
  margin: 4px 0 12px;
}

/* Two pixels under the minimum. */
.carousel-arrow { width: 44px; height: 44px; }
