/* =========================================================================
   CENTRO E SPIAGGIA — "Su in paese, giù al lago"
   La pagina scende come le scalette del borgo: in alto il paese (cielo),
   in fondo il lago (footer). Ogni casa ha il colore della sua pietra.
   Mobile first: min-width 600 / 900 / 1100.
   ========================================================================= */

/* Font self-hosted (nessuna chiamata a Google Fonts) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

/* 1. TOKEN --------------------------------------------------------------- */
:root {
  color-scheme: light;
  --inchiostro: #0F2E34;
  --lago: #1B5A63;
  --lago-scuro: #123F47;
  --acqua: #4E8E8C;
  --cielo: #D7EBE8;
  --calce: #FBF8F1;
  --sole: #F4B63F;
  --sole-chiaro: #FCE7B4;
  --sabbia: #EADCC0;
  --ambra: #D9822B;       --ambra-chiaro: #F8DEC0;
  --ardesia: #53616E;     --ardesia-chiaro: #DCE2E7;
  --malachite: #23825C;   --malachite-chiaro: #CFEBDD;
  --rondine: #1F3A5F;     --rondine-chiaro: #D8E2F0;
  --testo-2: #40585C;
  --titoli: #123F47;      /* colore dei titoli (pannello → Aspetto) */
  --su-sole: #0F2E34;     /* testo sopra il giallo dei bottoni principali */
  --sole-hover: #F7C254;
  --riga: rgba(15, 46, 52, .16);
  --spuma: #CFE6E1;

  --display: "Bricolage Grotesque", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  --testo: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --t-sm: .92rem;
  --t-base: 1.06rem;
  --t-lg: clamp(1.12rem, 1rem + .5vw, 1.3rem);
  --t-xl: clamp(1.45rem, 1.15rem + 1.3vw, 2.2rem);
  --t-2xl: clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem);
  --t-h1: clamp(2.6rem, 1.5rem + 4.4vw, 5rem);

  --contenitore: 1180px;
  --gutter: 1.2rem;
  --sezione: 4.5rem;
  --tondo: 14px;
  --molla: cubic-bezier(.2, .8, .2, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: var(--acqua) var(--calce); scrollbar-gutter: stable; }
:root { --barra-h: calc(4.6rem + env(safe-area-inset-bottom, 0px)); } /* altezza della barra Prenota/Chiama sul telefono (0 da 900px) */
body {
  margin: 0; background: var(--calce); color: var(--inchiostro);
  font-family: var(--testo); font-size: var(--t-base); line-height: 1.6;
  padding-bottom: var(--barra-h);
}
::selection { background: var(--sole); color: var(--su-sole); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lago); text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--sole); }
a:hover { color: var(--lago-scuro); }
:focus-visible { outline: 3px solid var(--sole); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.05; text-wrap: balance; font-weight: 620; letter-spacing: -.025em; }
p { margin: 0; text-wrap: pretty; }
p + p, p + ul, ul + p { margin-top: .9em; }
ul { padding-left: 1.2em; margin: 0; }
li::marker { color: var(--sole); }
strong, b { font-weight: 700; }
.wrap { max-width: var(--contenitore); margin-inline: auto; padding-inline: var(--gutter); }
.sezione { padding-block: var(--sezione); }
.titolo { font-size: var(--t-2xl); color: var(--titoli); }
.titolo + p, .sottotitolo { margin-top: 1rem; max-width: 52ch; font-size: var(--t-lg); color: var(--testo-2); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--sole); color: var(--su-sole); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { left: 1rem; top: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .7rem 1.4rem; border-radius: 10px; border: 0;
  font: inherit; font-family: var(--bottoni, inherit); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--molla), background-color .2s, box-shadow .2s;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--sole { background: var(--sole); color: var(--su-sole); }
.btn--sole:hover { background: var(--sole-hover); color: var(--su-sole); }
.btn--lago { background: var(--lago); color: var(--calce); }
.btn--lago:hover { background: var(--lago-scuro); color: var(--calce); }
.btn--vuoto { background: transparent; color: var(--lago-scuro); box-shadow: inset 0 0 0 2px var(--lago); }
.btn--vuoto:hover { background: var(--cielo); color: var(--lago-scuro); }
.azioni { display: flex; flex-wrap: wrap; gap: .7rem; }

.ph { background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.55) 0 18%, transparent 19%), radial-gradient(circle at 75% 70%, rgba(255,255,255,.4) 0 22%, transparent 23%), var(--ph-fondo, var(--cielo)); min-height: 10rem; width: 100%; height: 100%; }

/* Colore per casa: --c (pietra) e --cc (chiaro) */
/* Colore delle unità (case, camere…): la classe è c-<colore scelto nella scheda> (UNIT_COLORS in layout.php).
   c-rondini resta come nome storico di c-rondine, per i CSS aggiuntivi scritti prima. */
.c-ambra { --c: var(--ambra); --cc: var(--ambra-chiaro); }
.c-ardesia { --c: var(--ardesia); --cc: var(--ardesia-chiaro); }
.c-malachite { --c: var(--malachite); --cc: var(--malachite-chiaro); }
.c-rondine, .c-rondini { --c: var(--rondine); --cc: var(--rondine-chiaro); }
.c-lago { --c: var(--lago); --cc: var(--cielo); }
.c-acqua { --c: var(--acqua); --cc: var(--cielo); }
.c-inchiostro { --c: var(--inchiostro); --cc: var(--cielo); }
.c-borgo { --c: var(--sole); --cc: var(--sole-chiaro); }

/* 3. HEADER -------------------------------------------------------------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(215, 235, 232, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__riga { display: flex; align-items: center; gap: .8rem; min-height: 4.2rem; }
.marchio { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--titoli); margin-right: auto; }
.marchio svg { width: 2.4rem; height: 2.4rem; flex: none; }
.marchio span { font-family: var(--display); font-weight: 780; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1; }
.header__prenota { display: none; }
/* Barra avvisi (sopra l'header, scorre via con la pagina) */
.annuncio { background: var(--sole); color: var(--su-sole); font-size: .92rem; line-height: 1.4; }
.annuncio--lago { background: var(--lago); color: var(--calce); }
.annuncio--notte { background: var(--inchiostro); color: var(--calce); }
.senza-annuncio .annuncio { display: none; }
.annuncio__riga { display: flex; align-items: center; gap: .8rem; min-height: 2.7rem; padding-block: .45rem; }
.annuncio p { margin: 0 auto; text-align: center; font-weight: 560; }
.annuncio a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.annuncio .annuncio__link { display: inline-flex; align-items: center; gap: .2rem; font-weight: 750; white-space: nowrap; text-decoration: none; border-bottom: 2px solid currentColor; }
.annuncio__link svg { width: .85rem; height: .85rem; }
.annuncio__chiudi { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.annuncio__chiudi:hover { background: rgba(255, 255, 255, .25); }
.annuncio__chiudi svg { width: .95rem; height: .95rem; }

/* Etichetta promozionale delle case */
.etichetta { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 750; letter-spacing: .02em; line-height: 1.2; padding: .3rem .55rem; border-radius: 6px; background: var(--sole); color: var(--su-sole); }
.casa__etichetta { position: absolute; left: .8rem; top: .8rem; z-index: 1; box-shadow: 0 6px 16px -8px rgba(15, 46, 52, .6); }
.casa-tag .etichetta { align-self: center; }

/* Menu desktop */
.navtop { display: none; }
.navtop__link, .navtop__case > summary {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px;
  color: var(--inchiostro); font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; position: relative;
  transition: background-color .2s, color .2s; white-space: nowrap; /* una voce = una riga: se non stanno tutte, si passa al pulsante Menu */
}
.navtop__link:hover, .navtop__case > summary:hover, .navtop__case[open] > summary { background: rgba(255, 255, 255, .7); color: var(--lago-scuro); }
.navtop__link[aria-current="page"], .navtop__case > summary.attivo { color: var(--lago-scuro); }
.navtop__link[aria-current="page"]::after, .navtop__case > summary.attivo::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--sole);
}
.navtop__case > summary { list-style: none; }
.navtop__case > summary::-webkit-details-marker, .lingua > summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.navtop__case > summary svg, .lingua > summary svg { width: .95rem; height: .95rem; transition: transform .3s var(--ease); }
.navtop__case[open] > summary svg, .lingua[open] > summary svg { transform: rotate(180deg); }
.navtop__case { position: relative; }

.mega, .lingua__lista {
  position: absolute; top: calc(100% + .75rem); z-index: 5; background: var(--calce); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--riga), 0 28px 60px -24px rgba(15, 46, 52, .5);
  animation: cala .28s var(--ease);
}
@keyframes cala { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega { left: -.4rem; width: 43rem; padding: .7rem; }
.mega__case { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
.mega__casa { display: flex; gap: .9rem; align-items: center; padding: .6rem; border-radius: 12px; text-decoration: none; color: var(--inchiostro); transition: background-color .2s; }
.mega__casa:hover, .mega__casa[aria-current="page"] { background: var(--cc, var(--cielo)); }
.mega__foto { position: relative; flex: none; width: 5.6rem; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cc, var(--cielo)); }
.mega__foto img { width: 100%; height: 100%; object-fit: cover; }
.mega__foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c, var(--lago)); }
.mega__testo { display: grid; gap: .1rem; min-width: 0; justify-items: start; }
.mega__testo small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--testo-2)); }
.mega__testo b { font-family: var(--display); font-weight: 620; font-size: 1.2rem; line-height: 1.15; color: var(--titoli); }
.mega__testo span { font-size: .85rem; color: var(--testo-2); line-height: 1.35; }
.mega__testo .etichetta { margin-top: .3rem; }
.mega__fondo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; padding: .8rem .8rem .3rem; border-top: 1px solid var(--riga); font-size: .92rem; }
.mega__fondo a { display: inline-flex; align-items: center; gap: .4rem; color: var(--lago-scuro); font-weight: 650; text-decoration: none; }
.mega__fondo a:hover { color: var(--lago); }
.mega__fondo svg { width: 1rem; height: 1rem; }
.mega__tutte svg { transition: transform .2s; }
.mega__tutte:hover svg { transform: translateX(3px); }

.lingua { display: none; position: relative; }
.lingua > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; height: 2.6rem; padding: 0 .65rem;
  border-radius: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--lago-scuro); box-shadow: inset 0 0 0 1.5px var(--riga);
}
.lingua > summary:hover, .lingua[open] > summary { background: rgba(255, 255, 255, .7); }
.lingua__lista { right: 0; list-style: none; margin: 0; padding: .4rem; min-width: 11rem; border-radius: 14px; }
.lingua__lista a, .lingua__lista span { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 9px; color: var(--inchiostro); text-decoration: none; font-weight: 560; }
.lingua__lista a:hover { background: var(--cielo); }
.lingua__lista span { color: var(--lago-scuro); background: var(--cielo); }
.lingua__lista b { font-size: .75rem; letter-spacing: .06em; width: 1.6rem; color: var(--acqua); }

/* Menu telefono e tablet: pannello a tutta altezza sotto l'header */
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; height: 2.9rem; padding: 0 .95rem 0 .8rem;
  border-radius: 12px; background: var(--lago-scuro); color: var(--calce); font-weight: 650; font-size: .95rem;
  transition: background-color .2s;
}
.menu summary:hover { background: var(--lago); }
.menu__ico { position: relative; width: 1.2rem; height: 1.2rem; }
.menu__ico svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s, transform .3s var(--ease); }
.menu__ico svg + svg { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu[open] .menu__ico svg:first-child { opacity: 0; transform: rotate(90deg) scale(.6); }
.menu[open] .menu__ico svg + svg { opacity: 1; transform: none; }
.menu__pannello {
  position: fixed; left: 0; right: 0; top: var(--menu-top, 4.2rem); bottom: 0; z-index: 19;
  background: var(--calce); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--riga);
  animation: scende .35s var(--ease);
}
@keyframes scende { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.pagina-ferma body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.menu-aperto .header { position: fixed; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cielo); }
.menu-aperto .barra { display: none; }
.menu__dentro { max-width: var(--contenitore); margin-inline: auto; padding: 1.2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: 1.8rem; }
.menu__titolo { margin: 0 0 .7rem; font-family: var(--testo); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--acqua); }
.menu__case { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.menu__casa { display: grid; gap: .1rem; text-decoration: none; color: var(--inchiostro); }
.menu__foto { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: .45rem; background: var(--cc, var(--cielo)); box-shadow: inset 0 -4px 0 var(--c, var(--lago)); }
.menu__foto img { width: 100%; height: 100%; object-fit: cover; }
.menu__foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c, var(--lago)); }
.menu__foto .etichetta { position: absolute; left: .45rem; top: .45rem; font-size: .66rem; }
.menu__casa b { font-family: var(--display); font-weight: 620; font-size: 1.12rem; line-height: 1.15; color: var(--titoli); }
.menu__casa span:last-child { font-size: .82rem; color: var(--testo-2); }
.menu__casa[aria-current="page"] b { text-decoration: underline; text-decoration-color: var(--c, var(--sole)); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.menu__tutte { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 650; color: var(--lago-scuro); text-decoration: none; }
.menu__tutte svg { width: 1rem; height: 1rem; }
.menu__link { display: grid; }
.menu__link a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--riga);
  font-family: var(--display); font-weight: 560; font-size: 1.3rem; letter-spacing: -.01em; color: var(--inchiostro); text-decoration: none;
}
.menu__link a:first-child { border-top: 1px solid var(--riga); }
.menu__link a svg { width: 1.05rem; height: 1.05rem; color: var(--acqua); transition: transform .2s; }
.menu__link a:hover svg { transform: translateX(3px); }
.menu__link a[aria-current="page"] { color: var(--lago); }
.menu__link a[aria-current="page"]::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sole); margin-right: -.4rem; order: -1; }
.menu__link a[aria-current="page"] { justify-content: flex-start; }
.menu__link a[aria-current="page"] svg { margin-left: auto; }
.menu__contatti { display: grid; gap: .6rem; }
.menu__contatti a { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--riga); color: var(--inchiostro); text-decoration: none; font-weight: 650; overflow-wrap: anywhere; }
.menu__contatti svg { width: 1.35rem; height: 1.35rem; color: var(--lago); flex: none; }
.menu__contatti span { display: grid; min-width: 0; }
.menu__contatti small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); }
.lingue { display: flex; gap: .4rem; margin-top: 1rem; }
.lingue a, .lingue span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; font-size: .8rem; font-weight: 700; text-decoration: none; text-transform: uppercase; color: var(--lago-scuro); box-shadow: inset 0 0 0 1.5px var(--riga); }
.lingue span { background: var(--lago); color: var(--calce); box-shadow: none; }
@media (min-width: 600px) {
  .menu__dentro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 3rem; padding-top: 2rem; }
  .menu__gruppo--contatti { grid-column: 2; }
  .menu__gruppo:first-child { grid-row: span 2; }
}
@media (min-width: 1100px) {
  .navtop { display: flex; align-items: center; gap: .1rem; margin-right: auto; margin-left: 1rem; }
  .lingua { display: block; }
  .menu { display: none; }
  .marchio { margin-right: 0; }
  /* Pannello → Aspetto → "Menu su computer: a hamburger": solo il pulsante, come sul telefono */
  .menu-pc-hamburger .navtop { display: none; }
  .menu-pc-hamburger .menu { display: block; }
  .menu-pc-hamburger .marchio { margin-right: auto; }
  .menu-pc-hamburger .menu__dentro { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 4rem; padding-top: 2.6rem; }
  .menu-pc-hamburger .menu__case { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Cassetto, editoriale, diviso e centrato: al posto della tenda (sul telefono resta la tenda) */
  .menu-pc-cassetto .menu__pannello, .menu-pc-editoriale .menu__pannello, .menu-pc-diviso .menu__pannello, .menu-pc-centrato .menu__pannello { display: none; }
  .menu-pc-cassetto .mpc, .menu-pc-editoriale .mpc, .menu-pc-diviso .mpc, .menu-pc-centrato .mpc { display: flex; }
  /* Menu "aperto" che non sta in una riga (schermo stretto, voci lunghe, più lingue): il pulsante Menu come sul tablet.
     La classe la mette site.js misurando l'intestazione. */
  .nav-stretta .navtop, .nav-stretta .lingua { display: none; }
  .nav-stretta .menu { display: block; }
  .nav-stretta .marchio { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .lingua__lista, .menu__pannello { animation: none; }
}

/* Popup */
.popup { border: 0; padding: 0; background: transparent; color: var(--inchiostro); max-width: none; max-height: none; overflow: visible; }
.popup__scheda { position: relative; background: var(--calce); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--riga), 0 30px 70px -24px rgba(15, 46, 52, .6); }
.popup--angolo { position: fixed; inset: auto .6rem calc(5.2rem + env(safe-area-inset-bottom, 0px)) .6rem; margin: 0 0 0 auto; width: auto; max-width: 25rem; z-index: 80; animation: sale .45s var(--ease); }
.popup--angolo .popup__foto { aspect-ratio: 16 / 7; }
.popup--centro { width: min(30rem, calc(100vw - 1.6rem)); animation: sale .45s var(--ease); }
.popup--centro::backdrop { background: rgba(15, 46, 52, .55); }
.popup--centro .popup__foto { aspect-ratio: 16 / 9; }
@keyframes sale { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.popup__foto { background: var(--cielo); }
.popup__foto img { width: 100%; height: 100%; object-fit: cover; }
.popup__corpo { padding: 1.3rem 1.4rem 1.4rem; display: grid; gap: .7rem; justify-items: start; }
.popup__corpo h2 { margin: 0; padding-right: 2rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.15; color: var(--titoli); }
.con-foto .popup__corpo h2 { padding-right: 0; }
.popup__testo { font-size: .96rem; color: var(--testo-2); }
.popup__testo p, .popup__testo ul { margin: 0 0 .5rem; }
.popup__testo > :last-child { margin-bottom: 0; }
.popup__codice { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .55rem .55rem .9rem; border-radius: 12px; border: 1.5px dashed var(--acqua); background: #fff; }
.popup__codice > span { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--testo-2); }
.popup__codice b { font-family: var(--display); font-size: 1.2rem; font-weight: 650; letter-spacing: .06em; color: var(--lago-scuro); margin-right: auto; user-select: all; }
.popup__copia { display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 9px; padding: .5rem .75rem; background: var(--cielo); color: var(--lago-scuro); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.popup__copia svg { width: 1rem; height: 1rem; }
.popup__copia.ok { background: var(--malachite-chiaro); color: var(--malachite); }
.popup__vai { margin-top: .2rem; }
.popup__chiudi { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: rgba(251, 248, 241, .92); color: var(--lago-scuro); cursor: pointer; box-shadow: 0 4px 12px -6px rgba(15, 46, 52, .5); }
.popup__chiudi svg { width: 1rem; height: 1rem; }
@media (min-width: 900px) { .popup--angolo { inset: auto 1.5rem 1.5rem auto; width: 25rem; } }
@media (prefers-reduced-motion: reduce) { .popup--angolo, .popup--centro { animation: none; } }
@media print { .annuncio, .popup { display: none !important; } }

/* 4. HERO ---------------------------------------------------------------- */
.hero { background: var(--cielo); padding-top: 1.6rem; overflow: hidden; }
.hero__griglia { display: grid; gap: 1.6rem; }
.hero__testo { display: grid; gap: 1.15rem; align-content: start; }
.h1 { display: grid; gap: .7rem; }
.h1__nome { display: block; font-size: var(--t-h1); color: var(--titoli); line-height: .92; overflow-wrap: break-word; }
.h1__nome em { font-style: normal; font-weight: 400; color: var(--acqua); margin-inline: .02em; }
/* H1 a due righe: riga sopra (facoltativa) + titolo in <strong>. Il <br> c'è nell'HTML (per Google e le AI) ma non
   aggiunge spazio; il <strong> tiene il peso del titolo com'era. */
h1 > strong { font-weight: inherit; }
.h1__forte { display: block; }
.h1__sopra, .h1__sotto { display: block; margin-bottom: .45rem; font-family: var(--testo); font-size: clamp(1rem, .9rem + .55vw, 1.4rem); font-weight: 600; line-height: 1.25; letter-spacing: .01em; color: inherit; }
.h1__sotto { margin: .45rem 0 0; }
.h1__sopra + br, h1 > strong + br { display: none; }
.h1__qualifica { display: block; font-family: var(--testo); font-size: var(--t-lg); font-weight: 600; letter-spacing: 0; line-height: 1.35; color: var(--inchiostro); max-width: 34ch; }
.hero__slogan { font-family: var(--display); font-size: var(--t-xl); font-weight: 500; line-height: 1.1; color: var(--lago); }
.hero__slogan strong, .hero__slogan b { font-weight: 650; color: var(--lago-scuro); background: linear-gradient(transparent 70%, var(--sole-chiaro) 70%); padding-inline: .04em; }
.hero__tel { font-size: var(--t-sm); color: var(--testo-2); }
.hero__tel a { color: var(--inchiostro); font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.scena { margin-inline: calc(var(--gutter) * -1); }
.scena svg { display: block; width: 100%; height: auto; }
.scena text { font-family: var(--display); font-weight: 750; }

/* hero delle pagine interne: testo + foto con cornice arrotondata */
.hero--pagina { padding-bottom: 3rem; }
.hero--pagina .h1__nome { font-size: clamp(2.4rem, 1.5rem + 4.4vw, 5rem); color: var(--c, var(--titoli)); }
.briciola { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .35rem .9rem; border-radius: 999px; background: var(--calce); color: var(--lago-scuro); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.briciola:hover { background: #fff; color: var(--lago-scuro); }
.hero__foto { position: relative; border-radius: var(--tondo); overflow: hidden; box-shadow: 0 24px 44px -28px rgba(15, 46, 52, .55); aspect-ratio: 4 / 3; background: var(--cc, var(--calce)); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.hero__foto .segno { position: absolute; top: .9rem; left: .9rem; z-index: 2; }
.casa-tag { display: flex; flex-wrap: wrap; gap: .5rem; }
.casa-tag span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--calce); font-weight: 600; font-size: var(--t-sm); }
.casa-tag span:first-child { background: var(--c, var(--lago)); color: #fff; }

/* 5. IN BREVE ------------------------------------------------------------ */
.breve { background: var(--lago-scuro); color: var(--calce); }
.breve__lista { list-style: none; margin: 0 auto; padding-block: 1.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; }
.breve li { display: grid; gap: .1rem; align-content: start; }
.breve b { font-family: var(--display); font-weight: 560; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; color: var(--calce); }
.breve span { font-size: var(--t-sm); line-height: 1.35; color: var(--spuma); }
.breve li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 6. LE CASE ------------------------------------------------------------- */
.case { background: var(--calce); }
.case__lista { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.casa {
  --c: var(--acqua); --cc: var(--cielo);
  position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--tondo); overflow: hidden;
  box-shadow: 0 0 0 1px var(--riga), 0 12px 28px -22px rgba(15, 46, 52, .5);
  transition: transform .4s var(--molla), box-shadow .3s;
}
.casa:hover, .casa:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--c), 0 22px 40px -24px rgba(15, 46, 52, .55); }
.casa:nth-child(4n+1) { --giro: -1.2deg; }
.casa:nth-child(4n+2) { --giro: .9deg; }
.casa:nth-child(4n+3) { --giro: -.7deg; }
.casa:nth-child(4n+4) { --giro: 1.1deg; }
.casa__foto { aspect-ratio: 4 / 3; background: var(--cc); overflow: hidden; }
.casa__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.casa:hover .casa__foto img { transform: scale(1.04); }
.casa__corpo { display: grid; gap: .5rem; align-content: start; padding: 1.2rem 1.3rem 1.4rem; }
.segno { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 2px var(--c, var(--lago)); }
.segno svg { width: 2rem; height: 2rem; }
.casa .segno { position: absolute; top: .8rem; left: .8rem; z-index: 2; }
.casa h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); color: var(--c); }
.casa h3 a { color: inherit; text-decoration: none; }
.casa h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.casa__tipo { font-weight: 600; color: var(--inchiostro); }
.casa__via { font-size: var(--t-sm); color: var(--testo-2); }
.casa__fondo { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .5rem; flex-wrap: wrap; }
.casa__voto { font-size: var(--t-sm); color: var(--testo-2); font-variant-numeric: tabular-nums; }
.casa__voto b { font-family: var(--display); font-size: 1.25rem; color: var(--inchiostro); }
.casa__prenota {
  position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 2.6rem; padding: .4rem 1rem; border-radius: 999px;
  background: var(--cc); color: var(--inchiostro); font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.casa__prenota:hover { background: var(--c); color: #fff; }

/* 7. SU E GIÙ ------------------------------------------------------------ */
.sugiu { background: #F3EEE3; position: relative; }
.sugiu .titolo { color: var(--inchiostro); }
.sugiu__testa p { color: var(--inchiostro); }
.sugiu__coppia { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.tappa { background: var(--calce); border-radius: var(--tondo); padding: 1.4rem 1.4rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.tappa__freccia { font-family: var(--display); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lago); display: flex; align-items: center; gap: .4rem; }
.tappa__freccia svg { width: 1.1rem; height: 1.1rem; }
.tappa h3, .tappa__t { font-size: var(--t-xl); color: var(--titoli); }
.tappa p { color: var(--testo-2); }
.vicino { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; }
.vicino li { background: rgba(251, 248, 241, .6); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: var(--t-sm); }
.vicino li span { font-weight: 400; color: var(--testo-2); }
.sugiu__link { margin-top: 1.6rem; }
.sugiu__link a { color: var(--inchiostro); font-weight: 700; text-decoration-color: var(--lago); }

/* 8. GALLERIA ------------------------------------------------------------ */
.galleria { background: var(--calce); }
.galleria__testa { display: grid; gap: 1.2rem; }
.filtri { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .4rem; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filtri::-webkit-scrollbar { display: none; }
.filtro {
  --c: var(--acqua); flex: none; min-height: 2.6rem; padding: .4rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--inchiostro); background: #fff; box-shadow: inset 0 0 0 2px var(--riga);
  display: inline-flex; align-items: center; gap: .45rem; transition: background-color .2s, box-shadow .2s, transform .35s var(--molla);
}
.filtro::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--c); }
.filtro:hover { transform: translateY(-2px); }
.filtro[aria-pressed="true"] { background: var(--lago-scuro); color: var(--calce); box-shadow: none; }
.mosaico { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9.5rem; grid-auto-flow: dense; gap: .6rem; }
.foto { border-radius: 16px; overflow: hidden; background: var(--cc, var(--cielo)); transition: opacity .3s, transform .4s var(--molla); }
.foto--grande { grid-column: span 2; grid-row: span 2; }
.foto--larga { grid-column: span 2; }
.foto--alta { grid-row: span 2; }
.foto[hidden] { display: none; }
.foto__btn { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; border-radius: 16px; }
.foto__btn:focus-visible { outline: 3px solid var(--sole); outline-offset: 3px; }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.foto__btn:hover img { transform: scale(1.04); }
.galleria__altro { margin-top: 1.6rem; }

/* Foto ingrandita. Altezze in svh (viewport "piccola", stabile): su iPhone, mentre la barra di Safari entra ed esce,
   la foto non viene ricalcolata e non può sparire. Le misure non dipendono da percentuali di altezze indefinite. */
.lightbox { width: min(64rem, 100vw - 2rem); max-height: calc(100vh - 2rem); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: var(--tondo); background: var(--lago-scuro); color: var(--calce); overflow: hidden; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(15, 46, 52, .82); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; grid-template-rows: auto auto; animation: apri .45s var(--ease); }
@keyframes apri { from { transform: scale(.96); opacity: 0; } }
html.lb-aperto { overflow: hidden; scrollbar-gutter: stable; } /* la pagina sotto non scorre mentre la foto è aperta */
.lightbox__foto { display: grid; place-items: center; min-height: 12rem; background: #0b2328; }
.lightbox__foto img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100svh - 8rem); object-fit: contain; }
.lightbox__dida { padding: .9rem 4.5rem 1rem 1.2rem; font-family: var(--display); font-weight: 650; font-size: 1.05rem; }
.lb { position: absolute; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; cursor: pointer; background: var(--calce); color: var(--lago-scuro); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5); transition: transform .35s var(--molla); }
.lb:hover { transform: scale(1.08); }
.lb svg { width: 1.2rem; height: 1.2rem; }
.lb--chiudi { top: .8rem; right: .8rem; background: var(--sole); color: var(--su-sole); }
.lb--prec { left: .8rem; top: calc(50% - 2.5rem); }
.lb--succ { right: .8rem; top: calc(50% - 2.5rem); }

/* 9. IDEE ---------------------------------------------------------------- */
.idee { background: var(--cielo); }
.idee__lista { display: grid; gap: 1rem; margin-top: 2.2rem; }
.idea {
  display: grid; grid-template-columns: 5.5rem 1fr 2.6rem; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--tondo);
  background: var(--calce); color: var(--inchiostro); text-decoration: none; transition: transform .4s var(--molla), box-shadow .2s;
}
.idea:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 14px 30px -18px rgba(15, 46, 52, .5); color: var(--inchiostro); }
.idea__disegno { border-radius: 14px; overflow: hidden; background: var(--sole-chiaro); aspect-ratio: 3 / 2; display: block; }
.idea__disegno svg, .idea__disegno img { width: 100%; height: 100%; display: block; object-fit: cover; }
.idea--lago .idea__disegno { background: #BFE0DC; }
.idea--mappa .idea__disegno { background: var(--malachite-chiaro); }
.idea__testo { display: grid; gap: .2rem; }
.idea__testo b { font-family: var(--display); font-size: 1.3rem; font-weight: 750; line-height: 1.15; color: var(--titoli); }
.idea__testo span { font-size: var(--t-sm); color: var(--testo-2); line-height: 1.4; }
.idea__vai { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sole); color: var(--su-sole); }
.idea__vai svg { width: 1.1rem; height: 1.1rem; }

