/* Valtline legacy refresh, 2026-10. One extra stylesheet, loaded after the
   shared ones on cms.valtline.it. It changes presentation only: no markup,
   no copy, no behaviour. Remove the <link> to roll back. */

:root {
  --ink: #1f2a33;
  --ink-soft: #55616d;
  --line: #dfe3e6;
  --paper: #ffffff;
  --wash: #f4f2ee;
  --bar: #1c1c1c;
  --orange: #f37521;
  --orange-deep: #c9560d;
  --blue: #00589a;
  --ochre: #9a5d16;
  --ui: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --read: "Iowan Old Style", "Palatino Linotype", Palatino, Cambria, Georgia, serif;
  --wide: min(1120px, 92vw);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
a:link, a:visited, a:active { color: var(--blue); text-underline-offset: 0.18em; }

/* ---------- top bar ---------- */
.precorpo { height: 22px; padding-top: 30px; background-color: var(--bar); }
.precorpo_testiheader { max-width: var(--wide); }
.precorpo_menu { font-family: var(--ui); font-size: 13px; letter-spacing: 0.02em; }
.bandiere img { width: 26px; height: 26px; border-radius: 3px; }

/* ---------- page column ---------- */
.corpo { width: var(--wide); border-radius: 0; }
.immagini_header { width: 100%; height: auto; }

/* ---------- availability bar ---------- */
.motore_ricerca_new {
  height: auto;
  margin-top: 0;
  padding: 14px 0;
  background-color: var(--orange);
  transition: none;
}
.motore_ricerca_new:hover { background-color: var(--orange); }
.motore_ricerca_new .titolo_sx {
  --form-w: 400px;
  position: relative;
  display: flow-root;
  box-sizing: border-box;
  min-height: 42px;
  margin: 0 auto;
  padding: 0 var(--form-w) 0 0 !important;
  align-content: center;          /* centres one or two lines of text */
  font-size: 16px;
  line-height: 1.35 !important;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: left;
  text-wrap: balance;
}
.motore_ricerca_new .solo_bordo {
  position: absolute;
  top: 50%;
  right: 0;
  float: none;
  width: auto;
  height: auto !important;
  margin: 0;
  transform: translateY(-50%);
}
.motore_ricerca_new .ricerca_home {
  display: block;
  height: auto !important;
  width: auto;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}
.motore_ricerca_new .ricerca_home form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  margin: 0;
}
.motore_ricerca_new .ricerca_home .from,
.motore_ricerca_new .ricerca_home .to {
  float: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto !important;
  height: auto;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.motore_ricerca_new .ricerca_home br { display: none; }
.motore_ricerca_new .ricerca_home input[type="text"] {
  width: 132px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 500 15px/1 var(--ui);
  box-sizing: border-box;
}
.motore_ricerca_new .ricerca_home input[type="submit"],
.motore_ricerca_new #invio {
  float: none !important;
  width: auto;
  height: 42px;
  margin: 0 !important;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--bar) !important;
  color: #fff !important;
  font: 700 15px/1 var(--ui);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}
.motore_ricerca_new #invio:hover,
.motore_ricerca_new:hover > div #invio { background-color: #000 !important; color: #fff !important; }

/* ---------- guide tiles ---------- */
#corpo_centrale { margin-top: 0; }
#corpo_centrale > .header { display: none; }
.quadrati_home {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
  padding: 36px 0 8px;
}
.quadrati_home a { display: block; overflow: hidden; border-radius: 6px; }
.quadrati_home img {
  float: none;
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.quadrati_home img:hover { border: 0; transform: scale(1.05); }

/* ---------- round shortcuts ---------- */
.box_new_sx, .box_new_dx { float: left; width: 50%; margin-top: 0 !important; }
.box_new_sx .mappastatica, .box_new_dx .mappastatica { float: none; margin: 0; height: auto; }
.box_new_sx .col, .box_new_dx .col {
  display: flex;
  justify-content: space-around;
  float: none;
  width: 100%;
  height: auto;
  margin: 26px 0 6px !important;
  line-height: 1.3;
}
.col .round,
.box_new_dx #round_uno, .box_new_dx #round_due, .box_new_dx #round_tre {
  position: static;
  float: none;
  width: 112px;
  height: auto;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  transform: none;
}
.round:hover { border: 0; transform: none; }
.interno {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--wash);
  font-size: 28px;
  line-height: 76px;
  transition: background-color 0.2s ease-out;
}
.interno a:link, .interno a:visited, .interno a:active {
  display: block;
  margin-top: 0;
  line-height: 76px;
  color: var(--blue);
}
.round h3 {
  margin-top: 10px;
  font: 600 13px/1.3 var(--ui);
  letter-spacing: 0.03em;
}
.round h3 a:link, .round h3 a:visited { color: var(--ink); text-decoration: none; }
.round:hover h3 a { color: var(--orange-deep); }