/* 10. OSPITI ------------------------------------------------------------- */
.ospiti { background: var(--calce); }
.fumetti { display: grid; gap: 2rem; margin-top: 2.4rem; }
.fumetto { margin: 0; display: grid; gap: .9rem; }
.fumetto blockquote { margin: 0; position: relative; background: var(--cielo); border-radius: var(--tondo) var(--tondo) var(--tondo) 4px; padding: 1.4rem 1.5rem; }
.fumetto blockquote::after { content: ""; position: absolute; left: 0; bottom: -14px; width: 22px; height: 16px; background: var(--cielo); clip-path: polygon(0 0, 100% 0, 0 100%); }
.fumetto:nth-child(even) blockquote, .fumetto:nth-child(even) blockquote::after { background: var(--sole-chiaro); }
.fumetto blockquote p { font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem); font-weight: 520; line-height: 1.3; color: var(--titoli); }
.fumetto figcaption { display: flex; align-items: center; gap: .6rem; padding-left: .3rem; margin-top: .6rem; font-size: var(--t-sm); color: var(--testo-2); }
.fumetto figcaption b { color: var(--inchiostro); }
.fumetto figcaption i { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--lago); color: var(--calce); font-family: var(--display); font-weight: 750; font-size: .95rem; flex: none; }

/* 11. DOMANDE ------------------------------------------------------------ */
.domande { background: var(--cielo); }
.faq { margin-top: 2rem; display: grid; gap: .7rem; }
.faq details { background: var(--calce); border-radius: 18px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 0 0 2px var(--lago); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 2rem; gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; font-family: var(--display); font-weight: 680; font-size: var(--t-lg); line-height: 1.3; color: var(--titoli);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sole); color: var(--su-sole); font-weight: 800; font-size: 1.3rem; line-height: 1; transition: transform .45s var(--molla); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 1.2rem 1.3rem; color: var(--testo-2); max-width: 64ch; }

/* 12. CONTENUTI DELLE PAGINE --------------------------------------------- */
.contenuto { background: var(--calce); }
.intro { font-size: var(--t-lg); color: var(--testo-2); max-width: 62ch; }
.intro + .schede, .intro + .prosa { margin-top: 2rem; }
.schede { display: grid; gap: 1.2rem; }
.scheda { background: #fff; border-radius: var(--tondo); padding: 1.5rem 1.5rem 1.6rem; box-shadow: 0 0 0 2px var(--riga); display: grid; gap: .7rem; align-content: start; transition: box-shadow .2s; }
.scheda:hover { box-shadow: 0 0 0 2px var(--lago), 0 14px 30px -20px rgba(15, 46, 52, .5); }
.scheda > :is(h2, h3, h4) { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); color: var(--titoli); }
.scheda p, .scheda li { color: var(--testo-2); }
.scheda .vai { justify-self: start; margin-top: .3rem; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; background: var(--sole-chiaro); color: var(--inchiostro); font-weight: 700; font-size: var(--t-sm); text-decoration: none; transition: background-color .2s; }
.scheda .vai:hover { background: var(--sole); color: var(--su-sole); }
.prosa { max-width: 68ch; display: grid; gap: 2rem; }
.prosa h2 { font-size: var(--t-xl); color: var(--c, var(--titoli)); margin-bottom: .6rem; }
.pillole { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.pillole li { padding: .5rem 1rem; border-radius: 999px; background: var(--cc, var(--cielo)); font-weight: 600; font-size: var(--t-sm); color: var(--inchiostro); }
.blocco-casa { display: grid; gap: 2.5rem; }
.blocco-casa h2 { font-size: var(--t-xl); color: var(--c, var(--titoli)); }
.extra { background: var(--cc, var(--cielo)); border-radius: var(--tondo); padding: 1.6rem 1.5rem; }
.extra h2 { color: var(--inchiostro); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.extra p { margin-top: .5rem; color: var(--testo-2); }
.extra .pillole li { background: var(--calce); }
.codici { font-size: var(--t-sm); color: var(--testo-2); }

/* 13. CONTATTI ----------------------------------------------------------- */
.contatti { background: var(--cielo); }
.contatti.tono--scuro .orari { color: var(--t-tenue); }
.contatti__griglia { display: grid; gap: 2rem; }
.contatti__info p { font-size: var(--t-lg); }
.contatti__info .tel { font-family: var(--display); font-weight: 750; font-size: var(--t-xl); color: var(--titoli); text-decoration: none; display: inline-block; margin-top: .6rem; }
.contatti__info .orari { margin-top: 1.2rem; font-size: var(--t-sm); color: var(--testo-2); }
.modulo { background: var(--calce); border-radius: var(--tondo); padding: 1.6rem 1.4rem; display: grid; gap: .3rem; }
.modulo label { font-weight: 700; font-size: var(--t-sm); color: var(--lago-scuro); margin-top: .5rem; }
.modulo input[type=text], .modulo input[type=email], .modulo textarea { width: 100%; padding: .85rem 1rem; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--riga); font: inherit; color: var(--inchiostro); transition: box-shadow .2s; }
.modulo input:focus, .modulo textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lago); }
.modulo textarea { min-height: 8rem; resize: vertical; }
.modulo .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; color: var(--testo-2); }
.modulo .check input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; accent-color: var(--lago); flex: none; }
.modulo .btn { margin-top: .8rem; justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 14. FOOTER: il lago ---------------------------------------------------- */
.footer { background: var(--lago); color: var(--calce); position: relative; }
.onda { display: block; width: 100%; height: 46px; background: var(--onda-sopra, var(--cielo)); }
.onda path { fill: var(--lago); }
.footer a { color: var(--calce); text-decoration-color: var(--sole); }
.footer a:hover { color: var(--sole-chiaro); }
.footer__griglia { display: grid; gap: 2.2rem; padding-block: 3.5rem 3rem; }
.footer h2 { font-size: .8rem; font-family: var(--testo); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sole-chiaro); margin-bottom: .9rem; }
.footer__contatti p { font-size: var(--t-lg); line-height: 1.55; }
.footer__contatti b { font-variant-numeric: tabular-nums; }
.footer__case { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; font-size: var(--t-sm); line-height: 1.5; }
.footer__case b { font-family: var(--display); font-size: 1.05rem; }
.footer__case span { display: block; color: var(--spuma); font-variant-numeric: tabular-nums; }
.footer__link { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__sabbia { background: var(--lago-scuro); color: var(--spuma); font-size: .8rem; }
.footer__sabbia .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding-block: 1.1rem; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--calce); text-decoration: underline; text-decoration-color: var(--sole); text-underline-offset: .2em; cursor: pointer; }

/* 15. BARRA MOBILE ------------------------------------------------------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: .55rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--barra-bg, rgba(251, 248, 241, .96)); box-shadow: 0 -10px 30px -18px rgba(15, 46, 52, .55);
}
/* Pulsanti e larghezze scelti nel pannello (Barra sul telefono) */
.barra--n1 { grid-template-columns: 1fr; }
.barra--n3.barra--primo { grid-template-columns: 1.4fr 1fr 1fr; }
.barra--n2.barra--uguali { grid-template-columns: 1fr 1fr; }
.barra--n3.barra--uguali { grid-template-columns: 1fr 1fr 1fr; }
.barra .btn { min-height: 3rem; padding-inline: .8rem; min-width: 0; }
.barra--n3 .btn { padding-inline: .5rem; font-size: .92rem; gap: .35rem; }
.barra__btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.barra__btn--sole { background: var(--sole); color: var(--su-sole); }
.barra__btn--chiaro { background: var(--sole-chiaro); color: var(--inchiostro); }
.barra__btn--lago { background: var(--lago); color: var(--calce); }
.barra__btn--scuro { background: var(--inchiostro); color: var(--calce); }
.barra__btn--vuoto { background: transparent; color: var(--lago-scuro); box-shadow: inset 0 0 0 2px var(--lago); }
.barra__btn--link { background: none; color: var(--lago); text-decoration: underline; text-decoration-color: var(--sole); text-underline-offset: .2em; }
.barra__btn--custom { background: var(--b); color: var(--b-t); }
.barra--scura .barra__btn--vuoto { color: var(--calce); box-shadow: inset 0 0 0 2px var(--calce); }
.barra--scura .barra__btn--link { color: var(--sole-chiaro); }
/* Barra spenta, o nascosta in questa pagina: niente spazio riservato in fondo */
html.senza-barra { --barra-h: 0px; }

/* 16. BANNER COOKIE ------------------------------------------------------ */
.consenso { position: fixed; z-index: 90; left: .6rem; right: .6rem; bottom: .6rem; max-width: 30rem; margin-left: auto; padding: 1.4rem 1.4rem 1.2rem; background: var(--calce); border-radius: var(--tondo); box-shadow: 0 0 0 2px var(--lago), 0 24px 50px -16px rgba(15, 46, 52, .55); max-height: calc(100vh - 1.2rem); overflow: auto; }
.consenso[hidden] { display: none; }
.consenso h2 { font-size: 1.25rem; margin: 0 2rem .5rem 0; color: var(--titoli); }
.consenso p { font-size: .92rem; color: var(--testo-2); }
.consenso .scelte { display: none; margin: .8rem 0; }
.consenso.aperto .scelte { display: block; }
.consenso .scelte label { display: flex; gap: .6rem; align-items: center; margin: .45rem 0; font-size: .92rem; font-weight: 600; }
.consenso .scelte input { accent-color: var(--lago); width: 1.1rem; height: 1.1rem; }
.consenso .chiudi { position: absolute; top: .8rem; right: .8rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--cielo); color: var(--lago-scuro); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.consenso .azioni { margin-top: 1rem; gap: .5rem; display: grid; grid-template-columns: 1fr 1fr; }
/* Rifiuta e Accetta affiancati e della stessa misura; Personalizza sotto, su tutta la riga */
.consenso .azioni [data-c=reject] { grid-column: 1; grid-row: 1; }
.consenso .azioni [data-c=accept] { grid-column: 2; grid-row: 1; }
.consenso .azioni [data-c=customize] { grid-column: 1 / -1; grid-row: 2; }
.consenso .azioni .btn { justify-content: center; width: 100%; padding-inline: .8rem; }
.consenso .btn { flex: 1 1 7rem; min-height: 2.8rem; padding: .55rem 1rem; font-size: .92rem; }
.consenso .btn:hover { transform: none; }

/* 17. BREAKPOINT --------------------------------------------------------- */
@media (min-width: 600px) {
  :root { --gutter: 2rem; --sezione: 5.5rem; }
  .breve__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .breve li:last-child:nth-child(odd) { grid-column: auto; }
  .case__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .sugiu__coppia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fumetti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; }
  .footer__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaico { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 11rem; }
  .schede { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modulo { padding: 2rem; }
}
@media (min-width: 900px) {
  :root { --sezione: 6.5rem; }
  :root { --barra-h: 0px; }
  body { padding-bottom: 0; }
  .barra { display: none; }
  .header__prenota { display: inline-flex; min-height: 2.9rem; padding-inline: 1.2rem; font-size: .95rem; }
  .hero { padding-top: 3rem; }
  .hero__griglia { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: 2rem; }
  .hero__testo { padding-bottom: 4rem; }
  .scena { margin-inline: 0 calc(var(--gutter) * -1); }
  .hero--pagina { padding-bottom: 4.5rem; }
  .hero--pagina .hero__griglia { align-items: center; gap: 3.5rem; }
  .hero--pagina .hero__testo { padding-bottom: 0; }
  .breve__lista { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); padding-block: 1.8rem; }
  .sugiu__testa { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
  .sugiu__testa p { margin-top: 0; }
  .filtri { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .mosaico { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 12.5rem; gap: .8rem; }
  .idee__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .idea { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 1.1rem 1.1rem 1.3rem; align-items: start; }
  .idea__disegno { aspect-ratio: 2 / 1; }
  .idea__vai { justify-self: end; }
  .domande .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 4rem; align-items: start; }
  .domande .faq { margin-top: 0; }
  .contatti__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
  .footer__griglia { grid-template-columns: 1.1fr 1.7fr .8fr; }
  .footer__case { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .schede.tre { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blocco-casa { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}
@media (min-width: 1100px) {
  .case__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
  .case__lista.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .casa h3 { font-size: 1.9rem; }
}

/* 18. MOVIMENTO ---------------------------------------------------------- */
.sentiero { stroke-dasharray: 2 9; }
.passeggero { offset-path: path("M300 150 C 330 190, 250 215, 300 245 S 380 290, 402 322"); offset-rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .passeggero { animation: scendi 6s var(--ease) .6s infinite; }
  @keyframes scendi { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 70% { offset-distance: 100%; opacity: 1; } 88%, 100% { offset-distance: 100%; opacity: 0; } }
  .sole-raggi { transform-origin: 520px 70px; animation: gira 40s linear infinite; }
  @keyframes gira { to { transform: rotate(360deg); } }
  .barca { animation: dondola 4s ease-in-out infinite alternate; transform-origin: 150px 370px; }
  @keyframes dondola { from { transform: translateX(0) rotate(-2deg); } to { transform: translateX(14px) rotate(2deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .passeggero { offset-distance: 100%; }
}
@media print { .header, .barra, .consenso, .modulo, .lightbox { display: none !important; } }

/* Colore della casa sulle card (più specifico del colore predefinito di .casa) */
.casa.c-ambra { --c: var(--ambra); --cc: var(--ambra-chiaro); }
.casa.c-ardesia { --c: var(--ardesia); --cc: var(--ardesia-chiaro); }
.casa.c-malachite { --c: var(--malachite); --cc: var(--malachite-chiaro); }
.casa.c-rondine, .casa.c-rondini { --c: var(--rondine); --cc: var(--rondine-chiaro); }
.casa.c-lago { --c: var(--lago); --cc: var(--cielo); }
.casa.c-acqua { --c: var(--acqua); --cc: var(--cielo); }
.casa.c-inchiostro { --c: var(--inchiostro); --cc: var(--cielo); }
.briciola { white-space: nowrap; }
.briciola svg { width: 1rem; height: 1rem; flex: none; }
.galleria__testa .titolo { margin-bottom: .2rem; }


/* =========================================================================
   19. RAFFINAMENTO — tono più adulto, più informazioni
   ========================================================================= */
.testa { display: grid; gap: .8rem; margin-bottom: 2.2rem; }
.testa .sottotitolo { margin-top: 0; }
.ico { width: 1.2rem; height: 1.2rem; flex: none; }
.sezione .titolo { font-weight: 600; }

/* Hero home: due foto sovrapposte, info pratiche */
.hero--home { padding-bottom: 3.5rem; }
.hero__intro { color: var(--testo-2); max-width: 52ch; }
.hero__info { list-style: none; padding: 1rem 0 0; margin: .4rem 0 0; border-top: 1px solid var(--riga); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: var(--t-sm); color: var(--testo-2); }
.hero__info li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__info svg { width: 1.1rem; height: 1.1rem; color: var(--lago); }
.hero__info a { color: var(--inchiostro); font-weight: 700; text-decoration: none; }
.hero__media { position: relative; }
.hero__foto--grande { aspect-ratio: 4 / 3.2; }
.hero__foto--piccola { display: none; }

/* Card case: dati e dotazioni */
.casa { border-top: 4px solid var(--c); }
.casa__foto { position: relative; aspect-ratio: 3 / 2; }
.casa__voto { position: absolute; top: .8rem; right: .8rem; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(251, 248, 241, .94); font-size: .85rem; color: var(--inchiostro); }
.casa__voto svg { width: 1rem; height: 1rem; color: var(--sole); fill: var(--sole); }
.casa__voto b { font-family: var(--testo); font-size: .9rem; }
.casa__corpo { gap: .45rem; padding: 1.1rem 1.2rem 1.25rem; }
.casa__tipo { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.casa h3 { font-size: clamp(1.5rem, 1.25rem + .9vw, 1.9rem); color: var(--titoli); }
.casa__via { display: flex; align-items: center; gap: .35rem; }
.casa__via svg { width: 1rem; height: 1rem; color: var(--acqua); }
.casa__dati { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: var(--t-sm); color: var(--inchiostro); padding-block: .6rem; border-block: 1px solid var(--riga); margin-top: .2rem; }
.casa__dati span { display: inline-flex; align-items: center; gap: .35rem; }
.casa__dati svg { width: 1.05rem; height: 1.05rem; color: var(--acqua); }
.casa__tag { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.casa__tag li { font-size: .8rem; padding: .2rem .6rem; border-radius: 6px; background: var(--cc); color: var(--inchiostro); }
.casa__fondo { margin-top: .7rem; }
.casa__scopri { position: relative; z-index: 2; font-weight: 700; font-size: var(--t-sm); color: var(--lago); text-decoration: none; }
.casa__prenota { border-radius: 8px; background: var(--lago); color: var(--calce); }
.casa__prenota:hover { background: var(--lago-scuro); color: var(--calce); }

/* Servizi inclusi */
.servizi { background: var(--cielo); }
.servizi__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.servizi__lista li { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--calce); border-radius: 10px; font-weight: 600; font-size: var(--t-sm); }
.servizi__lista svg { width: 1.5rem; height: 1.5rem; color: var(--lago); flex: none; }

/* Su e giù con foto */
.tappa { padding: 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--riga); }
.tappa__foto { aspect-ratio: 16 / 9; overflow: hidden; }
.tappa__foto img { width: 100%; height: 100%; object-fit: cover; }
.tappa__testo { display: grid; gap: .5rem; padding: 1.3rem 1.4rem 1.5rem; }
.tappa h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); }
.vicino li { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--riga); padding: .55rem .9rem; }
.vicino li svg { width: 1rem; height: 1rem; color: var(--acqua); }
.vicino li span { font-weight: 400; color: var(--testo-2); }
.vicino li span::before { content: "· "; }

/* Come arrivare */
.arrivo { background: var(--calce); }
.arrivo__griglia { display: grid; gap: 1rem; }
.arrivo__voce { display: grid; gap: .6rem; align-content: start; padding: 1.4rem; border-radius: var(--tondo); background: #fff; box-shadow: 0 0 0 1px var(--riga); color: var(--testo-2); }
.arrivo__voce svg { width: 2rem; height: 2rem; color: var(--lago); }
.arrivo__voce h3 { font-size: 1.25rem; color: var(--titoli); }

/* Vivere il posto: card con foto */
.idee { background: var(--cielo); }
.idee__lista { margin-top: 0; }
.idea { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0; gap: 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--riga); }
.idea:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--lago), 0 18px 34px -24px rgba(15, 46, 52, .55); }
.idea__foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cielo); }
.idea__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.idea:hover .idea__foto img { transform: scale(1.04); }
.idea__testo { padding: 1.2rem 1.3rem 1.4rem; gap: .45rem; align-content: start; }
.idea__testo b { font-size: 1.35rem; font-weight: 620; }
.idea__testo ul { list-style: none; padding: .7rem 0 0; margin: .3rem 0 0; border-top: 1px solid var(--riga); display: grid; gap: .25rem; font-size: var(--t-sm); color: var(--inchiostro); }
.idea__testo li::before { content: "—"; color: var(--acqua); margin-right: .45rem; }
.idea__vai { width: auto; height: auto; border-radius: 0; background: none; display: inline-flex; gap: .3rem; align-items: center; margin-top: .6rem; color: var(--lago); font-weight: 700; font-size: var(--t-sm); justify-self: start; }

/* Recensioni come schede */
.voti { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.voti li { display: grid; padding: .6rem 1rem; border-radius: 10px; background: var(--cielo); min-width: 7rem; }
.voti b { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--titoli); line-height: 1.1; }
.voti span { font-size: .8rem; color: var(--testo-2); }
.fumetto { padding: 1.5rem 1.5rem 1.3rem; border-radius: var(--tondo); background: #fff; box-shadow: 0 0 0 1px var(--riga); gap: .7rem; align-content: start; }
.fumetto blockquote, .fumetto:nth-child(even) blockquote { background: none; padding: 0; border-radius: 0; }
.fumetto blockquote::after { display: none; }
.fumetto blockquote p { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); font-weight: 420; line-height: 1.45; color: var(--inchiostro); }
.fumetto__titolo { font-family: var(--display); font-weight: 620; font-size: 1.15rem; color: var(--titoli); }
.stelle { display: flex; gap: .15rem; }
.stelle svg { width: 1rem; height: 1rem; color: var(--sole); fill: var(--sole); }
.fumetto figcaption { margin-top: .4rem; padding-top: .9rem; padding-left: 0; border-top: 1px solid var(--riga); }

/* FAQ e chiusura più sobri */
.faq details { border-radius: 10px; }
.faq summary { font-weight: 560; }
.faq summary::after { background: var(--cielo); color: var(--lago-scuro); font-weight: 500; }
.galleria__testa { margin-bottom: 0; }
.mosaico, .foto, .foto__btn { border-radius: 10px; }
.foto { border-radius: 10px; }
.consenso .btn { border-radius: 8px; }

@media (min-width: 600px) {
  .arrivo__griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .testa--riga { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .testa--riga > :last-child:not(:first-child) { justify-self: end; text-align: left; }
  .testa--riga .btn { justify-self: end; }
  .hero--home .hero__griglia { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 3.5rem; }
  .hero--home .hero__testo { padding-bottom: 0; }
  .hero--home { padding-block: 3.5rem 5rem; }
  .hero__foto--grande { margin-right: 2.5rem; }
  .hero__foto--piccola { display: block; position: absolute; right: 0; bottom: -2.5rem; width: 38%; aspect-ratio: 4 / 5; border: 6px solid var(--cielo); box-shadow: 0 18px 34px -20px rgba(15, 46, 52, .6); }
  .sugiu .testa--riga, .ospiti .testa--riga { align-items: end; }
}

.casa__corpo { display: flex; flex-direction: column; }
.casa__fondo { margin-top: auto; padding-top: .9rem; }
.scheda .vai { border-radius: 8px; white-space: nowrap; }
.scheda .vai svg, .galleria__altro svg, .btn svg { width: 1rem; height: 1rem; }
.pillole li, .casa-tag span { border-radius: 8px; }
.briciola { border-radius: 8px; }

.marchio img { width: 2.7rem; height: 2.7rem; flex: none; }
.footer__logo { width: 6.5rem; height: 6.5rem; margin-bottom: 1.4rem; }

/* Contatti senza modulo */
.contatti__riga { display: grid; gap: 1.6rem; align-items: center; }
.contatti__riga .orari { margin-top: .8rem; color: var(--testo-2); }
.contatti__azioni { display: grid; gap: .7rem; }
.contatto { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--tondo); background: #fff; box-shadow: 0 0 0 1px var(--riga); color: var(--inchiostro); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.contatto:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--lago), 0 14px 30px -20px rgba(15, 46, 52, .5); color: var(--inchiostro); }
.contatto svg { width: 1.6rem; height: 1.6rem; color: var(--lago); flex: none; }
.contatto span { display: grid; min-width: 0; }
.contatto small { font-size: .78rem; color: var(--testo-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contatto b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; overflow-wrap: anywhere; }
@media (min-width: 900px) { .contatti__riga { grid-template-columns: 1fr auto; gap: 3rem; } .contatti__azioni { grid-template-columns: repeat(2, minmax(16rem, auto)); } }

/* 20. ANIMAZIONI --------------------------------------------------------
   Attive solo con html.anim (aggiunta da site.js se abilitate nel pannello e se il
   visitatore non chiede movimento ridotto). Si animano solo opacity e transform. */
.header { transition: box-shadow .3s, background-color .3s; }
.header.scrollato { box-shadow: 0 10px 30px -22px rgba(15, 46, 52, .6); }
/* Effetto scelto nel pannello (Aspetto → Animazioni) e, blocco per blocco, "Animazione all'ingresso".
   L'effetto del sito sta su <html data-anim-fx>, quello del blocco su <section data-fx>: vince il più vicino. */
/* Le animazioni che entrano da sinistra/destra partono un po' fuori dallo schermo: senza questo, su telefono la pagina
   diventa più larga dello schermo e si può spostare di lato (il "bordo" a destra). "clip" taglia senza creare uno
   scorrimento, così l'intestazione fissa (sticky) continua a funzionare; "hidden" solo per i browser più vecchi. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
:root { --anim-d: .85s; --anim-passo: 70ms; --fx-o: 0; --fx-t: translateY(22px); --fx-c: none; --fx-c-fine: none; --fx-anim: entra; --fx-f: none; --fx-e: var(--ease); --fx-or: 50% 50%; }
[data-anim-fx="dissolvi"], .blocco[data-fx="dissolvi"] { --fx-o: 0; --fx-t: none; --fx-c: none; --fx-c-fine: none; --fx-anim: entra-dissolvi; }
[data-anim-fx="sinistra"], .blocco[data-fx="sinistra"] { --fx-o: 0; --fx-t: translateX(-34px); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-sinistra; }
[data-anim-fx="destra"], .blocco[data-fx="destra"] { --fx-o: 0; --fx-t: translateX(34px); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-destra; }
[data-anim-fx="zoom"], .blocco[data-fx="zoom"] { --fx-o: 0; --fx-t: scale(.93); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-zoom; }
[data-anim-fx="tenda"], .blocco[data-fx="tenda"] { --fx-o: 1; --fx-t: none; --fx-c: inset(0 0 100% 0); --fx-c-fine: inset(-40px); --fx-anim: entra-tenda; }
/* Effetti in più. Ogni effetto è solo un insieme di variabili: stesse regole per tutti, niente JavaScript in più */
[data-anim-fx="giu"], .blocco[data-fx="giu"] { --fx-o: 0; --fx-t: translateY(-22px); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-giu; }
[data-anim-fx="diagonale"], .blocco[data-fx="diagonale"] { --fx-o: 0; --fx-t: translate(-26px, 26px); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-diagonale; }
[data-anim-fx="allontana"], .blocco[data-fx="allontana"] { --fx-o: 0; --fx-t: scale(1.08); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-allontana; }
[data-anim-fx="sfoca"], .blocco[data-fx="sfoca"] { --fx-o: 0; --fx-t: none; --fx-f: blur(10px); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-sfoca; }
[data-anim-fx="ruota"], .blocco[data-fx="ruota"] { --fx-o: 0; --fx-t: rotate(-3deg) translateY(18px); --fx-or: 0 100%; --fx-c: none; --fx-c-fine: none; --fx-anim: entra-ruota; }
[data-anim-fx="ribalta"], .blocco[data-fx="ribalta"] { --fx-o: 0; --fx-t: perspective(900px) rotateX(24deg); --fx-or: 50% 0; --fx-c: none; --fx-c-fine: none; --fx-anim: entra-ribalta; }
[data-anim-fx="molla"], .blocco[data-fx="molla"] { --fx-o: 0; --fx-t: translateY(44px); --fx-e: cubic-bezier(.34, 1.56, .64, 1); --fx-c: none; --fx-c-fine: none; --fx-anim: entra-molla; }
[data-anim-fx="tenda-lato"], .blocco[data-fx="tenda-lato"] { --fx-o: 1; --fx-t: none; --fx-c: inset(0 100% 0 0); --fx-c-fine: inset(-40px); --fx-anim: entra-tenda-lato; }
[data-anim-fx="sipario"], .blocco[data-fx="sipario"] { --fx-o: 1; --fx-t: none; --fx-c: inset(0 50% 0 50%); --fx-c-fine: inset(-40px); --fx-anim: entra-sipario; }
.blocco[data-fx]:not([data-fx="sfoca"]) { --fx-f: none; }
.blocco[data-fx]:not([data-fx="molla"]) { --fx-e: var(--ease); }
.blocco[data-fx]:not([data-fx="ruota"]):not([data-fx="ribalta"]) { --fx-or: 50% 50%; }
.blocco[data-fx="su"] { --fx-o: 0; --fx-t: translateY(22px); --fx-c: none; --fx-c-fine: none; --fx-anim: entra; }
.blocco[data-fx="nessuna"] { --fx-o: 1; --fx-t: none; --fx-c: none; --fx-c-fine: none; --fx-anim: none; }
.anim .rivela { opacity: var(--fx-o); transform: var(--fx-t); transform-origin: var(--fx-or); clip-path: var(--fx-c); filter: var(--fx-f); }
.anim .rivela.visto { opacity: 1; transform: none; clip-path: var(--fx-c-fine); filter: none;
  transition: opacity var(--anim-d) var(--ease), transform calc(var(--anim-d) * 1.08) var(--fx-e), clip-path calc(var(--anim-d) * 1.2) var(--ease), filter var(--anim-d) var(--ease);
  transition-delay: calc(var(--rit-i, 0) * var(--anim-passo)); }
@keyframes entra-dissolvi { from { opacity: 0; } }
@keyframes entra-sinistra { from { opacity: 0; transform: translateX(-34px); } }
@keyframes entra-destra { from { opacity: 0; transform: translateX(34px); } }
@keyframes entra-zoom { from { opacity: 0; transform: scale(.93); } }
@keyframes entra-tenda { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-40px); } }
@keyframes entra-giu { from { opacity: 0; transform: translateY(-22px); } }
@keyframes entra-diagonale { from { opacity: 0; transform: translate(-26px, 26px); } }
@keyframes entra-allontana { from { opacity: 0; transform: scale(1.08); } }
@keyframes entra-sfoca { from { opacity: 0; filter: blur(10px); } }
@keyframes entra-ruota { from { opacity: 0; transform: rotate(-3deg) translateY(18px); } }
@keyframes entra-ribalta { from { opacity: 0; transform: perspective(900px) rotateX(24deg); } }
@keyframes entra-molla { 0% { opacity: 0; transform: translateY(44px); } 60% { opacity: 1; transform: translateY(-6px); } 80% { transform: translateY(2px); } 100% { transform: none; } }
@keyframes entra-tenda-lato { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(-40px); } }
@keyframes entra-sipario { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(-40px); } }
/* Sezione principale: i testi entrano subito all'apertura, uno dopo l'altro (la foto no: è l'elemento più importante per la velocità) */
.anim :is(.bl-hero__testo, .bl-hero__intro, .bl-hero__scheda, .bl-hero__centro, .bl-hero__lato) > * { animation: var(--fx-anim) var(--anim-d) var(--ease) both; }
.anim :is(.bl-hero__testo, .bl-hero__intro, .bl-hero__scheda, .bl-hero__centro) > :nth-child(2) { animation-delay: calc(var(--anim-passo) * 1.2); }
.anim :is(.bl-hero__testo, .bl-hero__intro, .bl-hero__scheda, .bl-hero__centro) > :nth-child(3) { animation-delay: calc(var(--anim-passo) * 2.4); }
.anim :is(.bl-hero__testo, .bl-hero__intro, .bl-hero__scheda, .bl-hero__centro) > :nth-child(4) { animation-delay: calc(var(--anim-passo) * 3.6); }
.anim :is(.bl-hero__testo, .bl-hero__intro, .bl-hero__scheda, .bl-hero__centro) > :nth-child(n+5) { animation-delay: calc(var(--anim-passo) * 4.8); }
.anim .bl-hero__lato > * { animation-delay: calc(var(--anim-passo) * 3); }
.anim .hero__testo > * { animation: entra .9s var(--ease) both; }
.anim .hero__testo > :nth-child(2) { animation-delay: .08s; }
.anim .hero__testo > :nth-child(3) { animation-delay: .16s; }
.anim .hero__testo > :nth-child(4) { animation-delay: .24s; }
.anim .hero__testo > :nth-child(5) { animation-delay: .32s; }
.anim .hero__testo > :nth-child(n+6) { animation-delay: .4s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* La foto principale non parte trasparente (LCP): solo un leggero zoom d'ingresso */
.anim .hero__foto img, .anim .hero__media img { animation: respiro 1.6s var(--ease) both; }
@keyframes respiro { from { transform: scale(1.06); } to { transform: none; } }
.hero__foto, .hero__media { overflow: hidden; }
.anim .hero__foto--piccola { animation: entra 1s .35s var(--ease) both; }
/* Foto delle case e delle idee: zoom lento al passaggio */
.casa__foto, .idea__foto { overflow: hidden; }
.casa__foto img, .idea__foto img { transition: transform .9s var(--ease); }
@media (hover: hover) {
  .casa:hover .casa__foto img, .idea:hover .idea__foto img { transform: scale(1.05); }
  .casa { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .casa:hover { transform: translateY(-4px); }
  .btn { transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
  .btn:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .anim .rivela { opacity: 1; transform: none; clip-path: none; filter: none; }
  .anim :is(.bl-hero__testo, .bl-hero__intro, .bl-hero__scheda, .bl-hero__centro, .bl-hero__lato) > * { animation: none; }
  .anim .hero__testo > *, .anim .hero__foto img, .anim .hero__media img, .anim .hero__foto--piccola { animation: none; }
  .casa__foto img, .idea__foto img, .casa { transition: none; }
}

/* 21. PULSANTE PRENOTA E FINESTRA DELLE CASE ----------------------------- */
.header__prenota svg, .barra .btn--sole svg { width: 1.05rem; height: 1.05rem; }
.header__prenota { gap: .45rem; }
/* Pagina ferma sotto la finestra: overflow sulla radice (non sul body, che sgancerebbe l'header sticky);
   lo spazio della barra di scorrimento resta riservato, quindi nulla si sposta di lato. */
.prenota-aperta { overflow: hidden; }
/* Punto fermo che riceve il focus all'apertura: la scheda è ancora in animazione e, se il focus
   andasse lì dentro, il browser (soprattutto iPhone) scorrerebbe la vista per inseguirla. */
.prenota__inizio { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; outline: none; }
.prenota { border: 0; padding: 0; background: transparent; color: var(--inchiostro); max-width: none; max-height: none; width: 100%; overscroll-behavior: contain; overflow: hidden; } /* niente barra di scorrimento durante l'animazione: scorre solo la scheda */
.prenota::backdrop { background: rgba(15, 46, 52, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: velo .3s var(--ease); }
@keyframes velo { from { opacity: 0; } }
.prenota__scheda { position: relative; background: var(--calce); box-shadow: 0 30px 80px -30px rgba(15, 46, 52, .7); overflow: auto; overscroll-behavior: contain; }
/* Telefono: scheda che sale dal basso */
.prenota[open] { margin: auto 0 0; }
.prenota__scheda { border-radius: 22px 22px 0 0; max-height: 88dvh; padding: .6rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); animation: sale-su .45s var(--ease); }
.prenota__scheda::before { content: ""; display: block; width: 2.6rem; height: 4px; border-radius: 4px; background: var(--riga); margin: 0 auto .9rem; }
@keyframes sale-su { from { transform: translateY(100%); } to { transform: none; } }
.prenota.chiude .prenota__scheda { animation: scende-giu .26s cubic-bezier(.4, 0, 1, 1) forwards; }
.prenota.chiude::backdrop { animation: velo .26s reverse forwards; }
@keyframes scende-giu { to { transform: translateY(100%); } }

.prenota__testa { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.prenota__testa h2 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.1; color: var(--titoli); }
.prenota__testa p { margin: 0; color: var(--testo-2); font-size: .95rem; max-width: 34rem; }
.prenota__chiudi { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--cielo); color: var(--lago-scuro); cursor: pointer; transition: transform .25s var(--ease), background-color .2s; }
.prenota__chiudi:hover { transform: rotate(90deg); background: var(--spuma); }
.prenota__chiudi svg { width: 1rem; height: 1rem; }

.prenota__case { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pcasa {
  display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .3rem .9rem; align-items: center;
  padding: .6rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--riga);
  animation: carta .55s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * .06s);
  transition: box-shadow .25s, transform .25s var(--ease);
}
@keyframes carta { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pcasa__foto { position: relative; grid-row: span 2; display: block; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--cc, var(--cielo)); }
.pcasa__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcasa__foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c, var(--lago)); }
.pcasa__foto .etichetta { position: absolute; left: .35rem; top: .35rem; font-size: .62rem; padding: .2rem .4rem; }
.pcasa__corpo { display: grid; gap: .05rem; min-width: 0; }
.pcasa__corpo small { font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--c, var(--acqua)); }
.pcasa__corpo b { font-family: var(--display); font-weight: 620; font-size: 1.25rem; line-height: 1.1; color: var(--titoli); }
.pcasa__corpo span { font-size: .82rem; color: var(--testo-2); line-height: 1.35; }
.pcasa__azioni { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.pcasa__date {
  display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .85rem; border-radius: 10px;
  background: var(--c, var(--lago)); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: filter .2s, transform .2s var(--ease);
}
.pcasa__date svg { width: .9rem; height: .9rem; transition: transform .2s var(--ease); }
.pcasa__date:hover { color: #fff; filter: brightness(1.08); }
.pcasa__date:hover svg { transform: translateX(3px); }
.pcasa__scopri { font-size: .88rem; font-weight: 650; color: var(--lago-scuro); }
@media (hover: hover) {
  .pcasa:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--c, var(--lago)), 0 18px 34px -22px rgba(15, 46, 52, .55); }
  .pcasa:hover .pcasa__foto img { transform: scale(1.06); }
}
.prenota__fondo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--riga); font-size: .92rem; color: var(--testo-2); }
.prenota__fondo a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--lago-scuro); text-decoration: none; }
.prenota__fondo a:hover { color: var(--lago); }
.prenota__fondo svg { width: 1.05rem; height: 1.05rem; }