/* ---------- search, where to stay, activities, map ---------- */
.home_float_prenotazioni { float: left; width: 56%; margin-top: 30px; }
.home_float_news_mappe { float: right; width: 40%; margin-top: 30px; }
.boxprenotazioni, .negoziHome { float: none; width: auto; margin: 0 0 30px; padding: 0; }
.boxprenotazioni_1 { margin-top: 0; }
.boxprenotazioni .titolo_0,
.negoziHome .titolo,
.newsHome .titolo, .titolo_contenitore_sotto .titolo {
  margin: 34px 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font: 700 13px/1.3 var(--ui);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.boxprenotazioni .titolo_0:first-child { margin-top: 0; }

.modulo_finder { display: flex; gap: 8px; width: 100%; margin: 12px 0 0; }
.modulo_finder input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #b9c0c6;
  border-radius: 4px;
  font: 400 16px/1 var(--ui);
  color: var(--ink);
  box-sizing: border-box;
}
.modulo_finder input[type="text"]::placeholder { color: #6b7680; }
.modulo_finder button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font: 700 15px/1 var(--ui);
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}
.modulo_finder button:hover { background: #00406f; }

.AlberghiHome, .AppartamentiHome, .BebHome, .AgriturismoHome,
.alberghiHome, .appartamentiHome, .PrenotazioniHome, .offerteSpecialiHome,
.negoziHome div.elenco, div.elenco {
  height: auto !important;
  margin: 0;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  background-position: 0 50%;
  font-size: 17px;
  line-height: 1.3 !important;
  letter-spacing: 0;
}
.AlberghiHome a, .AppartamentiHome a, .BebHome a, .AgriturismoHome a,
.negoziHome .elenco a, .elenco a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease-out;
}
.AlberghiHome a:hover, .AppartamentiHome a:hover, .BebHome a:hover,
.AgriturismoHome a:hover, .elenco a:hover { color: var(--orange-deep); }

.mappastatica_mappa { float: none; width: 100%; margin: 0; }
.mappastatica_mappa img { float: none; display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }
.mappastatica_mappa br { display: none; }

/* ---------- place title and description ---------- */
.etichetta { margin-top: 0; padding: 0; clear: both; }
.etichetta h1, .etichetta h1#h1homepage {
  position: static;
  max-width: none;
  margin: 0;
  padding: 44px 0 14px;
  border-bottom: 1px solid var(--line);
  font: 400 46px/1.05 var(--read);
  letter-spacing: 0.01em;
  color: var(--ochre);
  text-wrap: balance;
}
.descrizione_homepage {
  max-width: 68ch;
  margin: 26px 0 40px;
  font: 400 19px/1.68 var(--read);
  color: #2e3942;
}
.descrizione_homepage p { margin: 0 0 1.05em; break-inside: avoid; }
@media screen and (min-width: 1000px) {
  .descrizione_homepage { max-width: none; column-count: 2; column-gap: 64px; }
}
.descrizione_homepage strong { color: var(--ink); }

/* ---------- useful links and footer ---------- */
.primosotto, .secondosotto { max-width: var(--wide); }
.contenitore_primosotto { max-width: none; font-size: 14px; }
.titolo_contenitore_sotto { position: static; max-width: none; margin-top: 0; }
.titolo_contenitore_sotto .titolo { margin-top: 20px; }
.boxPrimo { width: 23%; margin: 14px 0 0; padding: 0 2% 0 0; min-height: 0; }
.boxPrimo div { margin: 0; padding: 7px 0 7px 14px; background-position: 2px 16px; }
.boxPrimo a { font-size: 14px; line-height: 1.35; letter-spacing: 0.01em; }
.primosotto a:link, .primosotto a:visited { color: var(--ink) !important; font-weight: 600; }
.primosotto a:hover { color: var(--orange-deep) !important; }
.copyright, .secondosotto .copyright, .secondosottobianco .copyright {
  width: auto;
  height: auto;
  margin: 26px auto 0;
  padding: 18px 0 30px;
  font: 400 13px/1.7 var(--ui);
  color: var(--ink-soft);
}
.secondosotto .copyright a, .secondosottobianco .copyright a, .copyright a { color: var(--ink-soft); }

/* ---------- inner pages ----------
   Lists, hotel pages and guides were laid out for the old 800px column, so
   only the homepage takes the wide one. */
body:not(:has(.quadrati_home)) { --wide: min(860px, 92vw); }
@media screen and (min-width: 768px) {
  body:not(:has(.quadrati_home)) .motore_ricerca_new .titolo_sx { --form-w: 348px; font-size: 15px; }
  body:not(:has(.quadrati_home)) .motore_ricerca_new .ricerca_home input[type="text"] { width: 104px; }
  body:not(:has(.quadrati_home)) .motore_ricerca_new #invio { padding: 0 16px; }
}

.elenco_guide_tb { font-size: 14px; }
.titoloofferta { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.titoloofferta a:link, .titoloofferta a:visited { color: var(--blue); text-decoration: none; }
.titoloofferta a:hover { color: var(--orange-deep); }
.grigino { background-color: var(--wash); }
h2.dentro, h3.dentro {
  padding: 7px 10px;
  background-color: var(--ochre) !important;
  color: #fff !important;
  font: 700 13px/1.3 var(--ui);
  letter-spacing: 0.06em;
}
.menulaterale { font-size: 13.5px; line-height: 1.9; }
.menulaterale a:link, .menulaterale a:visited { color: var(--ink); text-decoration: none; }
.menulaterale a:hover { color: var(--orange-deep); }
/* hotel pages: section labels, directions form, contact buttons */
h2.specialita_new, .specialita_new, form.come_arrivare_new div.specialita_new {
  float: none;
  width: auto !important;
  height: auto;
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font: 700 13px/1.3 var(--ui);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
h2.specialita_new strong { font-weight: 700; }
form.come_arrivare_new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  height: auto;
  margin: 0 0 6px !important;
}
form.come_arrivare_new div.specialita_new { flex: 0 0 100%; margin-bottom: 6px; }
form.come_arrivare_new input#saddr {
  float: none;
  flex: 1 1 220px;
  max-width: 380px;
  width: auto;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #b9c0c6;
  border-radius: 4px;
  font: 400 16px/1 var(--ui);
  color: var(--ink);
  box-sizing: border-box;
}
form.come_arrivare_new input#ricerca_mappa {
  float: none;
  width: auto;
  height: 46px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font: 700 15px/1 var(--ui);
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}
form.come_arrivare_new input#ricerca_mappa:hover { background: #00406f; }

.contenitore_bottoni_top {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  float: none;
  width: auto !important;
  margin: 0 0 34px !important;
}
.contenitore_bottoni_dx a, .contenitore_bottoni_dx a:hover { text-decoration: none; }
.bottone_telefono, .bottone_whatsapp, .bottone_prenota, .bottone_email, .bottone_budget,
.bottone_sitoweb, .bottone_preventivo, .bottone_facebook, .bottone_gruppi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  margin: 0 !important;
  padding: 8px 14px;
  border: 1px solid #b9c0c6;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 600 15px/1.25 var(--ui);
  text-align: center;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.contenitore_bottoni_dx a:hover > div { border-color: var(--ink); background: var(--wash); }
.contenitore_bottoni_dx img { float: none; width: 20px; height: 20px; margin: 0; }
/* the main action: ask the hotel for a price */
.bottone_preventivo, .contenitore_bottoni_dx a:hover > .bottone_preventivo {
  border-color: var(--orange-deep);
  background: var(--orange-deep);
  color: #fff;
}
.contenitore_bottoni_dx a:hover > .bottone_preventivo { background: #a84609; border-color: #a84609; }
.contenitore_bottoni_dx a.bottom_solo_mobile { display: none; }
@media screen and (max-width: 767px) {
  .contenitore_bottoni_top { grid-template-columns: 1fr 1fr; }
  .contenitore_bottoni_dx a.bottom_solo_mobile { display: block; font: 600 15px/50px var(--ui); }
  form.come_arrivare_new { margin-top: 0 !important; }
}
.testo_info, .testo_da_leggere { font-size: 16px; line-height: 1.6; }
.localita_scheda_new { font: 700 13px/1.3 var(--ui); letter-spacing: 0.06em; color: var(--ochre); }
.localita_scheda_new span { font-size: 14px; letter-spacing: 0; color: var(--ink-soft); }
.localita_scheda_new h1, .contenutiinterni h1 {
  margin: 4px 0 6px;
  font: 400 38px/1.1 var(--read);
  letter-spacing: 0.01em;
  color: var(--ochre);
}
.localita_scheda_new h1 a, .contenutiinterni h1 a { color: var(--ochre); text-decoration: none; }
.h1span { font: 700 13px/1.3 var(--ui); letter-spacing: 0.06em; }
.contenutiinterni { font-size: 16px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .quadrati_home img, .interno, .modulo_finder button { transition: none; }
}

/* ---------- phones and small tablets ---------- */
@media screen and (max-width: 767px) {
  :root { --wide: 100%; }
  body { font-size: 16px; }
  .corpo { width: auto; padding: 0 18px; }

  .precorpo { height: 22px; padding-top: 30px; }
  .slider { display: block; }
  #container { margin-top: 52px; }
  .motore_ricerca_new { margin-top: 0; height: auto; }

  .motore_ricerca_new .titolo_sx { min-height: 0; padding: 0 18px !important; line-height: 1.4 !important; text-align: center; }
  .motore_ricerca_new .solo_bordo { position: static; transform: none; display: block; width: 100%; margin: 12px 0 0; padding: 0; }
  .motore_ricerca_new .ricerca_home { height: auto !important; }
  .motore_ricerca_new .ricerca_home form { width: 100%; gap: 8px; }
  .motore_ricerca_new .ricerca_home .from,
  .motore_ricerca_new .ricerca_home .to { flex: 1; min-width: 0; margin: 0 !important; text-align: left; }
  .motore_ricerca_new .ricerca_home input[type="text"] { flex: 1; width: 100% !important; min-width: 0; padding: 0 8px; }

  .quadrati_home { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 22px; position: static; }
  .quadrati_home img { width: 100%; margin: 0; }

  .box_new_sx, .box_new_dx { float: none; width: 100%; }
  .box_new_sx .mappastatica, .box_new_dx .mappastatica { height: auto; }
  .box_new_sx .col, .box_new_dx .col { margin: 22px 0 0 !important; }
  #round_uno, #round_due, #round_tre { width: 31%; height: auto; }

  .home_float_prenotazioni, .home_float_news_mappe { float: none; width: 100%; margin-top: 26px; }
  .boxprenotazioni, .negoziHome { width: auto; padding: 0; }
  .boxprenotazioni .modulo_finder { width: 100% !important; box-sizing: border-box; }
  .AlberghiHome, .AppartamentiHome, .BebHome, .AgriturismoHome { margin-top: 0; }
  div.elenco { margin: 0; }

  .etichetta { width: auto; margin-top: 0; padding: 0; }
  .etichetta h1, .etichetta h1#h1homepage { padding: 30px 0 12px; font-size: 38px; }
  .descrizione_homepage { margin-top: 20px; font-size: 18px; }

  .contenitore_primosotto { margin-top: 0; }
  .titolo_contenitore_sotto { width: auto; padding: 0; }
  .boxPrimo { float: none; width: auto; padding: 0; margin: 0; }
  .boxPrimo_1 { margin-top: 8px; }
  .boxPrimo div { margin: 0; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line); background-position: 2px 20px; }
  .boxPrimo a { font-size: 16px; }
}