@media (min-width: 900px) {
  .prenota[open] { margin: auto; width: min(64rem, calc(100vw - 3rem)); }
  .prenota__scheda { border-radius: 24px; max-height: calc(100dvh - 3rem); padding: 1.8rem 1.8rem 1.4rem; animation: compare .45s var(--ease); }
  .prenota__scheda::before { display: none; }
  @keyframes compare { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
  .prenota.chiude .prenota__scheda { animation: svanisce .22s ease-in forwards; }
  @keyframes svanisce { to { opacity: 0; transform: translateY(8px) scale(.98); } }
  .prenota__case { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .pcasa { display: flex; flex-direction: column; align-items: stretch; padding: .55rem .55rem .9rem; }
  .pcasa__foto { grid-row: auto; aspect-ratio: 4 / 3.4; margin-bottom: .5rem; }
  .pcasa__corpo, .pcasa__azioni { padding-inline: .35rem; }
  .pcasa__azioni { margin-top: auto; padding-top: .8rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .prenota__case { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 22. MENU: APERTURA E CHIUSURA ANIMATE --------------------------------- */
.menu[open] .menu__pannello { animation: tenda .42s var(--ease); transform-origin: top; }
@keyframes tenda { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu[open] .menu__titolo, .menu[open] .menu__casa, .menu[open] .menu__tutte, .menu[open] .menu__link a, .menu[open] .menu__contatti a, .menu[open] .lingue {
  animation: voce .55s var(--ease) both;
}
@keyframes voce { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.menu[open] .menu__case li:nth-child(1) .menu__casa { animation-delay: .06s; }
.menu[open] .menu__case li:nth-child(2) .menu__casa { animation-delay: .11s; }
.menu[open] .menu__case li:nth-child(3) .menu__casa { animation-delay: .16s; }
.menu[open] .menu__case li:nth-child(4) .menu__casa { animation-delay: .21s; }
.menu[open] .menu__tutte { animation-delay: .25s; }
.menu[open] .menu__link a { animation-name: voce-lato; }
@keyframes voce-lato { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.menu[open] .menu__link a:nth-child(1) { animation-delay: .14s; }
.menu[open] .menu__link a:nth-child(2) { animation-delay: .18s; }
.menu[open] .menu__link a:nth-child(3) { animation-delay: .22s; }
.menu[open] .menu__link a:nth-child(4) { animation-delay: .26s; }
.menu[open] .menu__link a:nth-child(5) { animation-delay: .30s; }
.menu[open] .menu__link a:nth-child(n+6) { animation-delay: .34s; }
.menu[open] .menu__contatti a, .menu[open] .lingue { animation-delay: .36s; }
.menu.chiude .menu__pannello { animation: tenda-via .23s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes tenda-via { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
/* Tendina "Le case" su computer: le schede entrano in sequenza */
.navtop__case[open] .mega__case li { animation: voce .45s var(--ease) both; }
.navtop__case[open] .mega__case li:nth-child(2) { animation-delay: .05s; }
.navtop__case[open] .mega__case li:nth-child(3) { animation-delay: .1s; }
.navtop__case[open] .mega__case li:nth-child(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .prenota__scheda, .prenota::backdrop, .pcasa, .menu[open] .menu__pannello, .menu[open] *, .navtop__case[open] .mega__case li { animation: none !important; }
}

/* Pagina privacy: riquadro per cambiare le preferenze cookie */
.preferenze-cookie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; max-width: 52rem; margin-bottom: 2rem; padding: 1.1rem 1.3rem; border-radius: var(--tondo, 22px); background: var(--cielo); }
.preferenze-cookie p { margin: 0; max-width: 34rem; color: var(--inchiostro); }

/* ===================== Blocchi delle pagine (costruttore nel pannello) ===================== */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sfondi: i colori si scelgono in Aspetto (il pannello scrive --bg-* solo se diversi da questi) */
:root { --bg-calce: var(--calce); --bg-bianco: #fff; --bg-cielo: var(--cielo); --bg-sabbia: #F3EEE3; --bg-scuro: var(--lago-scuro); }
.blocco.sfondo--calce { --fondo: var(--bg-calce); background: var(--fondo); }
.blocco.sfondo--bianco { --fondo: var(--bg-bianco); background: var(--fondo); }
.blocco.sfondo--cielo { --fondo: var(--bg-cielo); background: var(--fondo); }
.blocco.sfondo--sabbia { --fondo: var(--bg-sabbia); background: var(--fondo); }
.blocco.sfondo--scuro { --fondo: var(--bg-scuro); background: var(--fondo); }
/* Testi chiari sugli sfondi scuri (tono--scuro, deciso dal pannello in base al colore dello sfondo) */
.blocco.tono--scuro { --t-forte: var(--calce); --t-tenue: var(--spuma); --t-link: var(--sole-chiaro); color: var(--t-forte); }
.blocco.tono--scuro .titolo, .blocco.tono--scuro .bl-tappe__t, .blocco.tono--scuro .bl-dom__q, .blocco.tono--scuro .bl-cit blockquote { color: var(--t-forte); }
.blocco.tono--scuro .sottotitolo, .blocco.tono--scuro .intro, .blocco.tono--scuro .bl-testo__corpo, .blocco.tono--scuro .bl-tappe > li > div, .blocco.tono--scuro .bl-dom__a, .blocco.tono--scuro .bl-cit figcaption, .blocco.tono--scuro .bl-pulsante__nota { color: var(--t-tenue); }
.blocco.tono--scuro .bl-testo__corpo a, .blocco.tono--scuro .bl-dom__a a, .blocco.tono--scuro .intro a { color: var(--t-link); }
.blocco.tono--scuro .bl-testo--riquadro { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.blocco.tono--scuro .btn--vuoto { color: var(--t-forte); box-shadow: inset 0 0 0 2px var(--t-forte); }
.blocco.tono--scuro .bl-tappe > li::before { background: repeating-linear-gradient(var(--t-tenue) 0 6px, transparent 6px 12px); }
/* Schede e riquadri chiari dentro un blocco scuro: il loro testo resta scuro */
.blocco.tono--scuro :is(.scheda, .fumetto blockquote, .faq details, .bl-vicino li, .bl-stagione, .tappa, .idea, .contatto, .bl-cmp, .servizi__lista li) { color: var(--inchiostro); }
/* Due blocchi di fila con lo stesso sfondo: meno spazio tra i due, sembrano un'unica sezione */
.blocco.sfondo--calce + .blocco.sfondo--calce, .blocco.sfondo--bianco + .blocco.sfondo--bianco, .blocco.sfondo--cielo + .blocco.sfondo--cielo,
.blocco.sfondo--sabbia + .blocco.sfondo--sabbia, .blocco.sfondo--scuro + .blocco.sfondo--scuro { padding-top: 0; }
/* Titoli dei blocchi: H1 (titolo principale della pagina), H2 di sezione, H3 minore */
.blocco h1.titolo { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); line-height: .98; font-weight: 640; }
.blocco h3.titolo { font-size: var(--t-xl); }
.blocco--h1 .bl-testo { max-width: 60rem; }
/* …ma dopo una foto a tutta larghezza lo spazio serve sempre */
.blocco.blocco--foto_grande + .blocco.sezione { padding-top: var(--sezione); }
.blocco .testa + * { margin-top: 2rem; }

/* Numeri in breve su sfondo chiaro */
.blocco--numeri { padding-block: 1rem; }
.blocco--numeri:not(.tono--scuro) { color: var(--inchiostro); }
.blocco--numeri:not(.tono--scuro) .breve__lista b { color: var(--titoli); }
.blocco--numeri:not(.tono--scuro) .breve__lista span { color: var(--testo-2); }
.blocco--numeri.tono--scuro .breve__lista b { color: var(--t-forte); }
.blocco--numeri.tono--scuro .breve__lista span { color: var(--t-tenue); }

/* Testo */
.bl-testo { max-width: 70ch; display: grid; gap: 1rem; }
.bl-testo__corpo { color: var(--testo-2); font-size: var(--t-base); }
.bl-testo__corpo > * + * { margin-top: .9rem; }
.bl-testo__corpo ul { padding-left: 1.2rem; }
.bl-testo--intro .bl-testo__corpo { font-size: var(--t-lg); line-height: 1.55; color: var(--inchiostro); }
.bl-testo--riquadro { max-width: none; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--tondo); background: var(--cielo); box-shadow: inset 0 0 0 2px var(--riga); }
.sfondo--cielo .bl-testo--riquadro { background: var(--calce); }
.bl-testo .vai, .bl-tf .vai { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.05rem; border-radius: 999px; background: var(--sole); color: var(--su-sole); font-weight: 700; text-decoration: none; }
.bl-testo .vai svg, .bl-tf .vai svg { width: 1rem; height: 1rem; }
.schede.due { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .schede.due { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Testo + foto */
.bl-tf { display: grid; gap: 1.6rem; align-items: center; }
.bl-tf__testo { display: grid; gap: 1rem; max-width: 60ch; }
.bl-tf__foto { border-radius: var(--tondo); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 44px -28px rgba(15, 46, 52, .55); }
.bl-tf__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .bl-tf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; }
  .bl-tf--sinistra .bl-tf__foto { order: -1; }
  .bl-tf--solo { grid-template-columns: minmax(0, 1fr); }
}

/* Citazione */
.bl-cit { margin: 0 auto; max-width: 46rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.bl-cit blockquote { margin: 0; font-family: var(--display); font-weight: 520; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.25; letter-spacing: -.015em; color: var(--titoli); }
.bl-cit blockquote::before { content: "“"; display: block; font-size: 3.5em; line-height: .6; color: var(--sole); margin-bottom: .1em; }
.bl-cit figcaption { font-weight: 650; color: var(--testo-2); }
.bl-cit figcaption::before { content: "— "; }

/* Domanda in evidenza */
.bl-dom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; max-width: 54rem; padding: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); border-radius: var(--tondo); background: var(--calce); box-shadow: 0 0 0 2px var(--riga); }
.bl-dom__segno { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--sole); color: var(--su-sole); font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.bl-dom__q { font-size: var(--t-xl); color: var(--titoli); }
h1.bl-dom__q { font-size: var(--t-2xl); }
.bl-dom__a { margin-top: .6rem; color: var(--testo-2); }
.bl-dom__a > * + * { margin-top: .7rem; }
.blocco.tono--scuro .bl-dom { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }

/* Foto a tutta larghezza */
.blocco--foto_grande { padding-block: 0; }
.bl-fg { position: relative; height: clamp(16rem, 42vw, 30rem); overflow: hidden; }
.bl-fg--alta { height: clamp(22rem, 62vw, 44rem); }
.bl-fg img { width: 100%; height: 100%; object-fit: cover; }
/* Velo scelto nel blocco (15.8): copre tutta la foto e prende il posto della sfumatura sotto il titolo */
.bl-fg__velo { position: absolute; inset: 0; pointer-events: none; }
.bl-fg--velo .bl-fg__testo { background: none; }
.bl-fg__testo { position: absolute; inset: auto 0 0 0; padding: 4rem 0 clamp(1.4rem, 1rem + 2vw, 2.6rem); background: linear-gradient(transparent, rgba(15, 46, 52, .72)); color: #fff; }
.bl-fg__titolo { font-size: var(--t-2xl); color: #fff; max-width: 22ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
h1.bl-fg__titolo { font-size: clamp(2.4rem, 1.5rem + 4.4vw, 5rem); line-height: .95; max-width: 18ch; }
h3.bl-fg__titolo { font-size: var(--t-xl); }
.bl-fg__testo p { margin-top: .5rem; max-width: 52ch; font-size: var(--t-lg); color: rgba(255, 255, 255, .92); }

/* Confronto tra le case */
.bl-cmp { overflow-x: auto; border-radius: var(--tondo); box-shadow: 0 0 0 1px var(--riga); background: #fff; -webkit-overflow-scrolling: touch; }
.bl-cmp:focus-visible { outline: 3px solid var(--sole); outline-offset: 3px; }
.bl-cmp table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.bl-cmp th, .bl-cmp td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--riga); vertical-align: middle; }
.bl-cmp tbody tr:last-child th, .bl-cmp tbody tr:last-child td { border-bottom: 0; }
.bl-cmp thead th { font-family: var(--display); font-weight: 620; font-size: 1.2rem; color: var(--c, var(--titoli)); border-bottom: 3px solid var(--c, var(--riga)); }
.bl-cmp thead th a { color: inherit; text-decoration: none; }
.bl-cmp tbody th { position: sticky; left: 0; background: #fff; font-weight: 650; color: var(--testo-2); font-size: var(--t-sm); white-space: nowrap; }
.bl-cmp td { font-weight: 600; color: var(--inchiostro); }
.bl-cmp .pcasa__date { white-space: nowrap; }

/* Nei dintorni */
.bl-vicino { list-style: none; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.bl-vicino li { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: var(--tondo); background: var(--calce); box-shadow: 0 0 0 1px var(--riga); }
.sfondo--calce .bl-vicino li { background: #fff; }
.bl-vicino svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--acqua); }
.bl-vicino span { display: grid; min-width: 0; }
.bl-vicino b { font-family: var(--display); font-weight: 620; font-size: 1.08rem; color: var(--titoli); }
.bl-vicino small { font-size: var(--t-sm); color: var(--testo-2); }

/* Itinerario passo passo */
.bl-tappe { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 46rem; counter-reset: none; }
.bl-tappe > li { position: relative; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.8rem; }
.bl-tappe > li::before { content: ""; position: absolute; left: 1.35rem; top: 2.8rem; bottom: .3rem; width: 2px; background: repeating-linear-gradient(var(--acqua) 0 6px, transparent 6px 12px); }
.bl-tappe > li:last-child { padding-bottom: 0; }
.bl-tappe > li:last-child::before { display: none; }
.bl-tappe__n { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--sole); color: var(--su-sole); font-family: var(--display); font-weight: 750; font-size: 1.15rem; }
.bl-tappe small { display: block; font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--acqua); margin-top: .15rem; }
.bl-tappe__t { font-size: var(--t-xl); color: var(--titoli); margin: .15rem 0 .35rem; }
.bl-tappe > li > div { color: var(--testo-2); }

/* Le quattro stagioni */
.bl-stagioni { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.bl-stagione { --s: var(--malachite); background: var(--calce); border-radius: var(--tondo); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; box-shadow: inset 0 4px 0 var(--s); }
.bl-stagione--estate { --s: var(--sole); }
.bl-stagione--autunno { --s: var(--ambra); }
.bl-stagione--inverno { --s: var(--rondine); }
.bl-stagione__ico { width: 2.6rem; height: 2.6rem; color: var(--s); }
.bl-stagione--estate .bl-stagione__ico { color: #C48A12; }
.bl-stagione__t { font-size: var(--t-xl); color: var(--titoli); }
.bl-stagione p, .bl-stagione li { color: var(--testo-2); }
.sfondo--calce .bl-stagione { background: #fff; }

/* Invito all'azione */
.bl-cta { display: grid; gap: 1.2rem; align-items: center; padding: clamp(1.5rem, 1rem + 2.5vw, 2.8rem); border-radius: calc(var(--tondo) + 6px); background: var(--sole); color: var(--su-sole); }
.bl-cta__titolo { font-size: var(--t-xl); color: inherit; }
h1.bl-cta__titolo { font-size: var(--t-2xl); }
.bl-cta p { margin-top: .4rem; font-size: var(--t-lg); opacity: .9; }
.bl-cta .btn { justify-self: start; }
.bl-cta--lago { background: var(--lago); color: var(--calce); }
.bl-cta--notte { background: var(--inchiostro); color: var(--calce); }
@media (min-width: 900px) { .bl-cta { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; } .bl-cta .btn { justify-self: end; } }

/* Case: anche una o due sole */
.case__lista.n1 { max-width: 26rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .case__lista.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; } }
@media print { .blocco--foto_grande, .blocco--cta { break-inside: avoid; } }

/* Blocco "Pulsante": solo un pulsante, con una piccola frase facoltativa */
.blocco.blocco--pulsante { padding-block: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.bl-pulsante { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.bl-pulsante--sinistra { align-items: flex-start; text-align: left; }
.bl-pulsante--destra { align-items: flex-end; text-align: right; }
.bl-pulsante .btn { font-size: var(--t-lg, 1.1rem); padding: .95rem 1.7rem; }
.bl-pulsante .btn svg { width: 1.1em; height: 1.1em; }
.bl-pulsante__nota { margin: 0; max-width: 36rem; font-size: .95rem; color: var(--testo-2); }
/* Invito all'azione con solo il pulsante */
.bl-cta--solo { justify-items: center; }
.bl-cta--solo .btn { justify-self: center !important; }
@media (min-width: 900px) { .bl-cta--solo { grid-template-columns: 1fr; } }

/* Logo caricato dal pannello (pannello → Logo): altezze diverse per computer e smartphone */
.marchio--logo picture { display: block; flex: none; line-height: 0; }
.marchio--logo img { width: auto; height: var(--logo-mob, 40px); max-width: min(56vw, 16rem); object-fit: contain; object-position: left center; }
.marchio--solo { gap: 0; }
@media (min-width: 900px) { .marchio--logo img { height: var(--logo-pc, 48px); max-width: 22rem; } }

/* Pagina Domande: solo l'elenco, in una colonna più stretta */
.domande .wrap.bl-faq-elenco, .bl-faq-elenco { display: block; max-width: 56rem; }

/* Testo "Paragrafo di documento" (privacy, condizioni): titoli piccoli e paragrafi vicini, come in un documento */
.bl-testo--documento { gap: .6rem; max-width: 68ch; }
.bl-testo--documento .titolo { font-size: var(--t-xl); }
.blocco:has(.bl-testo--documento) { padding-block: 1.1rem; }
.blocco:has(.bl-testo--documento):first-of-type, :not(.blocco--testo) + .blocco:has(.bl-testo--documento) { padding-top: var(--sezione); }
.blocco:has(.bl-testo--documento):last-of-type { padding-bottom: var(--sezione); }

/* Colore del pulsante dei link nei blocchi di testo (pannello → blocco → "Colore del pulsante") */
.blocco .vai.vai--sole { background: var(--sole); color: var(--su-sole); box-shadow: none; }
.blocco .vai.vai--sole:hover { background: var(--sole-hover); color: var(--su-sole); }
.blocco .vai.vai--chiaro { background: var(--sole-chiaro); color: var(--inchiostro); box-shadow: none; }
.blocco .vai.vai--chiaro:hover { background: var(--sole); color: var(--su-sole); }
.blocco .vai.vai--lago { background: var(--lago); color: var(--calce); box-shadow: none; }
.blocco .vai.vai--lago:hover { background: var(--lago-scuro); color: var(--calce); }
.blocco .vai.vai--scuro { background: var(--inchiostro); color: var(--calce); box-shadow: none; }
.blocco .vai.vai--scuro:hover { background: var(--lago-scuro); color: var(--calce); }
.blocco .vai.vai--vuoto { background: transparent; color: var(--lago-scuro); box-shadow: inset 0 0 0 2px var(--lago); }
.blocco .vai.vai--vuoto:hover { background: var(--cielo); color: var(--lago-scuro); }
.blocco .vai.vai--link { background: none; box-shadow: none; padding: 0; border-radius: 0; color: var(--lago); text-decoration: underline; text-decoration-color: var(--sole); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.blocco.tono--scuro .vai.vai--vuoto { color: var(--t-forte); box-shadow: inset 0 0 0 2px var(--t-forte); }
.blocco.tono--scuro .vai.vai--vuoto:hover { background: rgba(255, 255, 255, .1); }
.blocco.tono--scuro .vai.vai--link { color: var(--t-link); }
.blocco.tono--scuro .vai.vai--scuro { background: var(--calce); color: var(--inchiostro); }
/* …ma dentro le schede bianche di un blocco scuro i pulsanti restano quelli degli sfondi chiari */
.blocco.tono--scuro .scheda .vai.vai--vuoto { color: var(--lago-scuro); box-shadow: inset 0 0 0 2px var(--lago); }
.blocco.tono--scuro .scheda .vai.vai--link { color: var(--lago); }
.blocco.tono--scuro .scheda .vai.vai--scuro { background: var(--inchiostro); color: var(--calce); }

/* Piè di pagina con colonne scelte nel pannello */
@media (min-width: 900px) {
  .footer__griglia--n2 { grid-template-columns: 1fr 1fr; }
  .footer__griglia--n1 { grid-template-columns: 1fr; }
}
.footer__logo--mio { width: auto; height: auto; max-width: 14rem; max-height: 5rem; object-fit: contain; object-position: left center; }

/* Più pulsanti in un blocco di testo: affiancati o uno sotto l'altro */
.bl-btns { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; justify-self: start; margin-top: .2rem; }
.bl-btns--colonna { flex-direction: column; align-items: flex-start; }
.bl-btns .vai { justify-self: auto; }
/* Pulsante con un colore scelto a mano (colore e testo leggibile calcolati dal pannello) */
.blocco .vai.vai--custom { background: var(--b); color: var(--b-t); box-shadow: none; }
.blocco .vai.vai--custom:hover { background: var(--b-h); color: var(--b-t); }
/* Etichetta oraria delle tappe su sfondo scuro */
.blocco.tono--scuro .bl-tappe small { color: var(--t-link); }

/* ===================== Sezione principale (apertura della pagina, 9 layout) ===================== */
.blocco.blocco--principale { padding-block: 0; }
.bl-hero { position: relative; }
.bl-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-hero__testo, .bl-hero__intro, .bl-hero__scheda, .bl-hero__centro { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.bl-hero__t { margin: 0; font-family: var(--display); font-weight: 640; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); line-height: .92; letter-spacing: -.03em; color: var(--titoli); overflow-wrap: break-word; }
.bl-hero__t em { font-style: normal; font-weight: 400; color: var(--acqua); }
.bl-hero__k { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acqua); }
.bl-hero__l { margin: 0; max-width: 34ch; font-size: var(--t-lg); font-weight: 600; line-height: 1.35; color: var(--inchiostro); }
.bl-hero__s { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); color: var(--lago); }
.bl-hero__s strong, .bl-hero__s b { color: var(--titoli); }
.bl-hero__p { max-width: 42ch; color: var(--testo-2); }
.bl-hero__p > * + * { margin-top: .6rem; }
.bl-hero__i { margin: 0; font-size: var(--t-sm); color: var(--testo-2); }
.bl-hero .bl-btns { margin-top: .4rem; }
.bl-hero .vai { display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.35rem; border-radius: 12px; font-size: 1rem; font-weight: 700; text-decoration: none; background: var(--sole); color: var(--su-sole); transition: background-color .2s, transform .2s; }
.bl-hero .vai:hover { background: var(--sole-hover); color: var(--su-sole); transform: translateY(-1px); }
.bl-hero .vai svg { width: 1rem; height: 1rem; }
.blocco.tono--scuro .bl-hero__t { color: var(--t-forte); }
.blocco.tono--scuro .bl-hero__l, .blocco.tono--scuro .bl-hero__s, .blocco.tono--scuro .bl-hero__s strong { color: var(--t-forte); }
.blocco.tono--scuro .bl-hero__p, .blocco.tono--scuro .bl-hero__i { color: var(--t-tenue); }
.blocco.tono--scuro .bl-hero__k, .blocco.tono--scuro .bl-hero__t em { color: var(--t-link); }

/* Testi chiari sopra le foto (B, F, H) */
.bl-hero--foto { color: #fff; }
.bl-hero--foto .bl-hero__velo { position: absolute; inset: 0; pointer-events: none; }
.bl-hero--foto > img, .bl-hero__alto > img { position: absolute; inset: 0; }
.bl-hero--b .bl-hero__t, .bl-hero--h .bl-hero__t, .bl-hero--b .bl-hero__l, .bl-hero--h .bl-hero__l { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .25); }
.bl-hero--b .bl-hero__t em, .bl-hero--h .bl-hero__t em, .bl-hero--b .bl-hero__k, .bl-hero--h .bl-hero__k { color: var(--sole); }
.bl-hero--b .vai.vai--vuoto, .bl-hero--h .vai.vai--vuoto { color: #fff; box-shadow: inset 0 0 0 2px #fff; background: transparent; }
.bl-hero--b .vai.vai--link, .bl-hero--h .vai.vai--link { color: #fff; }

/* A · Classico */
.bl-hero--a { padding-block: clamp(2rem, 1rem + 3vw, 4rem); }
.bl-hero--a .bl-hero__griglia { display: grid; gap: 2.4rem; align-items: center; }
.bl-hero--a .bl-hero__media { position: relative; padding: 0 0 2.5rem; }
.bl-hero--a .bl-hero__media > img { aspect-ratio: 4 / 3; border-radius: var(--tondo); box-shadow: 0 24px 44px -28px rgba(15, 46, 52, .55); }
.bl-hero--a .bl-hero__piccola { position: absolute; right: -.5rem; bottom: 0; width: 38%; aspect-ratio: 4 / 3; border-radius: calc(var(--tondo) - 2px); overflow: hidden; box-shadow: 0 0 0 6px var(--fondo, var(--cielo)), 0 16px 30px -18px rgba(15, 46, 52, .6); }
@media (min-width: 900px) { .bl-hero--a .bl-hero__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; } .bl-hero--a .bl-hero__media { padding: 0 2.5rem 3rem 0; } .bl-hero--a .bl-hero__piccola { right: 0; } }

/* B · Foto a tutto schermo */
.bl-hero--b { min-height: clamp(26rem, 62vw, 40rem); display: flex; align-items: flex-end; overflow: hidden; background: var(--lago-scuro); }
.bl-hero--b.bl-hero--alta { min-height: clamp(30rem, 78vw, 48rem); }
/* "A tutto schermo": lo schermo meno l'intestazione e, sul telefono, meno la barra fissa Prenota/Chiama (--barra-h),
   così titolo e pulsanti non finiscono sotto la barra */
.bl-hero--b.bl-hero--schermo, .bl-hero--f.bl-hero--schermo, .bl-hero--h.bl-hero--schermo .bl-hero__alto { min-height: calc(100vh - 4.2rem - var(--barra-h)); min-height: calc(100svh - 4.2rem - var(--barra-h)); }
.bl-hero--b .bl-hero__velo { background: linear-gradient(180deg, rgba(15, 46, 52, .25) 0%, rgba(15, 46, 52, 0) 30%, rgba(15, 46, 52, .1) 50%, rgba(15, 46, 52, .8) 100%); }
.bl-hero--b .bl-hero__fondo { position: relative; width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem 2.5rem; padding-block: 6rem clamp(2rem, 1rem + 3vw, 3.5rem); }
.bl-hero--b .bl-hero__testo { max-width: 46rem; }
.bl-hero--b .bl-hero__t { font-size: clamp(2.8rem, 1.4rem + 5.5vw, 6rem); }

/* C · Diviso a metà */
.bl-hero--c { display: grid; }
.bl-hero--c .bl-hero__testo { justify-content: center; padding: clamp(2rem, 1rem + 4vw, 4rem) var(--gutter); }
.bl-hero--c .bl-hero__media { position: relative; min-height: 18rem; order: -1; }
.bl-hero--c .bl-hero__media > img { position: absolute; inset: 0; }
.bl-hero--c .bl-hero__did { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .55rem .85rem; border-radius: 10px; background: rgba(251, 248, 241, .93); color: var(--titoli); font-size: .85rem; font-weight: 700; }
@media (min-width: 900px) {
  .bl-hero--c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(30rem, 48vw, 40rem); }
  .bl-hero--c.bl-hero--alta { min-height: clamp(36rem, 60vw, 48rem); }
  .bl-hero--c.bl-hero--schermo { min-height: calc(100vh - 4.2rem - var(--barra-h)); min-height: calc(100svh - 4.2rem - var(--barra-h)); }
  .bl-hero--c .bl-hero__media { order: 0; }
  .bl-hero--c .bl-hero__testo { padding-left: max(var(--gutter), calc((100vw - var(--contenitore)) / 2 + var(--gutter))); padding-right: 3.5rem; }
}

/* D · Titolo centrato + panorama */
.bl-hero--d { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.bl-hero--d .bl-hero__testo { align-items: center; text-align: center; }
.bl-hero--d .bl-hero__l { max-width: 48ch; }
.bl-hero--d .bl-hero__t { font-size: clamp(2.8rem, 1.4rem + 5.5vw, 6.2rem); }
.bl-hero--d .bl-btns { justify-content: center; }
.bl-hero--d .bl-hero__media { margin: clamp(1.6rem, 1rem + 2vw, 2.6rem) clamp(.75rem, .5rem + 1vw, 1.5rem) clamp(.75rem, .5rem + 1vw, 1.5rem); height: clamp(16rem, 38vw, 30rem); border-radius: calc(var(--tondo) + 8px); overflow: hidden; }

/* E · Mosaico di foto */
.bl-hero--e { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.bl-hero--e .bl-hero__griglia { display: grid; gap: 2.2rem; align-items: center; }
.bl-hero--e .bl-hero__mosaico { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(7rem, 14vw, 15rem); gap: .75rem; }
.bl-hero--e .bl-hero__mosaico > div { border-radius: var(--tondo); overflow: hidden; }
.bl-hero--e .bl-hero__m1 { grid-column: span 2; }
.bl-hero--e .bl-hero__m2 { grid-row: span 2; }
@media (min-width: 900px) { .bl-hero--e .bl-hero__griglia { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 3rem; } }

/* F · Scheda sopra la foto */
.bl-hero--f { min-height: clamp(30rem, 60vw, 42rem); display: flex; align-items: flex-end; overflow: hidden; background: var(--lago-scuro); }
.bl-hero--f.bl-hero--alta { min-height: clamp(34rem, 76vw, 50rem); }
.bl-hero--f .bl-hero__velo { background: linear-gradient(180deg, rgba(15, 46, 52, .3) 0%, rgba(15, 46, 52, 0) 30%); }
.bl-hero--f .bl-hero__fondo { position: relative; width: 100%; padding-block: 8rem clamp(1.2rem, .5rem + 3vw, 3.5rem); }
.bl-hero--f .bl-hero__scheda { max-width: 30rem; padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border-radius: calc(var(--tondo) + 8px); background: var(--calce); color: var(--inchiostro); box-shadow: 0 30px 70px -24px rgba(15, 46, 52, .6); gap: .85rem; }
.bl-hero--f .bl-hero__t { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); }
.bl-hero--f .bl-hero__i { width: 100%; padding-top: .85rem; border-top: 1px solid var(--riga); }
.blocco.tono--scuro .bl-hero--f .bl-hero__t { color: var(--titoli); }
.blocco.tono--scuro .bl-hero--f .bl-hero__l { color: var(--inchiostro); }
.blocco.tono--scuro .bl-hero--f .bl-hero__p, .blocco.tono--scuro .bl-hero--f .bl-hero__i { color: var(--testo-2); }
.blocco.tono--scuro .bl-hero--f .bl-hero__k, .blocco.tono--scuro .bl-hero--f .bl-hero__t em { color: var(--acqua); }

/* G · Editoriale */
.bl-hero--g { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.bl-hero--g .bl-hero__t { font-weight: 700; font-size: clamp(3.2rem, 1rem + 9.5vw, 10.5rem); line-height: .86; letter-spacing: -.05em; }
.bl-hero--g .bl-hero__riga { display: grid; gap: 1.4rem; margin-top: clamp(1.6rem, 1rem + 3vw, 3.5rem); align-items: end; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bl-hero--g .bl-hero__intro { grid-column: 1 / -1; gap: .8rem; }
.bl-hero--g .bl-hero__nome { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 640; color: var(--titoli); }
.blocco.tono--scuro .bl-hero--g .bl-hero__nome { color: var(--t-forte); }
.bl-hero--g .bl-hero__g1, .bl-hero--g .bl-hero__g2 { aspect-ratio: 16 / 10; border-radius: var(--tondo); overflow: hidden; }
@media (min-width: 900px) { .bl-hero--g .bl-hero__riga { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, .8fr); gap: 2rem; } .bl-hero--g .bl-hero__intro { grid-column: auto; } }

/* H · Foto + barra dei numeri */
.bl-hero--h { background: var(--lago-scuro); }
.bl-hero--h .bl-hero__alto { position: relative; overflow: hidden; min-height: clamp(24rem, 50vw, 36rem); display: flex; align-items: center; }
.bl-hero--h.bl-hero--alta .bl-hero__alto { min-height: clamp(30rem, 66vw, 44rem); }
.bl-hero--h .bl-hero__velo { background: linear-gradient(90deg, rgba(15, 46, 52, .85) 0%, rgba(15, 46, 52, .55) 45%, rgba(15, 46, 52, .15) 80%); }
.bl-hero--h .bl-hero__alto .bl-hero__testo { position: relative; width: 100%; padding-block: 3rem; }
.bl-hero--h .bl-hero__alto .bl-hero__testo > * { max-width: 40rem; }
.bl-hero--h .bl-hero__numeri { list-style: none; margin: 0 auto; padding-block: 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; color: #fff; }
.bl-hero--h .bl-hero__numeri li { display: grid; gap: .15rem; }
.bl-hero--h .bl-hero__numeri b { font-family: var(--display); font-weight: 560; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; }
.bl-hero--h .bl-hero__numeri span { font-size: var(--t-sm); color: var(--spuma); }
@media (min-width: 900px) { .bl-hero--h .bl-hero__numeri { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

/* I · Foto ad arco */
.bl-hero--i { padding-top: clamp(2rem, 1rem + 3vw, 3rem); }
.bl-hero--i .bl-hero__griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.2rem; align-items: end; }
.bl-hero--i .bl-hero__centro { grid-column: 1 / -1; order: -1; align-items: center; text-align: center; }
.bl-hero--i .bl-hero__centro .bl-btns { justify-content: center; }
.bl-hero--i .bl-hero__arco { width: 100%; height: clamp(16rem, 34vw, 28rem); margin-top: .6rem; border-radius: 999px 999px 0 0; overflow: hidden; }
.bl-hero--i .bl-hero__lato { display: flex; flex-direction: column; gap: .7rem; padding-bottom: 1.6rem; }
.bl-hero--i .bl-hero__lato--dx { align-items: flex-end; text-align: right; }
.bl-hero--i .bl-hero__tondo { width: min(100%, 13rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
@media (min-width: 900px) {
  .bl-hero--i .bl-hero__griglia { grid-template-columns: minmax(0, .55fr) minmax(0, 1.4fr) minmax(0, .55fr); gap: 3rem; }
  .bl-hero--i .bl-hero__centro { grid-column: auto; order: 0; }
  .bl-hero--i .bl-hero__lato { padding-bottom: 4rem; }
}

/* Altezza della sezione in tutti i layout (15.7). "Media" = com'era; B, C, F, H e J hanno le loro regole qui sopra.
   "Tutto lo schermo" = lo schermo meno l'intestazione e, sul telefono, meno la barra Prenota/Chiama (--barra-h) */
.bl-hero:is(.bl-hero--a, .bl-hero--e, .bl-hero--g, .bl-hero--k).bl-hero--alta { min-height: clamp(34rem, 70vw, 48rem); }
.bl-hero:is(.bl-hero--a, .bl-hero--d, .bl-hero--e, .bl-hero--g, .bl-hero--i, .bl-hero--k).bl-hero--schermo { min-height: calc(100vh - 4.2rem - var(--barra-h)); min-height: calc(100svh - 4.2rem - var(--barra-h)); }
.bl-hero:is(.bl-hero--a, .bl-hero--e, .bl-hero--g, .bl-hero--k):is(.bl-hero--alta, .bl-hero--schermo) { display: flex; align-items: center; }
.bl-hero:is(.bl-hero--a, .bl-hero--e, .bl-hero--g, .bl-hero--k):is(.bl-hero--alta, .bl-hero--schermo) > .wrap { flex: 1; min-width: 0; }
/* Sul telefono anche C (foto sopra, testo sotto) e F (scheda sotto la foto) cambiano altezza: si allunga la foto */
@media (max-width: 899px) {
  .bl-hero--c.bl-hero--alta .bl-hero__media { min-height: 26rem; }
  .bl-hero--c.bl-hero--schermo { min-height: calc(100vh - 4.2rem - var(--barra-h)); min-height: calc(100svh - 4.2rem - var(--barra-h)); grid-template-rows: minmax(18rem, 1fr) auto; }
  .bl-hero--f.bl-hero--alta .bl-hero__fondo { padding-top: 14rem; }
}
/* A: la foto grande si allunga */
.bl-hero--a.bl-hero--alta .bl-hero__media > img { aspect-ratio: 1 / 1; }
.bl-hero--a.bl-hero--schermo .bl-hero__media > img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .bl-hero--a.bl-hero--alta .bl-hero__media > img { aspect-ratio: 5 / 6; }
  .bl-hero--a.bl-hero--schermo .bl-hero__media > img { aspect-ratio: auto; height: max(20rem, calc(100svh - 4.2rem - var(--barra-h) - 12rem)); }
}
/* D: il panorama più alto; a tutto schermo occupa lo spazio sotto il titolo */
.bl-hero--d.bl-hero--alta .bl-hero__media { height: clamp(22rem, 52vw, 40rem); }
.bl-hero--d.bl-hero--schermo { display: flex; flex-direction: column; }
.bl-hero--d.bl-hero--schermo .bl-hero__media { flex: 1 1 0; position: relative; height: auto; min-height: 14rem; }
.bl-hero--d.bl-hero--schermo .bl-hero__media > img { position: absolute; inset: 0; }
/* E: righe del mosaico più alte */
.bl-hero--e.bl-hero--alta .bl-hero__mosaico { grid-auto-rows: clamp(9rem, 19vw, 20rem); }
@media (min-width: 900px) { .bl-hero--e.bl-hero--schermo .bl-hero__mosaico { grid-auto-rows: max(9rem, calc((100svh - 4.2rem - var(--barra-h) - 7.75rem) / 2)); } }
/* G: le due foto più verticali */
.bl-hero--g.bl-hero--alta :is(.bl-hero__g1, .bl-hero__g2) { aspect-ratio: 4 / 3; }
.bl-hero--g.bl-hero--schermo :is(.bl-hero__g1, .bl-hero__g2) { aspect-ratio: 1 / 1; }
/* I: l'arco più alto, sempre appoggiato in fondo alla sezione */
.bl-hero--i.bl-hero--alta .bl-hero__arco { height: clamp(20rem, 46vw, 36rem); }
.bl-hero--i.bl-hero--schermo { display: flex; flex-direction: column; justify-content: flex-end; }
.bl-hero--i.bl-hero--schermo .bl-hero__arco { height: max(18rem, calc(100svh - 4.2rem - var(--barra-h) - 22rem)); }
/* K: la foto tonda più grande */
.bl-hero--k.bl-hero--alta .rs-tondo--pagina { width: clamp(12rem, 30vw, 24rem); }
.bl-hero--k.bl-hero--schermo .rs-tondo--pagina { width: clamp(14rem, 36vw, 30rem); }

/* H: fascia dei numeri con uno sfondo di Aspetto (vuoto = il colore scuro di sempre) */
.bl-hero--h .bl-hero__fascia .bl-hero__numeri { color: var(--titoli); }
.bl-hero--h .bl-hero__fascia .bl-hero__numeri span { color: var(--testo-2); }
.bl-hero--h .bl-hero__fascia.tono--scuro .bl-hero__numeri { color: var(--t-forte); }
.bl-hero--h .bl-hero__fascia.tono--scuro .bl-hero__numeri span { color: var(--t-tenue); }
/* F: scheda con uno sfondo di Aspetto (vuoto = Crema), testi chiari o scuri secondo lo sfondo */
.bl-hero--f .bl-hero__scheda.bl-hero__scheda--fondo { background: var(--fondo); }
.bl-hero--f .bl-hero__scheda--fondo.tono--chiaro :is(.bl-hero__t, .bl-hero__nome) { color: var(--titoli); }
.bl-hero--f .bl-hero__scheda--fondo.tono--chiaro .bl-hero__l { color: var(--inchiostro); }
.bl-hero--f .bl-hero__scheda--fondo.tono--chiaro :is(.bl-hero__p, .bl-hero__i) { color: var(--testo-2); }
.bl-hero--f .bl-hero__scheda--fondo.tono--chiaro :is(.bl-hero__k, .bl-hero__t em) { color: var(--acqua); }
.bl-hero--f .bl-hero__scheda--fondo.tono--scuro :is(.bl-hero__t, .bl-hero__l) { color: var(--t-forte); }
.bl-hero--f .bl-hero__scheda--fondo.tono--scuro :is(.bl-hero__p, .bl-hero__i) { color: var(--t-tenue); }
.bl-hero--f .bl-hero__scheda--fondo.tono--scuro :is(.bl-hero__k, .bl-hero__t em) { color: var(--t-link); }
.bl-hero--f .bl-hero__scheda--fondo.tono--scuro .bl-hero__i { border-top-color: rgba(255, 255, 255, .22); }
.bl-hero--f .bl-hero__scheda--fondo.tono--scuro .vai.vai--vuoto { color: var(--t-forte); box-shadow: inset 0 0 0 2px var(--t-forte); background: transparent; }
.bl-hero--f .bl-hero__scheda--fondo.tono--scuro .vai.vai--link { color: var(--t-forte); }

/* ===================== Testi speciali (9 layout dei blocchi di testo) ===================== */
.bl-sp { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.bl-sp__lato, .bl-sp__corpo, .bl-sp__testa, .bl-sp__scheda { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.bl-sp__k { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acqua); }
.bl-sp .titolo { margin: 0; line-height: 1.02; letter-spacing: -.02em; overflow-wrap: break-word; }
.bl-sp__p { max-width: 62ch; color: var(--testo-2); }
.bl-sp__p > * + * { margin-top: .7rem; }
.bl-sp .bl-btns { margin-top: .3rem; }
.bl-sp .vai { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.05rem; border-radius: 999px; background: var(--sole); color: var(--su-sole); font-weight: 700; text-decoration: none; }
.bl-sp .vai svg { width: 1rem; height: 1rem; }
.bl-sp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blocco.tono--scuro .bl-sp__k { color: var(--t-link); }
.blocco.tono--scuro .bl-sp__p, .blocco.tono--scuro .bl-sp__punto .bl-testo__corpo { color: var(--t-tenue); }

/* T1 colonna centrata */
.bl-sp--t1 { align-items: center; text-align: center; max-width: 46rem; margin-inline: auto; }
.bl-sp--t1 .bl-sp__p { margin-inline: auto; }
.bl-sp--t1 .bl-btns { justify-content: center; justify-self: center; }
.bl-sp--t1 .bl-sp__p ul, .bl-sp--t1 .bl-sp__p ol { text-align: left; display: inline-block; }
.bl-sp__riga { display: block; width: 3rem; height: 3px; border-radius: 2px; background: var(--sole); }

/* T2 titolo a lato */
.bl-sp--t2 { display: grid; gap: 1.4rem; }
.bl-sp--t2 .bl-sp__corpo { padding-top: 1.4rem; border-top: 2px solid var(--riga); }
.bl-sp--t2 .bl-sp__p > :first-child { font-size: var(--t-lg); font-weight: 600; line-height: 1.5; color: var(--inchiostro); }
.blocco.tono--scuro .bl-sp--t2 .bl-sp__p > :first-child { color: var(--t-forte); }
.blocco.tono--scuro .bl-sp--t2 .bl-sp__corpo { border-top-color: rgba(255, 255, 255, .22); }

/* T3 frase grande */
.bl-sp__frase { margin: 0; max-width: 24ch; font-family: var(--display); font-weight: 520; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; color: var(--titoli); overflow-wrap: break-word; }
.bl-sp__frase strong, .bl-sp__frase b { font-weight: inherit; background: linear-gradient(transparent 62%, var(--sole) 62%, var(--sole) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.blocco.tono--scuro .bl-sp__frase { color: var(--t-forte); }
.blocco.tono--scuro .bl-sp__frase strong, .blocco.tono--scuro .bl-sp__frase b { background: none; color: var(--sole); }
.bl-sp--t3 { gap: 1.8rem; }
.bl-sp__fondo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.bl-sp__fondo .bl-sp__p { max-width: 52ch; }

/* T4 elenco con spunte */
.bl-sp--t4 { display: grid; gap: 2rem; align-items: center; }
.bl-sp__spunte { list-style: none; margin: 0; padding: clamp(1.2rem, 1rem + 1vw, 1.9rem) clamp(1.2rem, 1rem + 1.2vw, 2.1rem); display: grid; gap: .9rem; border-radius: 20px; background: #fff; color: var(--inchiostro); box-shadow: 0 0 0 1px var(--riga), 0 20px 40px -30px rgba(15, 46, 52, .5); font-weight: 600; }
.bl-sp__spunte li { display: flex; align-items: center; gap: .85rem; }
.bl-sp__spunta { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--cielo); color: var(--lago); }
.bl-sp__spunta svg { width: 1rem; height: 1rem; }

/* T5 due colonne · T6 tre punti numerati */
.bl-sp--t5, .bl-sp--t6 { gap: 2rem; align-items: stretch; }
.bl-sp__punti { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.bl-sp__punto { display: flex; flex-direction: column; gap: .6rem; }
.bl-sp__pt { margin: 0; font-family: var(--display); font-weight: 620; font-size: var(--t-xl); line-height: 1.1; color: var(--titoli); }
.blocco.tono--scuro .bl-sp__pt { color: var(--t-forte); }
.bl-sp__punto .bl-testo__corpo { color: var(--testo-2); }
.bl-sp--t5 .bl-sp__punti { padding-top: 1.6rem; border-top: 2px solid var(--riga); }
.blocco.tono--scuro .bl-sp--t5 .bl-sp__punti { border-top-color: rgba(255, 255, 255, .22); }
.bl-sp--t6 .bl-sp__testa { gap: 1rem 3rem; }
.bl-sp--t6 .bl-sp__testa > div { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.bl-sp--t6 .bl-sp__punto { padding: 1.6rem; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 46, 52, .1); }
.blocco.tono--scuro .bl-sp--t6 .bl-sp__punto { color: var(--inchiostro); }
.blocco.tono--scuro .bl-sp--t6 .bl-sp__pt { color: var(--titoli); }
.blocco.tono--scuro .bl-sp--t6 .bl-sp__punto .bl-testo__corpo { color: var(--testo-2); }
.bl-sp__num { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--sole); }
.bl-sp--t5 .bl-btns, .bl-sp--t6 .bl-btns { align-self: flex-start; }

/* T7 testo sulla foto */
.blocco.blocco--sp-t7 { padding-block: 0; }
.bl-sp--t7 { position: relative; display: block; min-height: clamp(28rem, 48vw, 38rem); background: var(--lago-scuro); }
.bl-sp--t7 > .bl-sp__sfondo, .bl-sp--t7 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-sp--t7 > .wrap { position: relative; display: flex; align-items: center; min-height: inherit; padding-block: 2.5rem; }
.bl-sp--t7.bl-sp--senza-foto { min-height: 0; background: none; }
.bl-sp__scheda { width: min(100%, 32rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 22px; background: var(--sp-sch, var(--calce)); color: var(--inchiostro); box-shadow: 0 30px 60px -30px rgba(15, 46, 52, .6); }
.bl-sp__scheda .titolo { color: var(--titoli); }
.bl-sp__scheda .bl-sp__k { color: var(--acqua); }
.bl-sp__scheda .bl-sp__p { color: var(--testo-2); }

/* T8 due foto sfalsate */
.bl-sp--t8 { display: grid; gap: 2.4rem; align-items: center; }
.bl-sp__foto { position: relative; display: block; aspect-ratio: 6 / 5; width: 100%; }
.bl-sp__f1 { position: absolute; left: 0; top: 0; width: 64%; height: 82%; border-radius: 20px; overflow: hidden; }
.bl-sp__f2 { position: absolute; right: 0; bottom: 0; width: 48%; height: 64%; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 8px var(--fondo, var(--calce)); }
.bl-sp__foto--una { aspect-ratio: 4 / 3; }
.bl-sp__foto--una > div { position: static; width: 100%; height: 100%; box-shadow: none; }

/* T9 foto rotonda + firma */
.bl-sp--t9 { display: grid; gap: 2rem; align-items: center; justify-items: start; }
.bl-sp__tondo { width: min(100%, 17rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px var(--calce), 0 20px 40px -24px rgba(15, 46, 52, .5); }
.bl-sp--t9 .bl-sp__frase { max-width: 30ch; font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.2; }
.bl-sp__firma { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; }
.bl-sp__firma b { font-weight: 800; }
.bl-sp__firma span:not(.bl-sp__linea) { color: var(--testo-2); }
.blocco.tono--scuro .bl-sp__firma span:not(.bl-sp__linea) { color: var(--t-tenue); }
.bl-sp__linea { width: 2.5rem; height: 3px; border-radius: 2px; background: var(--sole); }

@media (min-width: 900px) {
  .bl-sp--t2 { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4.5rem; align-items: start; }
  .bl-sp--t2 .bl-sp__corpo { margin-top: 2rem; }
  .bl-sp--t4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4.5rem; }
  .bl-sp--t5 .bl-sp__testa { max-width: 48rem; }
  .bl-sp--t5 .bl-sp__punti { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .bl-sp--t6 .bl-sp__testa { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .bl-sp--t6 .bl-sp__testa > div:first-child { max-width: 28rem; }
  .bl-sp--t6 .bl-sp__testa .bl-sp__p { max-width: 46ch; }
  .bl-sp--t6 .bl-sp__punti { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .bl-sp--t8 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; }
  .bl-sp--t9 { grid-template-columns: auto minmax(0, 1fr); gap: 5rem; padding-inline: clamp(0rem, 4vw, 2.5rem); }
  .bl-sp__tondo { width: clamp(14rem, 24vw, 21rem); }
  .bl-sp--t8:not(:has(.bl-sp__foto)), .bl-sp--t9:not(:has(.bl-sp__tondo)) { grid-template-columns: minmax(0, 1fr); }
}

/* ===================== Galleria (layout 2–9; il mosaico resta com'era) ===================== */
.gal { display: grid; gap: 1.4rem; }
.gal .foto { position: relative; border-radius: 14px; }
.gal .foto__btn { border-radius: 14px; }
.gal ul { list-style: none; margin: 0; padding: 0; }
.gal__testa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.gal__titoli { display: grid; gap: .6rem; max-width: 46rem; }
.gal__titoli .titolo, .gal__lato .titolo, .gal__scheda .titolo, .gal__testa .titolo { margin: 0; line-height: 1.02; }
.gal .sottotitolo { margin: 0; color: var(--testo-2); }
.gal__k { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acqua); }
.gal__azioni { display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; }
.gal__frecce { display: flex; gap: .5rem; }
.gal__freccia { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 0; border-radius: 50%; background: var(--lago); color: var(--calce); cursor: pointer; transition: background-color .2s, opacity .2s; }
.gal__freccia svg { width: 1.15rem; height: 1.15rem; }
.gal__freccia:hover { background: var(--lago-scuro); }
.gal__freccia:disabled { background: #fff; color: #9DBFBA; box-shadow: 0 0 0 1px var(--riga); cursor: default; }
.gal__freccia:focus-visible, .gal__mini:focus-visible, .gal__nastro:focus-visible, .gal__striscia:focus-visible { outline: 3px solid var(--sole); outline-offset: 3px; }
.blocco.tono--scuro .gal__k { color: var(--t-link); }
.blocco.tono--scuro .gal .sottotitolo, .blocco.tono--scuro .gal__dida, .blocco.tono--scuro .gal__conta span { color: var(--t-tenue); }
.blocco.tono--scuro .gal__conta b { color: var(--t-forte); }
.blocco.tono--scuro .gal__freccia { background: var(--calce); color: var(--inchiostro); }
.blocco.tono--scuro .gal__freccia:disabled { background: transparent; color: var(--t-tenue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* G2 griglia regolare · G7 filtri per casa */
.gal__griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gal__griglia .foto { aspect-ratio: 1; }
.gal__griglia--tag .foto { aspect-ratio: 4 / 3; }
.gal__tag { position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(251, 248, 241, .93); color: var(--inchiostro); font-size: .78rem; font-weight: 700; pointer-events: none; }
.gal__tag i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }
.gal .filtri { margin-top: -.4rem; }

/* G3 carosello */
.gal__nastro { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: thin;
  margin-inline: calc(var(--gutter) * -1) calc(50% - 50vw); padding: 0 var(--gutter) .6rem; }
.gal__nastro .foto { flex: none; height: clamp(17rem, 36vw, 27rem); aspect-ratio: var(--r, 3 / 4); scroll-snap-align: start; }
.gal__nastro .foto[hidden] { display: none; }

/* G4 foto grande + miniature */
.gal--g4 { gap: 1.6rem; }
.gal__lato { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; min-width: 0; }
.gal__stato { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.gal__conta { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--titoli); }
.gal__conta span { color: #9DBFBA; }
.gal__dida { margin: 0; min-height: 1.5em; font-size: var(--t-sm); color: var(--testo-2); }
.gal__palco { display: grid; gap: .7rem; min-width: 0; }
.gal__scena { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--cielo); }
.gal__scena .foto { position: absolute; inset: 0; border-radius: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.gal__scena .foto.is-on { opacity: 1; visibility: visible; }
.gal__scena .foto__btn { border-radius: 0; }
.gal__miniature { position: relative; display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .2rem .45rem; scrollbar-width: thin; }
.gal__miniature li { flex: none; }
.gal__mini { all: unset; display: block; width: 5.4rem; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .65; transition: opacity .2s, box-shadow .2s; }
.gal__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__mini:hover { opacity: 1; }
.gal__mini[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--sole); }

/* G5 colonne sfalsate */
.gal__colonne { columns: 2; column-gap: .6rem; }
.gal__colonne .foto { break-inside: avoid; margin-bottom: .6rem; aspect-ratio: var(--r, 4 / 5); }

/* G6 striscia a tutta larghezza */
.blocco.blocco--gal-g6 { padding-bottom: 0; }
.gal--g6 { gap: 2rem; }
.gal__testa--centro { flex-direction: column; align-items: center; text-align: center; gap: .7rem; }
.gal__link { font-weight: 700; color: var(--lago); text-decoration: underline; text-decoration-color: var(--sole); text-decoration-thickness: 2px; text-underline-offset: 5px; display: inline-flex; align-items: center; gap: .3rem; }
.gal__link svg { width: 1rem; height: 1rem; }
.blocco.tono--scuro .gal__link { color: var(--sole-chiaro); }
.gal__striscia { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gal__striscia::-webkit-scrollbar { display: none; }
.gal__striscia .foto { flex: none; height: clamp(14rem, 30vw, 24rem); aspect-ratio: var(--r, 1); border-radius: 0; }
.gal__striscia .foto__btn { border-radius: 0; }

/* G8 bento */
.gal__bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 20vw, 14rem); gap: .7rem; }
.gal__bento .foto { height: 100%; }
.gal__bento .gal__grande { grid-column: span 2; grid-row: span 2; border-radius: 20px; }
.gal__scheda { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .8rem; padding: clamp(1.2rem, 1rem + 1.4vw, 2rem); border-radius: 20px; background: var(--cielo); color: var(--inchiostro); }
.sfondo--cielo .gal__scheda { background: var(--calce); }
.gal__scheda .titolo { color: var(--titoli); }
.gal__scheda .gal__k { color: var(--acqua); }
.gal__scheda .sottotitolo { color: var(--testo-2); }

/* G9 testo a lato + foto sfalsate */
.gal--g9 { gap: 2rem; }
.gal--g9 .gal__lato { justify-content: center; align-items: flex-start; gap: 1rem; }
.gal__sfalsate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.gal__col { display: contents; }
.gal__sfalsate .foto { aspect-ratio: var(--r, 4 / 5); }

@media (min-width: 600px) {
  .gal__griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gal__colonne { columns: 3; }
}
@media (min-width: 900px) {
  .gal__griglia { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
  .gal__colonne { columns: 4; column-gap: .9rem; }
  .gal__colonne .foto { margin-bottom: .9rem; }
  .gal--g4 { grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr); gap: 3rem; align-items: stretch; }
  .gal__bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
  .gal__striscia .foto { flex: 1 0 auto; }
  .gal--g9 { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .gal__sfalsate { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: .9rem; }
  .gal__col { display: flex; flex-direction: column; gap: .9rem; }
  .gal__col:nth-child(1) { padding-top: 3rem; }
  .gal__col:nth-child(3) { padding-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .gal__scena .foto, .gal__mini, .gal__freccia { transition: none; } }

/* Blocco "Codice HTML": tipografia del sito per l'HTML incollato */
.bl-html { max-width: none; }
.bl-html--testo { max-width: 70ch; }
.bl-html :is(h2, h3, h4, h5, h6) { font-family: var(--display); color: var(--titoli); line-height: 1.1; letter-spacing: -.015em; margin-top: 1.6rem; }
.bl-html > :first-child { margin-top: 0; }
.bl-html h2 { font-size: var(--t-2xl); } .bl-html h3 { font-size: var(--t-xl); } .bl-html :is(h4, h5, h6) { font-size: var(--t-lg); }
.bl-html img { max-width: 100%; height: auto; border-radius: var(--tondo); display: block; }
.bl-html figure { margin: 1.2rem 0; } .bl-html figcaption { margin-top: .4rem; font-size: var(--t-sm); color: var(--testo-2); }
.bl-html a { color: var(--lago); text-underline-offset: 3px; }
.bl-html ol { padding-left: 1.3rem; }
.bl-html blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--sole); font-family: var(--display); font-size: var(--t-lg); color: var(--inchiostro); }
.bl-html table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); display: block; overflow-x: auto; }
.bl-html :is(th, td) { padding: .55rem .7rem; border-bottom: 1px solid var(--riga); text-align: left; vertical-align: top; }
.bl-html th { font-weight: 700; color: var(--inchiostro); }
.bl-html details { padding: .8rem 1rem; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--riga); }
.bl-html summary { cursor: pointer; font-weight: 700; color: var(--inchiostro); }
.bl-html hr { border: 0; border-top: 1px solid var(--riga); margin: 1.6rem 0; }
.blocco.tono--scuro .bl-html :is(h2, h3, h4, h5, h6, th, blockquote, summary) { color: var(--t-forte); }
.blocco.tono--scuro .bl-html a { color: var(--t-link); }
/* Blocco "Script / widget" */
.bl-script { min-height: 2rem; }
.bl-script iframe { display: block; max-width: 100%; border: 0; border-radius: var(--tondo); }
.bl-script__attesa { margin: 0; padding: 1rem 1.2rem; border-radius: var(--tondo); background: var(--cielo); color: var(--inchiostro); font-size: var(--t-sm); }

/* Layout personalizzato: il suo CSS vale solo qui dentro; "contain" impedisce che qualcosa esca sopra il resto della pagina */
.cp { position: relative; contain: layout; isolation: isolate; min-width: 0; }
.cp img { max-width: 100%; height: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* 3b. MENU: gruppi senza foto, sottovoci e layout su computer (Pannello → Menu) --------- */
.mega--lista { list-style: none; margin: 0; left: -.4rem; width: auto; min-width: 15rem; padding: .45rem; }
.mega__voce { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--inchiostro); text-decoration: none; font-weight: 600; white-space: nowrap; }
.mega__voce:hover, .mega__voce[aria-current="page"] { background: var(--cielo); }
.mega__voce--tutte { color: var(--lago); border-bottom: 1px solid var(--riga); border-radius: 10px 10px 0 0; margin-bottom: .25rem; }
.menu__voce-gruppo { display: block; padding: .85rem 0 .3rem; font-family: var(--display); font-weight: 560; font-size: 1.3rem; color: var(--inchiostro); border-top: 1px solid var(--riga); }
.menu__link .menu__voce-gruppo:first-child { border-top: 0; }
.menu__sub { display: grid; padding: 0 0 .6rem .9rem; border-bottom: 1px solid var(--riga); }
.menu__link .menu__sub a { font-family: var(--testo); font-size: 1rem; font-weight: 550; padding: .45rem 0; border: 0; color: var(--testo-2); }
.menu__link .menu__sub a[aria-current="page"] { color: var(--lago); }

.mpc { display: none; position: fixed; inset: 0; z-index: 30; font-family: var(--testo); color: var(--inchiostro); animation: mpc-in .35s var(--ease); }
@keyframes mpc-in { from { opacity: 0; } to { opacity: 1; } }
.mpc a { text-decoration: none; color: inherit; }
.mpc__marchio { font-family: var(--display); font-weight: 620; font-size: 1.15rem; color: var(--titoli); }
.mpc__testa { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mpc__chiudi { display: inline-flex; align-items: center; gap: .45rem; height: 2.9rem; padding: 0 1rem; border: 0; border-radius: 12px; background: var(--lago-scuro); color: var(--calce); font: 650 .95rem var(--bottoni, var(--testo)); cursor: pointer; transition: background-color .2s; }
.mpc__chiudi:hover { background: var(--lago); }
.mpc__chiudi svg { width: 1.05rem; height: 1.05rem; }
.mpc__lista, .mpc__sub { list-style: none; margin: 0; padding: 0; }
.mpc__sub a { color: var(--testo-2); font-weight: 550; }
.mpc__sub a:hover, .mpc__sub a[aria-current="page"] { color: var(--lago); }
.mpc__cta { justify-content: center; gap: .5rem; }
.mpc__cta svg { width: 1.05rem; height: 1.05rem; }
.mpc .lingue { margin: 0; }
.mpc :focus-visible { outline: 3px solid var(--sole); outline-offset: 3px; border-radius: 6px; }

/* Cassetto */
.mpc--cassetto { justify-content: flex-end; }
.mpc__velo { position: absolute; inset: 0; background: rgba(15, 46, 52, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); cursor: pointer; }
.mpc--cassetto .mpc__lato { position: relative; display: flex; flex-direction: column; width: min(440px, 92vw); height: 100%; padding: 1.4rem 2rem 1.6rem; background: var(--calce); box-shadow: -30px 0 60px -20px rgba(15, 46, 52, .5); overflow-y: auto; overscroll-behavior: contain; animation: mpc-lato .45s var(--ease); }
@keyframes mpc-lato { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.mpc--cassetto .mpc__testa { margin-bottom: 1.8rem; }
.mpc--cassetto .mpc__voce { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--riga); font-family: var(--display); font-weight: 560; font-size: 1.4rem; letter-spacing: -.01em; }
.mpc--cassetto .mpc__lista > li:first-child > .mpc__voce { border-top: 1px solid var(--riga); }
.mpc--cassetto .mpc__voce svg { width: 1.05rem; height: 1.05rem; color: var(--acqua); transition: transform .2s; }
.mpc--cassetto .mpc__voce:hover svg { transform: translateX(3px); }
.mpc--cassetto .mpc__voce.is-cur { color: var(--lago); }
.mpc--cassetto .mpc__voce.is-cur::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sole); margin-right: -.4rem; }
.mpc--cassetto .mpc__voce.is-cur { justify-content: flex-start; } .mpc--cassetto .mpc__voce.is-cur svg { margin-left: auto; }
.mpc--cassetto .mpc__sub { display: grid; padding: .3rem 0 .7rem 1rem; border-bottom: 1px solid var(--riga); }
.mpc--cassetto .mpc__sub a { padding: .3rem 0; }
.mpc--cassetto .mpc__fondo { margin-top: auto; padding-top: 1.6rem; display: grid; gap: .8rem; }
.mpc--cassetto .mpc__cta { min-height: 3.2rem; }
.mpc__riga { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .92rem; font-weight: 650; }
.mpc__riga a { display: inline-flex; align-items: center; gap: .5rem; } .mpc__riga svg { width: 1.1rem; height: 1.1rem; color: var(--lago); }
.mpc--cassetto .lingue a, .mpc--cassetto .lingue span { width: 2.3rem; height: 2.3rem; }

/* Editoriale */
.mpc--editoriale { flex-direction: column; background: var(--lago-scuro); color: var(--calce); }
.mpc--editoriale .mpc__testa { padding: 1.2rem 4.5rem; }
.mpc--editoriale .mpc__marchio { color: var(--calce); }
.mpc--editoriale .mpc__chiudi { background: var(--sole); color: var(--su-sole, var(--inchiostro)); }
.mpc--editoriale .mpc__corpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; padding: .5rem 4.5rem 1.5rem; }
.mpc--editoriale .mpc__lista { align-self: center; overflow-y: auto; max-height: 100%; }
.mpc--editoriale .mpc__grande { display: inline-flex; align-items: baseline; gap: .9rem; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1rem + 2.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.03em; color: rgba(251, 248, 241, .4); transition: color .25s; }
.mpc__grande small { font-family: var(--testo); font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: rgba(251, 248, 241, .32); }
.mpc--editoriale .is-on > .mpc__grande, .mpc--editoriale .mpc__grande:hover, .mpc--editoriale .mpc__grande:focus-visible, .mpc--editoriale .mpc__grande[aria-current="page"] { color: var(--calce); }
.mpc--editoriale .is-on > .mpc__grande small { color: var(--sole); }
.mpc--editoriale .mpc__sub { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin: .1rem 0 .6rem; }
.mpc--editoriale .mpc__sub a { color: rgba(251, 248, 241, .7); font-size: .98rem; } .mpc--editoriale .mpc__sub a:hover { color: var(--sole); }
.mpc__palco { position: relative; border-radius: 22px; overflow: hidden; background: rgba(251, 248, 241, .06); }
.mpc__foto { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .45s var(--ease); }
.mpc__foto.is-on { opacity: 1; }
.mpc__foto img, .mpc__foto picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.mpc__foto figcaption { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; display: grid; gap: .2rem; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(251, 248, 241, .94); color: var(--testo-2); font-size: .92rem; line-height: 1.45; }
.mpc__foto figcaption b { font-family: var(--display); font-size: 1.2rem; color: var(--titoli); }
.mpc--editoriale .mpc__fondo { display: flex; align-items: center; gap: 2.2rem; padding: 1.1rem 4.5rem; border-top: 1px solid rgba(251, 248, 241, .14); font-size: .92rem; color: rgba(251, 248, 241, .85); }
.mpc--editoriale .mpc__fondo > a { display: inline-flex; align-items: center; gap: .5rem; } .mpc--editoriale .mpc__fondo svg { width: 1.05rem; height: 1.05rem; }
.mpc--editoriale .mpc__fondo small { font-size: .92rem; opacity: .75; }
.mpc__spazio { margin-left: auto; }
.mpc--editoriale .lingue a, .mpc--editoriale .lingue span { color: var(--calce); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 241, .3); }
.mpc--editoriale .lingue span { background: var(--calce); color: var(--lago-scuro); }
.mpc--editoriale .mpc__fondo .mpc__cta { padding: .7rem 1.2rem; min-height: 0; }

/* Diviso */
.mpc--diviso { background: var(--calce); }
.mpc__sx { position: relative; flex: 0 0 42%; display: flex; flex-direction: column; padding: 1.3rem 3.5rem 2.6rem 4.5rem; background: var(--cielo); overflow: hidden; }
.mpc__sx--foto { color: #fff; background: var(--lago-scuro); }
.mpc__sfondo, .mpc__sx--foto picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mpc__sx--foto picture img { width: 100%; height: 100%; object-fit: cover; }
.mpc__sx--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 46, 52, .35), rgba(15, 46, 52, .82)); }
.mpc__sx > :not(img):not(picture) { position: relative; z-index: 1; }
.mpc__sx--foto .mpc__marchio, .mpc__sx--foto .mpc__titolo { color: #fff; } .mpc__sx--foto .mpc__sotto, .mpc__sx--foto .mpc__contatti { color: rgba(255, 255, 255, .85); }
.mpc__frase { margin-top: auto; }
.mpc__titolo { margin: 0 0 .8rem; font-family: var(--display); font-weight: 620; font-size: clamp(2rem, 1.2rem + 1.6vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; color: var(--titoli); }
.mpc__sotto { margin: 0 0 1.5rem; max-width: 34ch; font-size: 1.05rem; color: var(--testo-2); }
.mpc--diviso .mpc__cta { display: inline-flex; min-height: 3.2rem; padding-inline: 1.4rem; }
.mpc__contatti { display: grid; gap: .35rem; margin-top: 2rem; font-size: .95rem; color: var(--testo-2); }
.mpc__contatti a { display: inline-flex; align-items: center; gap: .55rem; } .mpc__contatti svg { width: 1.05rem; height: 1.05rem; flex: none; }
.mpc__contatti small { font-size: .95rem; }
.mpc__dx { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 4.5rem 2.4rem 3.5rem; overflow-y: auto; }
.mpc--diviso .mpc__testa { justify-content: flex-end; }
.mpc--diviso .mpc__lista { margin: auto 0; columns: 2; column-gap: 2.5rem; }
.mpc--diviso .mpc__lista > li { break-inside: avoid; }
.mpc--diviso .mpc__voce { display: block; padding: .75rem 0; border-bottom: 1px solid var(--riga); font-family: var(--display); font-weight: 560; font-size: 1.4rem; color: var(--inchiostro); transition: color .2s; }
.mpc--diviso .mpc__voce:hover, .mpc--diviso .mpc__voce.is-cur { color: var(--lago); }
.mpc--diviso .mpc__sub { display: flex; flex-wrap: wrap; gap: .1rem 1rem; padding: .4rem 0 .6rem; font-size: .95rem; }
.mpc__ev { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; margin-top: 1.6rem; padding: .8rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--riga), 0 18px 40px -26px rgba(15, 46, 52, .5); transition: transform .2s var(--molla); }
a.mpc__ev:hover { transform: translateY(-2px); }
.mpc__ev-foto { display: block; width: 9rem; aspect-ratio: 4 / 3; border-radius: 11px; overflow: hidden; }
.mpc__ev-foto img, .mpc__ev-foto picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.mpc__ev-testo { display: grid; gap: .15rem; }
.mpc__ev-testo small { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--acqua); }
.mpc__ev-testo b { font-family: var(--display); font-size: 1.25rem; color: var(--titoli); }
.mpc__ev-testo span { font-size: .9rem; color: var(--testo-2); }
.mpc--diviso .mpc__lingue { margin-top: 1.3rem; }

/* Centrato */
.mpc--centrato { flex-direction: column; background: rgba(251, 248, 241, .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mpc--centrato .mpc__testa { padding: 1.2rem 4.5rem; }
.mpc--centrato .mpc__lista { margin: auto; display: grid; justify-items: center; gap: .15rem; text-align: center; overflow-y: auto; padding: 1rem; }
.mpc--centrato .mpc__voce { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1rem + 2.3vw, 3.1rem); line-height: 1.15; letter-spacing: -.03em; color: var(--titoli); transition: color .2s; }
.mpc--centrato .mpc__voce:hover { color: var(--lago); }
.mpc--centrato .mpc__voce.is-cur { color: var(--lago); text-decoration: underline; text-decoration-color: var(--sole); text-decoration-thickness: 4px; text-underline-offset: .18em; }
.mpc--centrato .mpc__sub { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem 1.1rem; margin-bottom: .5rem; }
.mpc--centrato .mpc__fondo { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .8rem; padding: 0 1rem 2.4rem; }
.mpc--centrato .mpc__fondo > a:not(.btn) { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--riga); font-weight: 650; color: var(--lago-scuro); }
.mpc--centrato .mpc__fondo small { display: none; }
.mpc--centrato .mpc__fondo svg { width: 1.05rem; height: 1.05rem; }
.mpc--centrato .mpc__cta { min-height: 2.9rem; border-radius: 999px; padding-inline: 1.3rem; }
@media (prefers-reduced-motion: reduce) { .mpc, .mpc--cassetto .mpc__lato { animation: none; } .mpc__foto { transition: none; } }

/* 3c. MENU: effetti sulle voci in fila (Pannello → Menu → "Animazione delle voci") ------- */
.navtop__t { position: relative; display: inline-block; }
.navtop__t > span { display: block; }
.navtop__link, .navtop__case > summary { isolation: isolate; }
/* Effetti senza sfondo: al passaggio cambia il colore, il resto lo fa l'effetto */
:is(.menu-fx-linea, .menu-fx-centro, .menu-fx-evidenziatore, .menu-fx-sale, .menu-fx-punto, .menu-fx-nessuno) :is(.navtop__link, .navtop__case > summary):is(:hover, :focus-visible),
:is(.menu-fx-linea, .menu-fx-centro, .menu-fx-evidenziatore, .menu-fx-sale, .menu-fx-punto, .menu-fx-nessuno) .navtop__case[open] > summary { background: transparent; color: var(--lago); }
/* Linea che scorre / dal centro */
:is(.menu-fx-linea, .menu-fx-centro) :is(.navtop__link, .navtop__case > summary)::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--sole);
  transform: scaleX(0); transform-origin: left center; transition: transform .38s var(--ease);
}
.menu-fx-centro :is(.navtop__link, .navtop__case > summary)::after { transform-origin: center; }
:is(.menu-fx-linea, .menu-fx-centro) :is(.navtop__link, .navtop__case > summary):is(:hover, :focus-visible, [aria-current="page"], .attivo)::after,
:is(.menu-fx-linea, .menu-fx-centro) .navtop__case[open] > summary::after { transform: scaleX(1); }
/* Evidenziatore */
.menu-fx-evidenziatore :is(.navtop__link, .navtop__case > summary)::before {
  content: ""; position: absolute; z-index: -1; left: .5rem; right: .5rem; top: 38%; height: .95em; border-radius: 4px; background: var(--sole-chiaro); background: color-mix(in srgb, var(--sole) 55%, transparent);
  transform: scaleX(0) skewX(-8deg); transform-origin: left center; transition: transform .4s var(--ease);
}
.menu-fx-evidenziatore :is(.navtop__link, .navtop__case > summary):is(:hover, :focus-visible, [aria-current="page"], .attivo)::before,
.menu-fx-evidenziatore .navtop__case[open] > summary::before { transform: scaleX(1) skewX(-8deg); }
.menu-fx-evidenziatore :is(.navtop__link, .navtop__case > summary)::after { display: none; }
/* Testo che sale: la parola scorre in alto e ne arriva una uguale colorata (la copia è nascosta ai lettori di schermo: è solo grafica) */
.menu-fx-sale .navtop__t { overflow: hidden; vertical-align: top; }
.menu-fx-sale .navtop__t::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; left: 0; top: 100%; color: var(--lago); }
.menu-fx-sale .navtop__t > span, .menu-fx-sale .navtop__t::after { transition: transform .42s var(--ease); }
.menu-fx-sale :is(.navtop__link, .navtop__case > summary):is(:hover, :focus-visible) .navtop__t > span,
.menu-fx-sale :is(.navtop__link, .navtop__case > summary):is(:hover, :focus-visible) .navtop__t::after,
.menu-fx-sale .navtop__case[open] > summary .navtop__t > span, .menu-fx-sale .navtop__case[open] > summary .navtop__t::after { transform: translateY(-100%); }
/* Puntino */
.menu-fx-punto :is(.navtop__link, .navtop__case > summary)::after {
  content: ""; position: absolute; left: 50%; right: auto; bottom: .1rem; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sole);
  transform: scale(0); transition: transform .3s var(--molla);
}
.menu-fx-punto .navtop__case > summary::after { margin-left: -.9rem; }
.menu-fx-punto :is(.navtop__link, .navtop__case > summary):is(:hover, :focus-visible, [aria-current="page"], .attivo)::after,
.menu-fx-punto .navtop__case[open] > summary::after { transform: scale(1); }
/* Comparsa a cascata delle voci all'apertura della pagina */
@keyframes voce-giu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
[data-anim].menu-ingresso .navtop > * { animation: voce-giu .6s var(--ease) both; }
[data-anim].menu-ingresso .navtop > :nth-child(1) { animation-delay: .08s; } [data-anim].menu-ingresso .navtop > :nth-child(2) { animation-delay: .14s; }
[data-anim].menu-ingresso .navtop > :nth-child(3) { animation-delay: .2s; } [data-anim].menu-ingresso .navtop > :nth-child(4) { animation-delay: .26s; }
[data-anim].menu-ingresso .navtop > :nth-child(5) { animation-delay: .32s; } [data-anim].menu-ingresso .navtop > :nth-child(6) { animation-delay: .38s; }
[data-anim].menu-ingresso .navtop > :nth-child(7) { animation-delay: .44s; } [data-anim].menu-ingresso .navtop > :nth-child(n+8) { animation-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  [data-anim].menu-ingresso .navtop > * { animation: none; }
  .navtop__link::after, .navtop__link::before, .navtop__case > summary::after, .navtop__case > summary::before, .navtop__t > span, .navtop__t::after { transition: none !important; }
}


/* Testo sulla foto (layout 7): posizione, riquadro (colore, trasparenza, vetro, testi) e velo — Pannello → blocco "Testo speciale" */
.bl-sp--t7 > .bl-sp__velo { position: absolute; inset: 0; pointer-events: none; }
.bl-sp--t7 > .wrap { z-index: 1; }
.bl-sp--pos-alto-sx > .wrap, .bl-sp--pos-alto-centro > .wrap, .bl-sp--pos-alto-dx > .wrap { align-items: flex-start; }
.bl-sp--pos-basso-sx > .wrap, .bl-sp--pos-basso-centro > .wrap, .bl-sp--pos-basso-dx > .wrap { align-items: flex-end; }
.bl-sp--pos-alto-centro > .wrap, .bl-sp--pos-centro > .wrap, .bl-sp--pos-basso-centro > .wrap { justify-content: center; }
.bl-sp--pos-alto-dx > .wrap, .bl-sp--pos-centro-dx > .wrap, .bl-sp--pos-basso-dx > .wrap { justify-content: flex-end; }
:is(.bl-sp--pos-alto-centro, .bl-sp--pos-centro, .bl-sp--pos-basso-centro) .bl-sp__scheda { align-items: center; text-align: center; }
:is(.bl-sp--pos-alto-centro, .bl-sp--pos-centro, .bl-sp--pos-basso-centro) .bl-sp__scheda :is(ul, ol) { text-align: left; }
.bl-sp__scheda--chiari { color: var(--calce); }
.bl-sp__scheda--chiari .titolo { color: var(--calce); }
.bl-sp__scheda--chiari .bl-sp__k { color: var(--sole); }
.bl-sp__scheda--chiari .bl-sp__p { color: var(--spuma); }
.bl-sp__scheda--chiari .bl-sp__p a { color: inherit; }
.bl-sp__scheda--leggera { box-shadow: none; }
.bl-sp__scheda--leggera.bl-sp__scheda--chiari { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.bl-sp__scheda--nuda { padding-inline: 0; }
.bl-sp__scheda--vetro { -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }

/* Font dei bottoni (Aspetto → Font → Bottoni): senza scelta resta quello dei testi */
.menu summary, .linkbtn, .filtro { font-family: var(--bottoni, inherit); }

/* ===================== Ristorante (app/lib/risto.php) e nuovi layout ===================== */
:root { --rs-tondo: 26px; }

/* Intestazione e piè di pagina colorati (Aspetto → Intestazione e piè di pagina) */
.header.header--tinta, .menu-aperto .header.header--tinta { background: var(--testata); }
.header--scuro .marchio { color: var(--calce); }
.header--scuro .navtop__link, .header--scuro .navtop__case > summary { color: rgba(255, 255, 255, .88); }
.header--scuro .navtop__link:hover, .header--scuro .navtop__case > summary:hover, .header--scuro .navtop__case[open] > summary { background: rgba(255, 255, 255, .1); color: #fff; }
.header--scuro .navtop__link[aria-current="page"], .header--scuro .navtop__case > summary.attivo { color: #fff; }
.header--scuro .lingua > summary { color: var(--calce); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .32); }
.header--scuro .lingua > summary:hover, .header--scuro .lingua[open] > summary { background: rgba(255, 255, 255, .1); }
.header--scuro .menu summary { background: rgba(255, 255, 255, .14); color: var(--calce); }
.header--scuro .menu summary:hover, .header--scuro .menu[open] summary { background: rgba(255, 255, 255, .24); }
.header--scuro.scrollato { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.footer.footer--tinta { background: var(--piede); --spuma: color-mix(in srgb, var(--calce) 70%, var(--piede)); }
.footer--tinta .onda path { fill: var(--piede); }
.footer--tinta .footer__sabbia { background: color-mix(in srgb, var(--piede) 84%, #000); }
.footer--tinta.footer--chiaro { color: var(--inchiostro); --spuma: var(--testo-2); }
.footer--tinta.footer--chiaro a { color: var(--inchiostro); }
.footer--tinta.footer--chiaro h2 { color: var(--lago); }

/* Pezzi comuni */
.rs-k { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lago); }
.blocco.tono--scuro .rs-k { color: var(--sole); }
.rs-testa { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; max-width: 48rem; margin-bottom: 2rem; }
.rs-testa .titolo { margin: 0; }
.rs-testa .sottotitolo { margin: 0; }
.titolo em, .bl-hero--k .bl-hero__t em { font-style: normal; color: var(--lago); }
.blocco.tono--scuro .titolo em, .blocco.tono--scuro .bl-hero--k .bl-hero__t em { color: var(--sole); }
.rs-stato { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-size: .9rem; font-weight: 600; }
.rs-lampada { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--sole); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sole) 28%, transparent); }
.rs-stato.is-aperto .rs-lampada { background: #5DBB63; box-shadow: 0 0 0 4px rgba(93, 187, 99, .28); }
.rs-nota { margin: 1.4rem 0 0; font-size: var(--t-sm); color: var(--testo-2); max-width: 64ch; }
.rs-vai { margin: 1.4rem 0 0; }
.blocco.tono--scuro .rs-nota { color: var(--t-tenue); }

/* Menù del giorno: lavagna con i giorni */
.rs-tabs { display: none; }
.rs-mg--lavagna.is-pronta .rs-tabs { display: flex; gap: .2rem; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.6rem; padding: .3rem; border-radius: 999px; background: color-mix(in srgb, var(--inchiostro) 6%, transparent); }
.rs-tabs::-webkit-scrollbar { display: none; }
.rs-tab { flex: none; border: 0; background: transparent; padding: .55rem 1rem; border-radius: 999px; font: 600 .9rem/1 var(--bottoni, var(--testo)); color: var(--testo-2); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.rs-tab:hover { color: var(--inchiostro); background: color-mix(in srgb, var(--inchiostro) 6%, transparent); }
.rs-tab[aria-selected="true"] { background: var(--lago); color: var(--calce); }
.rs-tab__oggi { font-weight: 500; opacity: .85; }
.blocco.tono--scuro .rs-tabs { background: rgba(255, 255, 255, .1); }
.blocco.tono--scuro .rs-tab { color: var(--t-tenue); }
.blocco.tono--scuro .rs-tab[aria-selected="true"] { background: var(--sole); color: var(--su-sole); }
.rs-mg--lavagna.is-pronta .rs-giorno:not(.is-on) { display: none; }
.rs-mg--lavagna.is-pronta .rs-giorno__nome { display: none; }
.rs-mg--lavagna:not(.is-pronta) .rs-giorno + .rs-giorno { margin-top: 2.6rem; }
.rs-giorno:focus-visible { outline-offset: 6px; }
.rs-giorno__nome { margin: 0 0 1rem; font-family: var(--display); font-size: var(--t-xl); color: var(--titoli); }
.rs-giorno__nota { margin: 0 0 1rem; font-weight: 700; color: var(--lago); }
.blocco.tono--scuro .rs-giorno__nota { color: var(--sole); }
.rs-portate { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .rs-portate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rs-portata { display: grid; gap: .4rem; align-content: start; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--rs-tondo); }
.rs-portata--chiara { background: var(--sole-chiaro); color: var(--inchiostro); }
.rs-portata--scura { background: var(--lago); color: var(--calce); }
.rs-portata__testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.rs-portata__nome { margin: 0; font: 800 .78rem/1.3 var(--testo); letter-spacing: .14em; text-transform: uppercase; }
.rs-portata__nota { margin: .25rem 0 0; font-size: .8rem; opacity: .78; }
.rs-portata__prezzo { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); line-height: .9; white-space: nowrap; }
.rs-portata--scura .rs-portata__prezzo { color: var(--sole); }
.rs-portata__piatti { list-style: none; margin: 0; padding: 0; }
.rs-portata__piatti li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); align-items: baseline; padding: .8rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.rs-portata__piatti li:last-child { border-bottom: 0; padding-bottom: 0; }
.rs-portata__n { font-size: .75rem; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.rs-portata--scura .rs-portata__n { color: var(--sole); opacity: 1; }
.rs-portata__piatto { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem); line-height: 1.12; }
.rs-extra { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-extra li { padding: .65rem 1.05rem; border-radius: 14px; background: color-mix(in srgb, var(--inchiostro) 6%, transparent); font-size: .9rem; }
.rs-extra b { margin-left: .5rem; color: var(--lago); }
.rs-extra--prezzi { margin: 0 0 1.4rem; }
.blocco.tono--scuro .rs-extra li { background: rgba(255, 255, 255, .1); }
.blocco.tono--scuro .rs-extra b { color: var(--sole); }
.rs-spento { max-width: 44rem; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--rs-tondo); background: color-mix(in srgb, var(--inchiostro) 5%, transparent); }
.rs-spento__t { margin: 0 0 .6rem; font-family: var(--display); font-size: var(--t-xl); line-height: 1.1; color: var(--titoli); }
.rs-spento p { color: var(--testo-2); }
.blocco.tono--scuro .rs-spento { background: rgba(255, 255, 255, .08); }
.blocco.tono--scuro .rs-spento__t { color: var(--t-forte); }
.blocco.tono--scuro .rs-spento p { color: var(--t-tenue); }
/* Solo oggi */
.rs-oggi__giorno { margin: 0 0 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--testo-2); }
/* Tutta la settimana */
.rs-sett { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.rs-sett__giorno { padding: 1.4rem; border-radius: calc(var(--rs-tondo) * .75); background: #fff; color: var(--inchiostro); box-shadow: 0 0 0 1px var(--riga); }
.rs-sett__giorno.is-oggi { box-shadow: 0 0 0 2px var(--lago); }
.rs-sett__nome { margin: 0 0 .8rem; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--titoli); }
.rs-sett__nome small { font: 700 .7rem var(--testo); letter-spacing: .12em; text-transform: uppercase; color: var(--lago); vertical-align: middle; }
.rs-sett__sez { margin: .8rem 0 .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-2); }
.rs-sett ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .95rem; }

/* La carta */
.rs-carta__nota { margin: 0 0 1.4rem; max-width: 62ch; color: var(--testo-2); }
.rs-filtri ul { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-filtri a { display: inline-block; padding: .55rem 1.05rem; border-radius: 999px; background: color-mix(in srgb, var(--inchiostro) 6%, transparent); color: var(--inchiostro); font-weight: 600; font-size: .88rem; text-decoration: none; transition: background-color .2s; }
.rs-filtri a:hover { background: var(--sole-chiaro); color: var(--inchiostro); }
.blocco.tono--scuro .rs-filtri a { background: rgba(255, 255, 255, .1); color: var(--t-forte); }
.rs-cat { scroll-margin-top: 6rem; }
.rs-cat__nome { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.05; color: var(--titoli); }
.rs-cat__nota { margin: .45rem 0 0; font-size: .88rem; color: var(--testo-2); }
.rs-piatti { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.rs-piatto { padding: .85rem 0; border-top: 1px solid color-mix(in srgb, currentColor 13%, transparent); }
.rs-piatto__riga { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem; }
.rs-piatto__nome { font-family: var(--display); font-size: 1.22rem; line-height: 1.2; }
.rs-piatto__prezzo { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-piatto__desc { margin: .2rem 0 0; font-size: .88rem; color: var(--testo-2); max-width: 52ch; }
.rs-tag { align-self: center; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: .3rem .5rem; border-radius: 999px; background: rgba(46, 125, 50, .12); color: #2E6B34; }
.rs-tag--stagione, .rs-tag--nuovo { background: color-mix(in srgb, var(--lago) 12%, transparent); color: var(--lago); }
.rs-tag--casa { background: color-mix(in srgb, var(--sole) 22%, transparent); color: var(--inchiostro); }
.rs-tag--piccante { background: rgba(198, 40, 40, .12); color: #A3261F; }
.rs-tag--gf { background: rgba(21, 101, 192, .1); color: #1D4F91; }
/* Schede colorate */
.rs-carta--schede .rs-cats { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .rs-carta--schede .rs-cats { display: block; columns: 2; column-gap: 1.2rem; } .rs-carta--schede .rs-cat { break-inside: avoid; margin-bottom: 1.2rem; } }
.rs-carta--schede .rs-cat { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--rs-tondo); background: #fff; color: var(--inchiostro); box-shadow: 0 0 0 1px var(--riga); }
.rs-carta--schede .rs-cat--evidenza { background: var(--sole-chiaro); box-shadow: none; }
.rs-carta--schede .rs-cat--evidenza .rs-cat__nome { color: var(--lago); }
.rs-carta--schede .rs-cat--scura { background: var(--lago); color: var(--calce); box-shadow: none; }
.rs-carta--schede .rs-cat--scura .rs-cat__nome { color: var(--calce); }
.rs-carta--schede .rs-cat--scura :is(.rs-cat__nota, .rs-piatto__desc) { color: color-mix(in srgb, var(--calce) 76%, var(--lago)); }
.rs-carta--schede .rs-cat--scura .rs-piatto__prezzo { color: var(--sole); }
.rs-carta--schede .rs-cat--scura .rs-tag { background: rgba(255, 255, 255, .14); color: var(--calce); }
/* Categoria con uno sfondo di Aspetto: i colori arrivano dal pannello, già controllati per la leggibilità */
.rs-carta--schede .rs-cat--fondo { background: var(--cat-bg); color: var(--cat-tx); box-shadow: none; }
.rs-carta--schede .rs-cat--fondo .rs-cat__nome { color: var(--cat-titolo); }
.rs-carta--schede .rs-cat--fondo :is(.rs-cat__nota, .rs-piatto__desc) { color: var(--cat-tenue); }
.rs-carta--schede .rs-cat--fondo .rs-piatto { border-top-color: color-mix(in srgb, var(--cat-tx) 16%, transparent); }
.rs-carta--schede .rs-cat--testi-chiari .rs-piatto__prezzo { color: var(--cat-prezzo); }
.rs-carta--schede .rs-cat--testi-chiari .rs-tag { background: rgba(255, 255, 255, .14); color: var(--cat-tx); }
/* Elenco classico: piatto … prezzo */
.rs-carta--elenco { max-width: 52rem; }
.rs-carta--elenco .rs-cat + .rs-cat { margin-top: 2.6rem; }
.rs-carta--elenco .rs-piatto { border-top: 0; padding: .55rem 0; }
.rs-carta--elenco .rs-piatto__riga { flex-wrap: nowrap; }
.rs-carta--elenco .rs-piatto__riga::after { content: ""; order: 2; flex: 1 1 2rem; min-width: 1.5rem; border-bottom: 2px dotted color-mix(in srgb, currentColor 35%, transparent); transform: translateY(-.3em); }
.rs-carta--elenco .rs-piatto__nome { order: 0; }
.rs-carta--elenco .rs-tag { order: 1; }
.rs-carta--elenco .rs-piatto__prezzo { order: 3; margin-left: 0; }
/* Due colonne */
@media (min-width: 900px) { .rs-carta--colonne .rs-cats { columns: 2; column-gap: 4rem; } .rs-carta--colonne .rs-cat { break-inside: avoid; margin-bottom: 2.4rem; } }
.rs-carta--colonne .rs-cat { margin-bottom: 2rem; }
.blocco.tono--scuro .rs-carta:not(.rs-carta--schede) :is(.rs-cat__nome) { color: var(--t-forte); }
.blocco.tono--scuro .rs-carta:not(.rs-carta--schede) :is(.rs-cat__nota, .rs-piatto__desc, .rs-carta__nota) { color: var(--t-tenue); }
.blocco.tono--scuro .rs-carta:not(.rs-carta--schede) .rs-piatto__prezzo { color: var(--sole); }

/* Orari e contatti: fascia "chiamaci" */
.rs-fondo { background: var(--sole); color: var(--su-sole); }
.rs-fascia { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .rs-fascia { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } }
.rs-fascia__testo { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.rs-fascia__t { margin: 0; font-family: var(--display); font-weight: 620; font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.6rem); line-height: .95; letter-spacing: -.02em; color: var(--titoli); max-width: 13ch; }
.rs-fascia__p { max-width: 46ch; font-size: .95rem; }
.rs-fascia__dati { display: flex; flex-direction: column; align-items: flex-start; }
.rs-tel { color: var(--lago); text-decoration: none; }
.rs-tel--grande { display: inline-block; font-family: var(--display); font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -.01em; padding-bottom: .2rem; border-bottom: 3px solid currentColor; }
.rs-tel--grande:hover { color: var(--lago-scuro); }
.rs-orari { display: grid; gap: .35rem; margin: 1.2rem 0 0; font-size: .92rem; }
.rs-orari__riga { display: flex; flex-wrap: wrap; gap: .1rem .8rem; }
.rs-orari dt { font-weight: 700; }
.rs-orari dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0 .6rem; font-variant-numeric: tabular-nums; }
.rs-orari__riga.is-chiuso dd { opacity: .75; }
.rs-fascia__ind { margin: 1rem 0 0; font-size: .92rem; }
.rs-fondo .rs-fascia__t { color: var(--su-sole); }
.blocco.tono--scuro .rs-fascia__t { color: var(--t-forte); }
.blocco.tono--scuro .rs-fascia__p { color: var(--t-tenue); }
.blocco.tono--scuro .rs-tel { color: var(--sole); }
/* Piè di pagina */
.rs-orari--piede { margin: 0; font-size: var(--t-sm); gap: .6rem; }
.rs-orari--piede .rs-orari__riga { display: grid; gap: 0; }
.rs-orari--piede dt { font-weight: 400; color: var(--spuma); }
/* Solo gli orari */
.rs-tabella { max-width: 40rem; margin-inline: auto; }
.rs-tabella .rs-testa { align-items: center; text-align: center; margin-inline: auto; }
.rs-tabella > .rs-stato { display: flex; justify-content: center; margin-bottom: 1rem; }
.rs-tabella .rs-orari { margin: 0; gap: 0; font-size: 1rem; }
.rs-tabella .rs-orari__riga { justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--riga); }
.rs-tabella .rs-orari dd { justify-content: flex-end; text-align: right; }
.rs-tabella__p { margin-top: 1.4rem; color: var(--testo-2); text-align: center; }
.rs-chiusure { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 14px; background: color-mix(in srgb, var(--sole) 16%, transparent); font-size: .9rem; color: var(--inchiostro); }
.rs-chiusure__t { margin: 0 0 .3rem; font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.rs-chiusure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
/* Schede dei contatti */
.rs-schede__griglia { display: grid; gap: 1rem; }
.rs-schede__sx, .rs-schede__coppia { display: grid; gap: 1rem; }
@media (min-width: 700px) { .rs-schede__coppia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rs-schede__griglia { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.rs-scheda { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: clamp(1.3rem, 1rem + 1.4vw, 2rem); border-radius: var(--rs-tondo); background: #fff; color: var(--inchiostro); box-shadow: 0 0 0 1px var(--riga); }
.rs-scheda__k { margin: 0; font: 800 .74rem/1.3 var(--testo); letter-spacing: .14em; text-transform: uppercase; color: var(--testo-2); }
.rs-scheda__k--2 { margin-top: .8rem; }
.rs-scheda__p { font-size: .95rem; }
.rs-scheda__ind { margin: 0; font-size: 1rem; line-height: 1.5; }
.rs-scheda__link { color: var(--lago); font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.rs-scheda__link svg { width: 1rem; height: 1rem; }
.rs-scheda .rs-orari { margin: 0; width: 100%; gap: 0; }
.rs-scheda .rs-orari__riga { justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--riga); }
.rs-scheda .rs-orari dt { font-weight: 400; color: var(--testo-2); }
.rs-scheda .rs-orari dd { font-weight: 700; justify-content: flex-end; text-align: right; flex-direction: column; }
.rs-scheda .rs-chiusure { width: 100%; margin-top: .4rem; }
.rs-arrivo { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.rs-scheda--prenota { background: var(--sole); box-shadow: none; color: var(--su-sole); }
.rs-scheda--prenota .rs-scheda__k { color: inherit; opacity: .8; }
.rs-scheda--prenota .rs-scheda__link { color: inherit; }
.rs-scheda--mappa { align-items: center; justify-content: center; text-align: center; background: var(--lago); color: var(--calce); box-shadow: none; min-height: 18rem; gap: 1.2rem; }
.rs-scheda__grande { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.1; }
.rs-scheda--mappa .btn svg { width: 1.1rem; height: 1.1rem; }
.rs-scheda__mini { margin: 0; max-width: 30ch; font-size: .78rem; opacity: .75; }

/* Nastro dei piatti */
.blocco--nastro { padding-block: 0; overflow: hidden; }
.blocco--nastro + .blocco { padding-top: var(--sezione); }
.rs-nastro { overflow: hidden; padding-block: 1.05rem; }
.rs-nastro:not(.is-giro) { overflow-x: auto; }
.rs-nastro__traccia { display: flex; width: max-content; }
.rs-nastro.is-giro .rs-nastro__traccia { animation: rs-nastro 48s linear infinite; }
.rs-nastro:hover .rs-nastro__traccia { animation-play-state: paused; }
.rs-nastro__gruppo { display: flex; align-items: center; flex: none; margin: 0; padding: 0; list-style: none; }
.rs-nastro__voce { display: flex; align-items: center; padding-left: 1.5rem; white-space: nowrap; font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.2; }
.rs-nastro__voce::after { content: ""; flex: none; width: .45rem; height: .45rem; margin-left: 1.5rem; border-radius: 50%; background: currentColor; opacity: .55; }
.rs-nastro__voce--eti { font: 800 .82rem/1 var(--testo); letter-spacing: .14em; text-transform: uppercase; }
@keyframes rs-nastro { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rs-nastro.is-giro .rs-nastro__traccia { animation: none; } .rs-nastro { overflow-x: auto; } }

/* Sezione principale J "Piatti del giorno" */
.bl-hero--j { padding-block: clamp(2rem, 1rem + 4vw, 5rem); }
/* Altezza "Alta" e "Tutto lo schermo": come gli altri layout, lo schermo meno l'intestazione e la barra del telefono; contenuto al centro */
.bl-hero--j.bl-hero--alta { min-height: clamp(34rem, 70vw, 48rem); }
.bl-hero--j.bl-hero--schermo { min-height: calc(100vh - 4.2rem - var(--barra-h)); min-height: calc(100svh - 4.2rem - var(--barra-h)); }
.bl-hero--j:is(.bl-hero--alta, .bl-hero--schermo) { display: flex; align-items: center; }
.bl-hero--j:is(.bl-hero--alta, .bl-hero--schermo) > .wrap { flex: 1; min-width: 0; }
.rs-eroe { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .rs-eroe { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 3rem; } .rs-eroe__palco { order: 2; } }
.rs-eroe__palco { position: relative; width: min(84%, 30rem); justify-self: center; }
.rs-tondo { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, #000 18%, transparent); box-shadow: 0 0 0 clamp(5px, .8vw, 9px) var(--sole), 0 40px 80px -36px rgba(0, 0, 0, .7); }
.rs-diapo { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.rs-diapo.is-qui { opacity: 1; }
.rs-diapo img, .rs-tondo img { width: 100%; height: 100%; object-fit: cover; }
.rs-timbro { position: absolute; z-index: 2; top: -3%; left: -7%; width: 36%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--sole); color: var(--su-sole); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6); }
.rs-timbro__giro { position: absolute; inset: 0; width: 100%; height: 100%; animation: rs-gira 26s linear infinite; }
.rs-timbro__giro text { font: 800 14px var(--testo); letter-spacing: .08em; fill: currentColor; }
.rs-timbro__centro { position: relative; display: grid; justify-items: center; font-family: var(--display); font-size: clamp(1.3rem, .8rem + 1.6vw, 2.2rem); line-height: 1; text-align: center; }
.rs-timbro__centro small { font: 800 .6rem/1 var(--testo); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .15rem; }
.rs-timbro__parola { max-width: 4.5em; font-size: .62em; line-height: 1.05; }
@keyframes rs-gira { to { transform: rotate(360deg); } }
.rs-tondino { position: absolute; z-index: 1; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--sole); }
.rs-tondino--1 { width: 27%; right: -6%; bottom: 2%; }
.rs-tondino--2 { width: 18%; left: 2%; bottom: -5%; }
.rs-eroe__testo { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.rs-manifesto { margin: 0; font-family: var(--display); font-weight: 620; font-size: clamp(2.8rem, 1.2rem + 5.4vw, 6rem); line-height: .96; letter-spacing: -.025em; color: var(--titoli); }
.rs-manifesto__fissa { display: block; }
.rs-manifesto__giostra { display: grid; margin-top: .1em; font-size: .62em; line-height: 1.05; color: var(--lago); }
.rs-manifesto__giostra > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); transition: opacity .5s ease, transform .7s var(--ease); }
.rs-manifesto__giostra > span.is-qui { opacity: 1; transform: none; }
.rs-manifesto__giostra > span.is-via { opacity: 0; transform: translateY(-.35em); }
.rs-manifesto__giostra > span:not(.is-qui):not(.is-via) { visibility: hidden; }
.blocco.tono--scuro .rs-manifesto { color: var(--t-forte); }
.blocco.tono--scuro .rs-manifesto__giostra { color: var(--sole); }
.rs-firma { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin-top: .8rem; }
.bl-hero .rs-firma__t { font-family: var(--testo); font-size: .95rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.rs-eroe__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .4rem; }
.rs-eroe__azioni .bl-btns { margin: 0; }
.rs-prezzi { display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-prezzi span { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 999px; font-size: .86rem; font-weight: 600; background: color-mix(in srgb, currentColor 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); }
.rs-prezzi b { color: var(--lago); }
.blocco.tono--scuro .rs-prezzi b { color: var(--sole); }
@media (prefers-reduced-motion: reduce) { .rs-timbro__giro { animation: none; } .rs-diapo, .rs-manifesto__giostra > span { transition: none; } }

/* Sezione principale K "Titolo + foto tonda" */
.bl-hero--k { padding-block: clamp(1.8rem, 1rem + 3vw, 3.6rem); }
.rs-apertura { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 760px) { .rs-apertura { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.rs-apertura__testo { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.rs-briciole { font-size: .82rem; font-weight: 600; color: var(--testo-2); }
.rs-briciole a { color: inherit; text-decoration-thickness: 1px; }
.blocco.tono--scuro .rs-briciole { color: var(--t-tenue); }
.blocco.tono--scuro .rs-briciole a { color: var(--t-forte); }
.rs-apertura .bl-hero__l { max-width: 42ch; font-weight: 500; }
.rs-tondo--pagina { width: clamp(9rem, 22vw, 17rem); justify-self: center; }

/* Testo speciale T10 "Testo + foto tonda" */
.bl-sp--t10 { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 900px) {
  .bl-sp--t10 { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 5rem; }
  .bl-sp--t10.bl-sp--sx { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .bl-sp--t10.bl-sp--sx .bl-sp__tondo { order: -1; }
  .bl-sp--t10.bl-sp--senza-foto { grid-template-columns: minmax(0, 1fr); }
}
.bl-sp--t10 .bl-sp__corpo { max-width: 60ch; }
.bl-sp--t10 .bl-sp__tondo { width: min(78%, 22rem); justify-self: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 clamp(5px, .7vw, 8px) var(--sole), 0 30px 60px -36px rgba(0, 0, 0, .55); }
.bl-sp__pillole { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bl-sp__pillole li { padding: .6rem 1.05rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--riga); color: var(--inchiostro); font-size: .9rem; font-weight: 600; }

/* Testo speciale T11 "Punti in fila" */
.bl-sp--t11 { gap: 1.8rem; }
.bl-sp--t11 .bl-sp__punti, .bl-sp--t10 { width: 100%; }
.bl-sp--t11 .bl-sp__testa { max-width: 48rem; }
.bl-sp--t11 .bl-sp__punti { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); border-top: 2px solid var(--inchiostro); }
.bl-sp--t11 .bl-sp__punto { padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--riga); gap: .35rem; }
.bl-sp--t11 .bl-sp__pt { font-size: 1.3rem; }
.bl-sp--t11 .bl-sp__punto .bl-testo__corpo { font-size: .9rem; }
.blocco.tono--scuro .bl-sp--t11 .bl-sp__punti { border-top-color: var(--t-forte); }
.blocco.tono--scuro .bl-sp--t11 .bl-sp__punto { border-bottom-color: rgba(255, 255, 255, .2); }

/* Galleria G10 "Una grande + quattro" */
.gal__cinque { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal__cinque .foto { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: calc(var(--rs-tondo) * .8); overflow: hidden; }
.gal__cinque .gal__grande { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .gal__cinque { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
  .gal__cinque .gal__grande { grid-column: 1; grid-row: span 2; aspect-ratio: auto; }
}
.gal__cinque .foto__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__cinque img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal__cinque .foto:hover img { transform: scale(1.04); }
.gal__etichetta { position: absolute; left: .8rem; bottom: .8rem; max-width: calc(100% - 1.6rem); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: .38rem .75rem; border-radius: 999px; background: #fff; color: var(--inchiostro); font-size: .74rem; font-weight: 700; pointer-events: none; }

/* Schede colorate a turno */
.schede--colorate .scheda { box-shadow: none; border-radius: var(--rs-tondo); padding: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); }
.schede--colorate .scheda:hover { box-shadow: none; }
.schede--colorate .scheda:nth-child(3n+1) { background: var(--sole-chiaro); }
.schede--colorate .scheda:nth-child(3n+2) { background: var(--lago); color: var(--calce); }
.schede--colorate .scheda:nth-child(3n) { background: var(--inchiostro); color: var(--calce); }
.schede--colorate .scheda:is(:nth-child(3n+2), :nth-child(3n)) > :is(h2, h3, h4) { color: var(--calce); }
.schede--colorate .scheda:is(:nth-child(3n+2), :nth-child(3n)) :is(p, li) { color: color-mix(in srgb, var(--calce) 82%, transparent); }
.scheda__nota { margin-top: auto; padding-top: .9rem; border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent); font-size: .85rem; font-weight: 700; }
.schede--colorate .scheda:is(:nth-child(3n+2), :nth-child(3n)) .scheda__nota { color: var(--sole); }
.schede--colorate .scheda { align-content: stretch; }

/* Servizi come etichette */
.servizi__lista--pillole { display: flex; flex-wrap: wrap; gap: .5rem; }
.servizi__lista--pillole li { padding: .6rem 1.1rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--riga); }

/* Lavori e progetti (portfolio): schede con la schermata nella finestra del browser */
.blocco--lavori .intro { max-width: 62ch; color: var(--testo-2); font-size: var(--t-lg); }
.blocco--lavori .testa + .intro { margin-top: 1rem; }
.lavori { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.lavori > li::marker { content: none; }
.lavoro { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.lavoro__schermo { display: block; position: relative; border-radius: calc(var(--rs-tondo, var(--tondo)) * .9); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--riga), 0 22px 44px -30px rgba(15, 20, 25, .55); text-decoration: none; color: inherit; isolation: isolate; }
.lavori--browser .lavoro__barra { display: flex; align-items: center; gap: .32rem; height: 1.9rem; padding: 0 .75rem; background: color-mix(in srgb, var(--calce) 70%, #fff); border-bottom: 1px solid var(--riga); }
.lavoro__barra i { width: .52rem; height: .52rem; border-radius: 50%; background: color-mix(in srgb, var(--inchiostro) 22%, transparent); flex: none; }
.lavoro__barra i:first-child { background: var(--sole); }
.lavoro__barra em { margin-left: .6rem; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: .16rem .7rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--riga); font-style: normal; font-size: .72rem; font-weight: 600; color: var(--testo-2); letter-spacing: .01em; }
.lavoro__vista { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sabbia); }
.lavoro__vista img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
a.lavoro__schermo:hover .lavoro__vista img { transform: scale(1.035); }
a.lavoro__schermo:hover { box-shadow: 0 0 0 2px var(--sole), 0 26px 50px -30px rgba(15, 20, 25, .6); }
.lavoro__vuoto { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: .5rem; background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--sole) 38%, transparent), transparent 60%), var(--inchiostro); color: var(--calce); }
.lavoro__vuoto b { font-family: var(--display); font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.lavoro__vuoto small { font-size: .78rem; font-weight: 600; opacity: .72; letter-spacing: .04em; }
.lavoro__testo { display: grid; gap: .55rem; align-content: start; min-width: 0; }
.lavoro__meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); }
.lavoro__meta span { font-variant-numeric: tabular-nums; color: var(--sole); }
.lavoro__nome { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); color: var(--titoli); }
.lavoro__corpo { color: var(--testo-2); }
.lavoro__corpo p + p { margin-top: .6em; }
.lavoro__tag { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lavoro__tag li { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--inchiostro) 6%, transparent); box-shadow: inset 0 0 0 1px var(--riga); }
.lavoro__tag li::marker { content: none; }
.lavoro__tag .lavoro__tag--at { background: color-mix(in srgb, var(--sole) 16%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sole) 45%, transparent); color: var(--inchiostro); }
.lavoro__tag img { width: 1rem; height: 1rem; }
.lavoro__nota { font-weight: 700; color: var(--titoli); display: flex; align-items: center; gap: .5rem; }
.lavoro__nota::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #2FA866; box-shadow: 0 0 0 4px color-mix(in srgb, #2FA866 22%, transparent); flex: none; }
.lavoro .vai { justify-self: start; margin-top: .35rem; display: inline-flex; align-items: center; gap: .4rem; padding: .48rem 1.05rem; border-radius: 999px; background: var(--sole-chiaro); color: var(--inchiostro); font-weight: 700; font-size: var(--t-sm); text-decoration: none; transition: background-color .2s; }
.lavoro .vai:hover { background: var(--sole); color: var(--su-sole); }
.lavoro .vai svg { width: 1rem; height: 1rem; }
@media (min-width: 700px) {
  .lavori--griglia.lavori--c2, .lavori--griglia.lavori--c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .lavori--griglia.lavori--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Un lavoro per riga, schermata e testo alternati */
@media (min-width: 900px) {
  .lavori--alternato { gap: clamp(3rem, 2rem + 3vw, 5rem); }
  .lavori--alternato .lavoro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
  .lavori--alternato .lavoro:nth-child(even) .lavoro__schermo { order: 2; }
}
/* Elenco compatto: righe con nome, tipo e link */
.lavori--elenco { gap: 0; border-top: 1px solid var(--riga); }
.lavori--elenco .lavoro { padding-block: 1.4rem; border-bottom: 1px solid var(--riga); }
@media (min-width: 900px) {
  .lavori--elenco .lavoro__testo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 10.5rem; column-gap: 2rem; align-items: start; }
  .lavori--elenco .lavoro__meta { grid-column: 1; grid-row: 2; }
  .lavori--elenco .lavoro__nome { grid-column: 1; grid-row: 1; }
  .lavori--elenco :is(.lavoro__corpo, .lavoro__tag, .lavoro__nota) { grid-column: 2; }
  .lavori--elenco .vai { grid-column: 3; grid-row: 1; margin-top: 0; justify-self: end; }
}
/* Su sfondo scuro: testi chiari, schermate con il bordo chiaro */
.blocco.tono--scuro .lavoro__nome, .blocco.tono--scuro .lavoro__nota { color: var(--t-forte); }
.blocco.tono--scuro :is(.lavoro__corpo, .lavoro__meta, .blocco--lavori .intro) { color: var(--t-tenue); }
.blocco.tono--scuro .lavoro__tag li { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.blocco.tono--scuro .lavoro__tag .lavoro__tag--at { background: var(--calce); color: var(--inchiostro); }
.blocco.tono--scuro .lavoro__schermo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 50px -30px rgba(0, 0, 0, .8); }
.blocco.tono--scuro .lavori--elenco, .blocco.tono--scuro .lavori--elenco .lavoro { border-color: rgba(255, 255, 255, .16); }
@media (prefers-reduced-motion: reduce) { .lavoro__vista img { transition: none; } }

/* Eventi: agenda (la data in grande a sinistra) o schede con la foto */
.blocco--eventi .intro { max-width: 62ch; color: var(--testo-2); font-size: var(--t-lg); }
.blocco--eventi .testa + .intro { margin-top: 1rem; }
.eventi-vuoto { margin-top: 1.6rem; color: var(--testo-2); font-size: var(--t-lg); }
.eventi { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: clamp(1.2rem, .8rem + 1.6vw, 2rem); }
.eventi > li::marker { content: none; }
.evento { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.evento__data { display: grid; justify-items: center; align-content: center; gap: .1rem; width: 5.6rem; min-height: 5.6rem; padding: .55rem .4rem; border-radius: calc(var(--rs-tondo, var(--tondo)) * .7); background: var(--sole-chiaro); color: var(--inchiostro); text-align: center; line-height: 1.05; flex: none; }
.evento__data b { font-family: var(--display); font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.evento__gg, .evento__mese { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.evento__testo { display: grid; gap: .5rem; align-content: start; min-width: 0; }
.evento__meta { display: flex; flex-wrap: wrap; gap: .25rem 0; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--testo-2); }
.evento__meta span:not(:last-child)::after { content: "·"; margin: 0 .55rem; opacity: .6; }
.evento__meta span { font-variant-numeric: tabular-nums; }
.evento__nome { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); color: var(--titoli); }
.evento__corpo { color: var(--testo-2); }
.evento__corpo p + p { margin-top: .6em; }
.evento__luogo { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--t-sm); }
.evento__luogo svg { width: 1rem; height: 1rem; flex: none; color: var(--acqua, currentColor); }
.evento__stato { justify-self: start; padding: .25rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--inchiostro); color: var(--calce); }
.evento--annullato .evento__nome { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .7; }
.evento--annullato .evento__data { background: color-mix(in srgb, var(--inchiostro) 8%, transparent); }
.evento .vai { justify-self: start; margin-top: .3rem; display: inline-flex; align-items: center; gap: .4rem; padding: .48rem 1.05rem; border-radius: 999px; background: var(--sole-chiaro); color: var(--inchiostro); font-weight: 700; font-size: var(--t-sm); text-decoration: none; transition: background-color .2s; }
.evento .vai:hover { background: var(--sole); color: var(--su-sole); }
.evento .vai svg { width: 1rem; height: 1rem; }
/* Agenda: data e testo affiancati, una riga per evento */
.eventi--agenda { gap: 0; border-top: 1px solid var(--riga); }
.eventi--agenda .evento { grid-template-columns: auto minmax(0, 1fr); gap: 1rem clamp(1rem, .6rem + 1.6vw, 2rem); padding-block: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-bottom: 1px solid var(--riga); align-items: start; }
@media (max-width: 480px) { .eventi--agenda .evento__data { width: 4.6rem; min-height: 4.6rem; } .eventi--agenda .evento__data b { font-size: 1.8rem; } }
/* Schede: foto con la data appoggiata sopra */
@media (min-width: 700px) { .eventi--schede { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .eventi--schede { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evento__foto { position: relative; aspect-ratio: 16 / 10; border-radius: var(--tondo); overflow: hidden; background: var(--sabbia); box-shadow: 0 0 0 1px var(--riga); }
.evento__img { width: 100%; height: 100%; object-fit: cover; }
/* Scheda senza foto: la data in una riga, a sinistra del giorno della settimana */
.eventi--schede .evento > .evento__data { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: .45rem; width: auto; min-height: 0; padding: .45rem .9rem; justify-self: start; }
.eventi--schede .evento > .evento__data b { font-size: 1.5rem; order: -1; }
.eventi--schede .evento { padding: clamp(1.1rem, .9rem + .8vw, 1.5rem); border-radius: var(--tondo); box-shadow: inset 0 0 0 1px var(--riga); }
.eventi--schede .evento:has(.evento__foto) { padding: 0; box-shadow: none; }
.evento__foto .evento__data { position: absolute; top: .8rem; left: .8rem; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); }
/* Su sfondo scuro: testi chiari */
.blocco.tono--scuro .evento__nome { color: var(--t-forte); }
.blocco.tono--scuro :is(.evento__corpo, .evento__meta, .blocco--eventi .intro, .eventi-vuoto) { color: var(--t-tenue); }
.blocco.tono--scuro .eventi--agenda, .blocco.tono--scuro .eventi--agenda .evento { border-color: rgba(255, 255, 255, .16); }
.blocco.tono--scuro .evento__stato { background: var(--calce); color: var(--inchiostro); }
.blocco.tono--scuro .eventi--schede .evento { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.blocco.tono--scuro .eventi--schede .evento:has(.evento__foto) { box-shadow: none; }

/* Fascia dei contatti senza telefono: l'email al posto del numero, più piccola perché è più lunga */
.rs-tel--mail { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem); overflow-wrap: anywhere; }
.blocco.tono--scuro .rs-tel--mail { color: var(--t-forte); }
.blocco.tono--scuro .rs-tel--mail:hover { color: var(--t-forte); opacity: .85; }

/* NEWS ------------------------------------------------------------------- */
/* Filtri per categoria (link veri: ogni categoria ha la sua pagina) */
.art-cats { display: flex; gap: .45rem; margin: 1.8rem 0 0; overflow-x: auto; scrollbar-width: none; padding: .2rem .1rem; }
.art-cats::-webkit-scrollbar { display: none; }
.art-cats a { flex: none; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: var(--t-sm); text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px var(--riga); transition: background-color .2s, box-shadow .2s; }
.art-cats a:hover { box-shadow: inset 0 0 0 2px var(--sole); }
.art-cats a[aria-current="page"] { background: var(--sole); color: var(--su-sole); box-shadow: none; }
.art-vuoto { margin-top: 2rem; color: var(--testo-2); }
/* Schede degli articoli */
.art-lista { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
.art-lista > li::marker { content: none; }
.art-c { position: relative; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.art-c__foto { display: block; aspect-ratio: 16 / 10; border-radius: var(--tondo); overflow: hidden; background: var(--sabbia); box-shadow: 0 0 0 1px var(--riga); }
.art-c__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.art-c:hover .art-c__img { transform: scale(1.04); }
.art-c__vuoto { width: 100%; height: 100%; display: grid; place-content: center; background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--sole) 40%, transparent), transparent 60%), var(--inchiostro); color: var(--calce); }
.art-c__vuoto b { font-family: var(--display); font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.art-c__testo { display: grid; gap: .5rem; min-width: 0; }
.art-c__meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--testo-2); }
.art-c__cat { color: var(--titoli); }
.art-c__t { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.15; color: var(--titoli); }
.art-c__t a { color: inherit; text-decoration: none; }
.art-c__t a::after { content: ""; position: absolute; inset: 0; border-radius: var(--tondo); } /* tutta la scheda è cliccabile */
.art-c__t a:hover { text-decoration: underline; text-decoration-color: var(--sole); }
.art-c__lead { color: var(--testo-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 700px) { .art-lista--griglia, .art-lista--evidenza { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .art-lista--griglia, .art-lista--evidenza { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .art-lista--evidenza .art-c--grande { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.6rem, 1rem + 2.5vw, 3.4rem); align-items: center; }
  .art-c--grande .art-c__t { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.7rem); }
  .art-c--grande .art-c__lead { -webkit-line-clamp: 5; font-size: var(--t-lg); }
}
.art-lista--elenco { gap: 0; border-top: 1px solid var(--riga); }
.art-lista--elenco .art-c { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.3rem; border-bottom: 1px solid var(--riga); align-items: start; }
.art-lista--elenco .art-c__foto { aspect-ratio: 1; }
.art-lista--elenco .art-c__t a::after { inset: 0; border-radius: 0; }
@media (min-width: 700px) { .art-lista--elenco .art-c { grid-template-columns: 13rem minmax(0, 1fr); gap: 1.6rem; } .art-lista--elenco .art-c__foto { aspect-ratio: 16 / 10; } }
/* Pagine successive */
.art-pagine { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.art-pagine ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.art-pagine li { min-width: 2.6rem; text-align: center; }
.art-pagine li a, .art-pagine li span { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; color: inherit; font-variant-numeric: tabular-nums; }
.art-pagine li a:hover { box-shadow: inset 0 0 0 2px var(--sole); }
.art-pagine [aria-current="page"] { background: var(--sole); color: var(--su-sole); }
.art-pagine__vai { display: inline-flex; align-items: center; gap: .4rem; min-width: 2.6rem; font-weight: 700; text-decoration: none; color: inherit; }
.art-pagine__vai svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 599px) { .art-pagine__vai span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.art-tutti { margin-top: 2rem; }
/* L'articolo */
.art { padding-top: clamp(2.2rem, 1.5rem + 3vw, 4rem); }
.art__testa { max-width: calc(52rem + 2 * var(--gutter)); display: grid; gap: 1rem; }
.art__briciole { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--t-sm); font-weight: 600; color: var(--testo-2); }
.art__briciole a { color: inherit; text-decoration: none; }
.art__briciole a:hover { text-decoration: underline; text-decoration-color: var(--sole); }
.art__h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); line-height: 1.04; color: var(--titoli); }
.art__lead { font-size: var(--t-lg); color: var(--testo-2); max-width: 46rem; }
.art__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: var(--t-sm); font-weight: 600; color: var(--testo-2); }
.art__autore { color: var(--titoli); font-weight: 750; }
.art__copertina { margin: clamp(1.6rem, 1rem + 2vw, 2.6rem) 0 0; border-radius: var(--tondo); overflow: hidden; aspect-ratio: 16 / 8; background: var(--sabbia); }
.art__copertina img { width: 100%; height: 100%; object-fit: cover; }
.art__griglia { display: grid; gap: 1.6rem; margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
@media (min-width: 1000px) {
  .art__griglia { grid-template-columns: minmax(0, 46rem); justify-content: center; }
  .art__griglia--indice { grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(2rem, 1rem + 3vw, 4.5rem); justify-content: center; }
  .art__indice { position: sticky; top: 6rem; align-self: start; }
}
.art__indice { border-radius: var(--tondo); padding: 1rem 1.2rem; box-shadow: inset 0 0 0 1px var(--riga); font-size: var(--t-sm); }
.art__indice summary { cursor: pointer; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.art__indice ol { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.art__indice a { color: inherit; text-decoration: none; }
.art__indice a:hover { text-decoration: underline; text-decoration-color: var(--sole); }
.art__corpo { font-size: clamp(1.06rem, 1rem + .2vw, 1.14rem); line-height: 1.75; min-width: 0; }
.art__corpo > * + * { margin-top: 1.1em; }
.art__corpo h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.12; color: var(--titoli); scroll-margin-top: 6rem; }
.art__corpo h3 { margin-top: 1.8em; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); color: var(--titoli); scroll-margin-top: 6rem; }
.art__corpo h2 + *, .art__corpo h3 + * { margin-top: .6em; }
.art__corpo ul, .art__corpo ol { padding-left: 1.3rem; }
.art__corpo li + li { margin-top: .4em; }
.art__corpo li::marker { color: var(--sole); font-weight: 700; }
.art__corpo blockquote { margin-inline: 0; padding: .3rem 0 .3rem 1.2rem; border-left: 4px solid var(--sole); font-size: 1.12em; font-weight: 600; color: var(--titoli); }
.art__corpo code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .1em .35em; border-radius: 5px; background: color-mix(in srgb, currentColor 9%, transparent); }
.art__codice { margin-inline: 0; padding: 1rem 1.2rem; border-radius: var(--tondo); background: var(--inchiostro); color: var(--calce); overflow-x: auto; font-size: .86rem; line-height: 1.6; }
.art__codice code { padding: 0; background: none; font-size: inherit; }
.art__tabella { overflow-x: auto; border-radius: var(--tondo); box-shadow: inset 0 0 0 1px var(--riga); }
.art__tabella table { width: 100%; border-collapse: collapse; font-size: .95em; }
.art__tabella th, .art__tabella td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--riga); vertical-align: top; }
.art__tabella th { font-weight: 800; }
.art__tabella tr:last-child td { border-bottom: 0; }
.art__foto { margin-inline: 0; }
.art__foto img { border-radius: var(--tondo); width: 100%; }
.art__foto figcaption { margin-top: .5rem; font-size: var(--t-sm); color: var(--testo-2); }
.art__firma { display: flex; align-items: center; gap: .9rem; margin-top: 2.6em !important; padding-top: 1.4rem; border-top: 1px solid var(--riga); line-height: 1.35; }
.art__firma-sigla { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--sole); color: var(--su-sole); font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.art__firma p { display: grid; }
.art__firma span { font-size: var(--t-sm); color: var(--testo-2); }
.blocco--articolo-altri { padding-top: 0; }
.art__altri { padding-top: clamp(1rem, .5rem + 2vw, 2.4rem); }
/* Su sfondo scuro */
.blocco.tono--scuro :is(.art-c__t, .art-c__cat, .art__h1, .art__autore, .art__corpo h2, .art__corpo h3, .art__corpo blockquote) { color: var(--t-forte); }
.blocco.tono--scuro :is(.art-c__meta, .art-c__lead, .art-vuoto, .art__briciole, .art__lead, .art__meta, .art__foto figcaption, .art__firma span) { color: var(--t-tenue); }
.blocco.tono--scuro .art__corpo { color: color-mix(in srgb, var(--t-forte) 88%, transparent); }
.blocco.tono--scuro .art__corpo a { color: var(--t-link); }
.blocco.tono--scuro :is(.art-cats a, .art__indice, .art__tabella) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.blocco.tono--scuro .art-cats a[aria-current="page"] { box-shadow: none; }
.blocco.tono--scuro :is(.art__tabella th, .art__tabella td, .art__firma, .art-lista--elenco, .art-lista--elenco .art-c) { border-color: rgba(255, 255, 255, .16); }
.blocco.tono--scuro .art-c__foto { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.blocco.tono--scuro .art__codice { background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
@media (prefers-reduced-motion: reduce) { .art-c__img { transition: none; } }

/* News: link "Tutti gli articoli" sotto gli ultimi articoli (blocco senza pagine successive) */
.art-tutti .vai { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.art-tutti .vai svg { width: 1rem; height: 1rem; flex: none; transition: transform .2s; }
.art-tutti .vai:hover svg { transform: translateX(3px); }

/* PAGINA NON TROVATA (404) ---------------------------------------------- */
/* Tre layout scelti dal pannello (Pagine → Pagina non trovata): centrata, testo + foto, con le pagine */
.nf--centrata { padding-block: clamp(3.5rem, 2.5rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem); text-align: center; }
.nf__wrap { display: grid; justify-items: center; gap: .9rem; max-width: 46rem; }
.nf__codice { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 2.6rem + 12vw, 11rem); line-height: .85; letter-spacing: -.05em; color: var(--sole); font-variant-numeric: tabular-nums; }
.nf__codice--riga { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem); margin-bottom: .5rem; }
.nf__titolo { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); line-height: 1.02; color: inherit; text-wrap: balance; } /* il colore del testo della pagina: giusto anche sui siti scuri */
.nf__testo { font-size: var(--t-lg); color: var(--testo-2); max-width: 44ch; text-wrap: pretty; }
.nf__azioni { justify-content: center; margin-top: .6rem; }
.nf--foto .nf__testo { margin-top: 1rem; }
.nf--foto .azioni { margin-top: 1.5rem; }