/* ====================================================================
   Icons, language switcher, wordmark (added 2026-10-01)
   Icon outlines are from Lucide (ISC licence).
   ==================================================================== */

/* ---------- round shortcuts: one line-icon family ---------- */
.interno { background-color: transparent; border: 1.5px solid #c9ced3; box-sizing: border-box; }
.interno a.fa { font-size: 0; }
.interno a.fa::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 21px auto 0;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.interno a.fa-video-camera::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E"); }
.interno a.fa-magnifying-glass::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.interno a.fa-list-alt::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8V6Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8V6Z'/%3E%3C/svg%3E"); }
.interno a.fa-film::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M7 3v18'/%3E%3Cpath d='M3 7.5h4'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M3 16.5h4'/%3E%3Cpath d='M17 3v18'/%3E%3Cpath d='M17 7.5h4'/%3E%3Cpath d='M17 16.5h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M7 3v18'/%3E%3Cpath d='M3 7.5h4'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M3 16.5h4'/%3E%3Cpath d='M17 3v18'/%3E%3Cpath d='M17 7.5h4'/%3E%3Cpath d='M17 16.5h4'/%3E%3C/svg%3E"); }
.interno a.fa-camera::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E"); }
.interno a.fa-tags::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.6' fill='%23000'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.6' fill='%23000'/%3E%3C/svg%3E"); }
.interno a:link, .interno a:visited, .interno a:active { color: var(--ink); }
.round:hover > .interno { background-color: var(--orange); border-color: var(--orange); }
.round:hover > .interno a:link, .round:hover > .interno a:visited { color: #fff; }

/* ---------- list rows: a chevron instead of the plus bitmap ---------- */
.AlberghiHome, .AppartamentiHome, .BebHome, .AgriturismoHome,
.alberghiHome, .appartamentiHome, .PrenotazioniHome, .offerteSpecialiHome,
.negoziHome div.elenco, div.elenco {
  padding-left: 0;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9560d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-position: right 2px center !important;
  background-size: 18px;
  background-repeat: no-repeat;
}

/* ---------- hotspots on the header photo ---------- */
.divmostrare, .divmostrare:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='11' fill='%23f37521' stroke='%23fff' stroke-width='2'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' d='M13 8.5v9M8.5 13h9'/%3E%3C/svg%3E"); background-size: 22px; }

/* ---------- wordmark ---------- */
.precorpo_testo { margin-top: -22px; letter-spacing: 0; }
.precorpo_testo img { display: block; height: 36px; width: auto; margin-top: 0; }

/* ---------- language switcher: round flags ---------- */
.bandiere { width: auto; margin: -10px 0 0 18px; }
.bandiere a { display: inline-block; margin-left: 8px; vertical-align: middle; }
.bandiere img {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  padding-left: 24px;
  border-radius: 50%;
  background: center / cover no-repeat;
}
.bandiere a:nth-of-type(1) img, html[lang="it"] .precorpo_menu .bandiere { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Cpath fill='%23009246' d='M0 0h8v24H0z'/%3E%3Cpath fill='%23fff' d='M8 0h8v24H8z'/%3E%3Cpath fill='%23ce2b37' d='M16 0h8v24h-8z'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='11.5' fill='none' stroke='%23fff' stroke-opacity='.35'/%3E%3C/svg%3E"); }
.bandiere a:nth-of-type(2) img, html[lang="en"] .precorpo_menu .bandiere { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Cpath fill='%23012169' d='M0 0h24v24H0z'/%3E%3Cpath stroke='%23fff' stroke-width='4.8' d='M0 0l24 24M24 0L0 24'/%3E%3Cpath stroke='%23c8102e' stroke-width='1.8' d='M0 0l24 24M24 0L0 24'/%3E%3Cpath stroke='%23fff' stroke-width='7' d='M12 0v24M0 12h24'/%3E%3Cpath stroke='%23c8102e' stroke-width='4' d='M12 0v24M0 12h24'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='11.5' fill='none' stroke='%23fff' stroke-opacity='.35'/%3E%3C/svg%3E"); }
.bandiere a:nth-of-type(3) img, html[lang="de"] .precorpo_menu .bandiere { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Cpath fill='%23111' d='M0 0h24v8H0z'/%3E%3Cpath fill='%23dd0000' d='M0 8h24v8H0z'/%3E%3Cpath fill='%23ffce00' d='M0 16h24v8H0z'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='11.5' fill='none' stroke='%23fff' stroke-opacity='.35'/%3E%3C/svg%3E"); }

/* Language selector, rebuilt 2026-10-02. The box is the trigger: it shows the
   current flag and a caret and is as tall as the header, so the panel hangs
   from it without a gap. All three languages are rows of the panel; the
   current one is marked. Opens on hover (mouse), on keyboard focus, and on
   tap or click (refresh/header.js toggles .vt-open). Nothing changes size
   when it opens, so the navigation stays where it is. */
@media screen and (min-width: 768px) {
  html[lang] .precorpo_menu .bandiere {
    position: relative;
    z-index: 30;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin: 0 0 0 14px;
    padding: 0;
    background-repeat: no-repeat;
    background-position: left 4px center;
    background-size: 24px 24px;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
  }
  /* the caret */
  html[lang] .precorpo_menu .bandiere::after {
    content: "";
    position: absolute;
    top: 19px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.18s ease-out;
    pointer-events: none;
  }
  /* the panel: solid, above the photo, flush with the header's lower edge */
  html[lang] .precorpo_menu .bandiere::before {
    content: "";
    position: absolute;
    top: 52px;
    right: 0;
    width: 184px;
    height: 144px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #1c1c1c;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease-out, visibility 0s linear 0.16s;
  }
  /* the rows: flag and language name, 44px tall */
  html[lang] .precorpo_menu .bandiere a {
    position: absolute;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 172px;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 7px;
    color: #fff;
    font: 600 15px/1 var(--ui);
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, background-color 0.12s ease-out;
  }
  html[lang] .precorpo_menu .bandiere a:nth-of-type(1) { top: 58px; }
  html[lang] .precorpo_menu .bandiere a:nth-of-type(2) { top: 102px; }
  html[lang] .precorpo_menu .bandiere a:nth-of-type(3) { top: 146px; }
  html[lang] .precorpo_menu .bandiere a img { flex: 0 0 24px; }
  html[lang] .precorpo_menu .bandiere a:nth-of-type(1)::after { content: "Italiano"; }
  html[lang] .precorpo_menu .bandiere a:nth-of-type(2)::after { content: "English"; }
  html[lang] .precorpo_menu .bandiere a:nth-of-type(3)::after { content: "Deutsch"; }
  html[lang] .precorpo_menu .bandiere a:hover { background-color: rgba(255, 255, 255, 0.14); text-decoration: none; }
  html[lang] .precorpo_menu .bandiere a:focus-visible { background-color: rgba(255, 255, 255, 0.14); outline: 2px solid #fff; outline-offset: -2px; }
  /* current language: marked, heavier, with a tick */
  html[lang="it"] .precorpo_menu .bandiere a:nth-of-type(1),
  html[lang="en"] .precorpo_menu .bandiere a:nth-of-type(2),
  html[lang="de"] .precorpo_menu .bandiere a:nth-of-type(3) {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f37521' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") right 12px center / 16px 16px no-repeat;
  }

  /* open */
  html[lang] .precorpo_menu .bandiere:focus-within a,
  html[lang] .precorpo_menu .bandiere.vt-open a { opacity: 1; pointer-events: auto; }
  html[lang] .precorpo_menu .bandiere:focus-within::before,
  html[lang] .precorpo_menu .bandiere.vt-open::before { opacity: 1; visibility: visible; transition-delay: 0s; }
  html[lang] .precorpo_menu .bandiere:focus-within::after,
  html[lang] .precorpo_menu .bandiere.vt-open::after { transform: rotate(180deg); }
  @media (hover: hover) {
    html[lang] .precorpo_menu .bandiere:hover a { opacity: 1; pointer-events: auto; }
    html[lang] .precorpo_menu .bandiere:hover::before { opacity: 1; visibility: visible; transition-delay: 0s; }
    html[lang] .precorpo_menu .bandiere:hover::after { transform: rotate(180deg); }
  }
}

@media screen and (max-width: 767px) {
  .precorpo_testo { height: auto; margin-top: -22px; }
  .bandiere { width: auto; height: auto; margin: 0; padding: 14px 18px; line-height: 1; text-align: left; }
  .bandiere a { margin: 0 16px 0 0; }
  .bandiere img { width: 30px; height: 30px; padding-left: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html[lang] .bandiere a, html[lang] .bandiere::before, html[lang] .bandiere::after { transition: none; }
}

/* ====================================================================
   Second pass, 2026-10-01: header navigation, list cards, hotel page,
   consent banner
   ==================================================================== */

/* ---------- header navigation ---------- */
.precorpo_menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 26px;
  width: auto;
  margin: -27px 0 0;
}
.precorpo_menu .bandiere { order: 3; float: none; margin: 0; }
.precorpo_menu .infoInterneHeader { order: 2; float: none; }
.vt-nav { order: 1; display: flex; gap: 24px; }
.vt-nav a:link, .vt-nav a:visited {
  color: #fff;
  font: 600 14px/1 var(--ui);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease-out;
}
.vt-nav a:hover { border-bottom-color: var(--orange); text-decoration: none; }

/* ---------- hotel, apartment and shop lists as cards ---------- */
body:has(.elencostrutture_2) { --wide: min(1120px, 92vw); }
.elencostrutture_2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  align-items: start;
  float: left;
  width: calc(100% - 230px);
}
.elencostrutture_2 h2.dentro, .elencostrutture_2 h3.dentro, .elencostrutture_2 > .clear { grid-column: 1 / -1; margin: 14px 0 0; }
.elencostrutture_2 .elenco_guide_tb {
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.15s ease-out, box-shadow 0.2s ease-out;
}
.elencostrutture_2 .elenco_guide_tb:hover { border-color: #aab2b9; box-shadow: 0 8px 22px rgba(31, 42, 51, 0.12); }
.elencostrutture_2 .img_loca { float: none; }
.elencostrutture_2 .img_loca img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0;
  background: var(--wash);
}
.elencostrutture_2 .titoloofferta {
  display: block;
  float: none;
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 16px;
  color: var(--ink-soft);
}
.elencostrutture_2 .titoloofferta strong { display: block; margin: 0 0 2px; font-size: 17px; line-height: 1.3; }

/* ---------- guide index (/guide/), 2026-10-02: the list cards, with the
   guides' square tiles ---------- */
.elencostrutture_2.vt-guide-index { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.elencostrutture_2.vt-guide-index .img_loca img { aspect-ratio: 1; }
.elencostrutture_2.vt-guide-index .titoloofferta { padding: 10px 10px 12px; }
.elencostrutture_2.vt-guide-index .titoloofferta strong { font-size: 13px; overflow-wrap: anywhere; }
.vt-guide-index .vt-guide-intro, .vt-guide-index .vt-guide-all { grid-column: 1 / -1; }
.vt-guide-index .vt-guide-intro { max-width: 68ch; margin: 22px 0 4px; font: 400 18px/1.6 var(--read); color: #2e3942; }
.vt-guide-index .vt-guide-all { margin-top: 10px; }

/* ---------- hotel page ---------- */
.testo_da_leggere { max-width: 68ch; }
.testo_da_leggere p { margin: 0; }
.contenitoreservizi_new { font-size: 15px; line-height: 1.75; }
.contenitoreservizi_new .contenitore_piccolo { width: 33%; box-sizing: border-box; padding-right: 16px; }

/* ---------- consent banner (refresh/consent.js) ---------- */
.vt-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bar);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  font: 400 15px/1.45 var(--ui);
}
.vt-consent p { flex: 1 1 320px; margin: 0; }
.vt-consent a:link, .vt-consent a:visited { color: #fff; text-decoration: underline; }
.vt-consent div { display: flex; gap: 10px; }
.vt-consent button {
  min-width: 112px;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: 700 15px/1 var(--ui);
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.vt-consent button:hover { background: #fff; color: var(--bar); }
#cookieChoiceInfo { display: none !important; }

@media screen and (max-width: 767px) {
  .precorpo_menu { display: none; margin: 1em 0 0; padding-bottom: 8px; gap: 0; }
  .precorpo_menu[style*="block"] { display: block !important; }
  .vt-nav { display: block; padding: 6px 18px 0; }
  .vt-nav a:link, .vt-nav a:visited { display: block; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 17px; }
  .elencostrutture_2 { grid-template-columns: 1fr 1fr; gap: 12px; float: none; width: auto; }
  .elencostrutture_2.vt-guide-index { grid-template-columns: 1fr 1fr; }
  .elencostrutture_2 .titoloofferta { padding: 10px 10px 12px; }
  .elencostrutture_2 .titoloofferta strong { font-size: 15px; }
  .contenitoreservizi_new .contenitore_piccolo { width: 50%; }

  /* hotel page: the two main actions stay within reach */
  body:has(#booking_valtline) { padding-bottom: 64px; }
  .contenitore_bottoni_dx #booking_valtline {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: 100%;
  }
  .contenitore_bottoni_dx #booking_valtline > div { min-height: 58px; border-radius: 0; }
  .contenitore_bottoni_dx:has(a.bottom_solo_mobile) #booking_valtline { width: 50%; }
  .contenitore_bottoni_dx a.bottom_solo_mobile {
    left: 50%;
    width: 50%;
    height: 58px;
    z-index: 60;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: 600 14px/58px var(--ui);
  }
  .contenitore_bottoni_dx a.bottom_solo_mobile img { float: left; margin: 13px 8px 0 12px !important; }
  .vt-consent { left: 10px; right: 10px; bottom: 10px; }
}

/* ---------- bormio.it only: header photos from the site's own gallery ---------- */
@supports selector(li:has(img)) {
  .slider .slides li:has(img[src*="Bormio-piste"]) { background: url(hero/bormio-summer.jpg?v=1) center / cover no-repeat; }
  .slider .slides li:has(img[src*="campanili"]) { background: url(hero/bormio-winter.jpg?v=1) center / cover no-repeat; }
  .slider .slides li:has(img[src*="bormio-paese"]) { background: url(hero/bormio-evening.jpg?v=1) center / cover no-repeat; }
  .slider .slides li:has(img[src*="Bormio-piste"]) img.immagini_header,
  .slider .slides li:has(img[src*="campanili"]) img.immagini_header,
  .slider .slides li:has(img[src*="bormio-paese"]) img.immagini_header { opacity: 0; }
  /* the old hotspots pointed at places in the old photos */
  .slider .linkmostrare, .slider .divmostrarescritta, .slider .grid { display: none !important; }
}

/* ====================================================================
   Third pass, 2026-10-02: the header as one unit. One height (52px) on
   every page type, everything centred on one line, equal gaps. Hotel and
   shop pages have their own menu (.infoInterneHeader): same metrics.
   ==================================================================== */
html[lang] .precorpo { height: 52px; padding: 0; box-sizing: border-box; }

@media screen and (min-width: 768px) {
  html[lang] .precorpo_testiheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    float: none;
    width: auto;
    max-width: var(--wide);
    height: 52px;
    margin: 0 auto;
    padding: 0;
  }
  html[lang] .precorpo_testo { flex: 0 0 auto; float: none; width: auto; height: 36px; margin: 0; padding: 0; line-height: 0; }
  html[lang] .precorpo_testo a { display: block; }
  html[lang] .precorpo_menu {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    float: none;
    width: auto;
    height: 52px;
    margin: 0;
    padding: 0;
    position: relative;
  }
  html[lang] .precorpo_menu .vt-nav { order: 1; display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; }
  html[lang] .precorpo_menu .infoInterneHeader {
    order: 2;
    display: flex;
    align-items: stretch;
    float: none;
    width: auto;
    height: 52px;
    margin: 0;
    padding: 0;
    position: static;
    font-size: 14px;
    line-height: 1;
  }
  html[lang] .precorpo_menu .infoInterneHeader .divider { display: none; }
  html[lang] .precorpo_menu .vt-nav a,
  html[lang] .precorpo_menu .infoInterneHeader a {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    box-sizing: border-box;
    color: #fff;
    font: 600 14px/1 var(--ui);
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
  }
  html[lang] .precorpo_menu .vt-nav a::after,
  html[lang] .precorpo_menu .infoInterneHeader a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 11px;
    height: 2px;
    background: transparent;
    transition: background-color 0.15s ease-out;
  }
  html[lang] .precorpo_menu .vt-nav a:hover::after,
  html[lang] .precorpo_menu .vt-nav a:focus-visible::after,
  html[lang] .precorpo_menu .vt-nav a[aria-current]::after,
  html[lang] .precorpo_menu .infoInterneHeader a:hover::after,
  html[lang] .precorpo_menu .infoInterneHeader a:focus-visible::after { background: var(--orange); }
  html[lang] .precorpo_menu .vt-nav a:focus-visible,
  html[lang] .precorpo_menu .infoInterneHeader a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
}

/* hotel and shop pages: the content starts under the 52px header, not behind it */
@media screen and (min-width: 768px) {
  html[lang] .centrato:has(> .terzoblocco) { margin-top: 52px; }
}

/* phones: the open menu as even rows, 48px each */
@media screen and (max-width: 767px) {
  /* the phone header keeps its own box: 22px + 30px padding = 52px, as before */
  html[lang] .precorpo { height: 22px; padding: 30px 0 0; box-sizing: content-box; }
  html[lang] .precorpo_testo { margin-top: -22px; }
  html[lang] .precorpo_menu .vt-nav,
  html[lang] .precorpo_menu .infoInterneHeader { display: block; float: none; width: auto; height: auto; margin: 0; padding: 6px 18px 0; position: static; }
  html[lang] .precorpo_menu .infoInterneHeader .divider { display: none; }
  html[lang] .precorpo_menu .vt-nav a,
  html[lang] .precorpo_menu .infoInterneHeader a {
    display: flex;
    align-items: center;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font: 600 17px/1.2 var(--ui);
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  html[lang] .precorpo_menu .vt-nav a[aria-current] { color: var(--orange); }
  html[lang] .precorpo_menu .infoInterneHeader:empty { display: none; }
  html[lang] .precorpo_menu .bandiere { background-image: none; padding: 10px 18px 12px; }
  html[lang] .precorpo_menu .bandiere a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 8px 0 -9px; }
}

@media (prefers-reduced-motion: reduce) {
  html[lang] .precorpo_menu .bandiere a, html[lang] .precorpo_menu .bandiere::before, html[lang] .precorpo_menu .bandiere::after,
  html[lang] .precorpo_menu .vt-nav a::after, html[lang] .precorpo_menu .infoInterneHeader a::after { transition: none; }
}

/* ---------- the "listen" button: play / pause drawn here, so Font Awesome 6 (269 KB of fonts
   from a CDN, used for these two icons only) need not be loaded ---------- */
.fa-solid.fa-play::before, .fa-solid.fa-pause::before {
  content: "" !important;
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.06em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5v17l14-8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5v17l14-8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fa-solid.fa-pause::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4h4v16H6zM14 4h4v16h-4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4h4v16H6zM14 4h4v16h-4z'/%3E%3C/svg%3E");
}

/* ---------- guide tiles, 2026-10-02 (fixes/2026-10-02-guide-tiles) ----------
   Design: tracking/legacy-refresh/guide-thumbs/ (guide-tiles.css, unchanged below).
   One tile for the homepage row (.vt-gt-row) and the guide index (.vt-gt-grid).
   The photo is a plain <img>, the title is HTML text. Markup: kernel/vt_guide_tiles.php.
   Site tokens first; nothing else differs between sites. */
.vt-gt-row,
.vt-gt-grid {
  --gt-accent: #f37521;
  --gt-on-accent: #1f1204;
  --gt-deep: #1f2a33;
  --gt-font: "Iowan Old Style", "Palatino Linotype", Palatino, Cambria, Georgia, serif;
  --gt-weight: 400;
  --gt-tracking: 0.01em;
  --gt-radius: 6px;
  --gt-scrim: 12 18 22;
}
.vt-gt-row,
.vt-gt-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vt-gt-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vt-gt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 860px; }

.vt-gt {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;             /* the box exists before the photo arrives: no layout shift */
  overflow: hidden;
  border-radius: var(--gt-radius, 6px);
  background: var(--gt-deep, #1f2a33);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.vt-gt:link, .vt-gt:visited, .vt-gt:hover, .vt-gt:active { color: #fff; text-decoration: none; }
.vt-gt picture { display: contents; }
.vt-gt img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  float: none;
  max-width: none;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* The scrim. The text is confined to the lower 38% of the tile
   (.vt-gt__label max-height) and the scrim there never drops below 0.62:
   white text keeps at least 5.4:1 even over a pure white photo. Above that
   line it fades out quickly so the subject stays clear. */
.vt-gt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgb(var(--gt-scrim, 12 18 22) / 0.90) 0%,
    rgb(var(--gt-scrim, 12 18 22) / 0.80) 20%,
    rgb(var(--gt-scrim, 12 18 22) / 0.62) 38%,
    rgb(var(--gt-scrim, 12 18 22) / 0.20) 55%,
    rgb(var(--gt-scrim, 12 18 22) / 0) 70%
  );
  pointer-events: none;
}
.vt-gt__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-height: 38%;                 /* the text never climbs above the dense part of the scrim */
  overflow: hidden;
  padding: 0 14px 14px;
  box-sizing: border-box;
}
.vt-gt__title {
  display: block;
  font-family: var(--gt-font, Georgia, "Times New Roman", serif);
  font-weight: var(--gt-weight, 400);
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: var(--gt-tracking, 0);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* accent tick above the title: the only place the site colour appears */
.vt-gt__title::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 9px;
  border-radius: 2px;
  background: var(--gt-accent, #f37521);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.vt-gt__sub {
  display: block;
  margin-top: 5px;
  font: 400 12.5px/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
  color: rgb(255 255 255 / 0.88);
}
/* the homepage row is narrow: subtitles only where there is room */
.vt-gt-row .vt-gt__sub { display: none; }

/* When the template can only print the database name (today in capitals:
   "CICLISMO, E-BIKE, MTB"), add .vt-gt--caps: smaller, tracked capitals. */
.vt-gt--caps .vt-gt__title {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* hover and keyboard focus */
@media (hover: hover) {
  .vt-gt:hover img { transform: scale(1.045); }
  .vt-gt:hover .vt-gt__title::before { width: 44px; }
}
.vt-gt:focus-visible {
  outline: 3px solid var(--gt-accent, #f37521);
  outline-offset: 3px;
}
.vt-gt:focus-visible .vt-gt__title::before { width: 44px; }
.vt-gt:focus-visible .vt-gt__title { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.vt-gt:active img { transform: scale(1.02); }

/* "All guides": same box, no photo, the site's deep colour */
.vt-gt--all { background: var(--gt-deep, #1f2a33); }
.vt-gt--all::after { display: none; }
.vt-gt--all .vt-gt__label { max-height: none; }   /* no photo behind: no limit needed */
.vt-gt--all .vt-gt__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gt-accent, #f37521);
  color: var(--gt-on-accent, #1a1206);
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.vt-gt--all .vt-gt__arrow svg { width: 16px; height: 16px; display: block; }
.vt-gt--all .vt-gt__sub { display: block; }
@media (hover: hover) {
  .vt-gt--all:hover .vt-gt__arrow { transform: translate(2px, -2px); }
}
/* faint contour lines so the tile is not a flat block */
.vt-gt--all::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 8%, rgb(255 255 255 / 0.10), rgb(255 255 255 / 0) 55%),
    repeating-radial-gradient(circle at 20% 10%, rgb(255 255 255 / 0.055) 0 1px, rgb(255 255 255 / 0) 1px 22px);
  pointer-events: none;
}

/* ---------- widths ---------- */
@media (max-width: 900px) {
  .vt-gt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .vt-gt-row, .vt-gt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vt-gt__label { padding: 0 12px 12px; }
  .vt-gt__title { font-size: 16px; }
  .vt-gt__title::before { margin-bottom: 7px; }
  .vt-gt-grid .vt-gt:not(.vt-gt--all) .vt-gt__sub { display: none; }   /* 174px tiles: title only */
}
@media (prefers-reduced-motion: reduce) {
  .vt-gt img, .vt-gt__title::before, .vt-gt--all .vt-gt__arrow { transition: none; }
  .vt-gt:hover img, .vt-gt:active img { transform: none; }
}

/* ---------- where the tiles sit in the CMS pages ---------- */
/* homepage: the old .quadrati_home box stays (other rules test for it); the row lays itself out */
.quadrati_home.vt-gt-home { display: block; }
.vt-gt-row > li,
.vt-gt-grid > li { display: block; float: none; margin: 0; padding: 0; list-style: none; background: none; }
/* guide index: the row of tiles takes the whole width of the list grid */
.vt-guide-index .vt-gt-grid { grid-column: 1 / -1; width: 100%; margin: 6px 0 0; }
/* a guide that has no new photo yet: the old square tile (title drawn in the picture) on the
   deep colour, with the name as text in the strip below it */
.vt-gt--old img { inset: 0 0 auto 0; height: auto; aspect-ratio: 1; }
.vt-gt--old::after { display: none; }
.vt-gt--old .vt-gt__label { top: 80%; max-height: none; display: flex; align-items: center; padding: 0 10px; }
.vt-gt--old .vt-gt__title { font-size: 10.5px; line-height: 1.2; }
.vt-gt--old .vt-gt__title::before { display: none; }
.vt-gt--old:hover img, .vt-gt--old:active img { transform: none; }
