[hidden] {
  display: none !important;
}
.base-map canvas {
  filter: saturate(0.72) brightness(1.04) contrast(0.92);
}
.sentinel-map canvas {
  filter: brightness(1.3) contrast(0.9) saturate(1.04);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.language select {
  border: 1px solid #cbd8d3;
  background: #fff;
  color: #173d36;
  border-radius: 999px;
  padding: 10px 28px 10px 12px;
  font-weight: 800;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#status i {
  font-style: normal;
}
.legend b {
  font-weight: 700;
}
@media (max-width: 700px) {
  .language select {
    padding: 8px 22px 8px 9px;
    font-size: 12px;
  }
  .header-actions {
    gap: 5px;
  }
}
.intro-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(10, 28, 24, 0.66);
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(3px);
}
.intro-card {
  position: relative;
  width: min(520px, 100%);
  min-height: 570px;
  background: #fff;
  border-radius: 4px 34px 34px 34px;
  padding: 48px 48px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}
.intro-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #173d36;
  font-size: 32px;
  line-height: 1;
}
.intro-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
}
.intro-logo span {
  width: 82px;
  height: 82px;
  border-radius: 50% 50% 45% 55%;
  display: grid;
  place-items: center;
  background: #f26a3d;
  color: #fff;
  font:
    700 48px Georgia,
    serif;
  transform: rotate(-5deg);
}
.intro-logo small {
  margin-top: 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #173d36;
}
.intro-card h2 {
  max-width: 420px;
  margin: 0;
  font:
    500 38px/1.08 Georgia,
    "Times New Roman",
    serif;
  color: #173d36;
}
.intro-card p {
  max-width: 390px;
  margin: 42px 0 18px;
  font-size: 21px;
  line-height: 1.45;
  color: #284d45;
}
.intro-card em {
  font-size: 15px;
  color: #60756f;
}
.intro-accept {
  margin-top: auto;
  border: 0;
  border-radius: 4px;
  background: #173d36;
  color: #fff;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 750;
  box-shadow: 0 7px 18px rgba(23, 61, 54, 0.22);
}
@media (max-width: 700px) {
  .intro-overlay {
    padding: 10px;
  }
  .intro-card {
    min-height: min(620px, calc(100vh - 20px));
    padding: 36px 25px 28px;
    border-radius: 3px 25px 25px 25px;
  }
  .intro-logo {
    margin-bottom: 20px;
  }
  .intro-logo span {
    width: 68px;
    height: 68px;
    font-size: 40px;
  }
  .intro-card h2 {
    font-size: 30px;
  }
  .intro-card p {
    font-size: 18px;
    margin: 34px 0 17px;
  }
  .intro-card em {
    font-size: 14px;
  }
  .intro-accept {
    width: 100%;
    padding: 15px;
  }
}
.language {
  position: relative;
}
.language > button {
  width: 44px;
  height: 42px;
  border: 1px solid #cbd8d3;
  background: #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(23, 61, 54, 0.08);
}
#language-menu {
  position: absolute;
  z-index: 60;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #d8e0dd;
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 12px 35px rgba(23, 61, 54, 0.25);
}
#language-menu button {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 13px;
  font-size: 22px;
  padding: 0;
}
#language-menu button:hover,
#language-menu button:focus-visible,
#language-menu button[aria-current="true"] {
  background: #e6efe9;
  outline: 0;
}
@media (max-width: 700px) {
  .language > button {
    width: 39px;
    height: 38px;
    font-size: 20px;
  }
  #language-menu {
    top: 44px;
  }
}
.weather-button {
  width: 44px;
  height: 42px;
  border: 1px solid #cbd8d3;
  background: #fff7dc;
  color: #d57b15;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(23, 61, 54, 0.08);
}
#weather-panel {
  position: fixed;
  z-index: 31;
  right: 18px;
  top: 88px;
  width: 410px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  background: var(--cream);
  border-radius: 25px;
  padding: 25px;
  box-shadow: 0 18px 60px rgba(23, 61, 54, 0.3);
}
#weather-panel .panel-head h2 {
  margin-bottom: 16px;
}
.weather-current {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, #fff5d4, #e9f4ed);
  border-radius: 20px;
  padding: 17px;
  margin-bottom: 14px;
}
.weather-current-icon {
  font-size: 42px;
}
.weather-current strong {
  display: block;
  font:
    600 31px Georgia,
    serif;
}
.weather-current small {
  display: block;
  color: #5d756e;
  font-size: 11px;
  margin-top: 3px;
}
.weather-days {
  display: grid;
  gap: 7px;
}
.weather-day {
  display: grid;
  grid-template-columns: 77px 27px 1fr;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dce4e1;
  border-radius: 15px;
  padding: 10px 12px;
}
.weather-day time {
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}
.weather-day .weather-icon {
  font-size: 20px;
}
.weather-values {
  font-size: 12px;
  color: #34564e;
}
.weather-values b {
  font-size: 13px;
}
.weather-values small {
  display: block;
  margin-top: 3px;
  color: #71867f;
}
.weather-source {
  display: block;
  margin-top: 13px;
  color: #55736b;
  font-size: 10px;
  text-align: center;
}
.weather-error {
  padding: 18px;
  background: #fff;
  border-radius: 15px;
  color: #80513f;
}
@media (max-width: 700px) {
  .weather-button {
    width: 39px;
    height: 38px;
    font-size: 19px;
  }
  #weather-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 78vh;
    border-radius: 25px 25px 0 0;
    padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  }
  .weather-day {
    grid-template-columns: 72px 25px 1fr;
    padding: 9px 11px;
  }
}
.heat-advice {
  margin-top: 14px;
  border: 1px solid #c9d9d3;
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
}
.heat-advice summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: #174e42;
  font-size: 13px;
  font-weight: 850;
}
.heat-advice summary::-webkit-details-marker {
  display: none;
}
.heat-advice summary:after {
  content: "+";
  float: right;
  font-size: 20px;
  line-height: 14px;
}
.heat-advice[open] summary {
  background: #e7f1eb;
}
.heat-advice[open] summary:after {
  content: "−";
}
.heat-advice ul {
  margin: 0;
  padding: 13px 22px 4px 34px;
}
.heat-advice li {
  margin-bottom: 9px;
  color: #405f57;
  font-size: 11px;
  line-height: 1.45;
}
.heat-emergency {
  margin: 8px 13px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff0e8;
  color: #733d2c;
  font-size: 10px;
  line-height: 1.45;
}
.heat-emergency b {
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.heat-disclaimer {
  margin: 9px 15px;
  color: #71867f;
  font-size: 9px;
  line-height: 1.4;
}
.heat-sources {
  display: flex;
  gap: 12px;
  padding: 0 15px 14px;
}
.heat-sources a {
  color: #146b58;
  font-size: 9px;
  font-weight: 750;
}
.heat-advice-open {
  width: 100%;
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid #c9d9d3;
  border-radius: 17px;
  background: #e7f1eb;
  color: #174e42;
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
}
.heat-advice-open span {
  font-size: 22px;
}
.heat-advice-open b {
  font-size: 14px;
}
.heat-advice-open i {
  font-style: normal;
  font-size: 21px;
}
.modal-open {
  overflow: hidden;
}
.heat-advice-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #f8f6ef;
  color: #174e42;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(28px + env(safe-area-inset-top))
    max(28px, calc((100vw - 760px) / 2))
    calc(34px + env(safe-area-inset-bottom));
}
.heat-advice-modal > header {
  position: relative;
  display: block;
  border-bottom: 1px solid #d5e0dc;
  padding: 8px 72px 25px 0;
  margin-bottom: 20px;
}
.heat-advice-modal > header h2 {
  font:
    600 clamp(34px, 6vw, 52px)/1.03 Georgia,
    serif;
  margin: 9px 0 0;
  color: #174e42;
}
.heat-advice-modal > header .eyebrow {
  color: #ef6b42;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.heat-advice-modal #heat-advice-close {
  position: fixed;
  z-index: 2;
  top: calc(20px + env(safe-area-inset-top));
  right: max(22px, calc((100vw - 780px) / 2));
  width: 56px;
  height: 56px;
  border: 1px solid #cad8d3;
  border-radius: 50%;
  background: #fff;
  color: #174e42;
  font-size: 36px;
  line-height: 1;
}
.heat-advice-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: heat;
}
.heat-advice-content li {
  counter-increment: heat;
  position: relative;
  margin: 0 0 13px;
  padding: 18px 18px 18px 62px;
  background: #fff;
  border: 1px solid #d9e3df;
  border-radius: 18px;
  color: #365951;
  font-size: clamp(18px, 3.8vw, 22px);
  line-height: 1.5;
}
.heat-advice-content li:before {
  content: counter(heat);
  position: absolute;
  left: 17px;
  top: 17px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a735e;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.heat-advice-modal .heat-emergency {
  margin: 24px 0 16px;
  padding: 20px;
  border-radius: 18px;
  font-size: clamp(18px, 3.7vw, 21px);
  line-height: 1.5;
}
.heat-advice-modal .heat-emergency b {
  font-size: 15px;
  margin-bottom: 7px;
}
.heat-advice-modal .heat-disclaimer {
  margin: 15px 0;
  color: #607a73;
  font-size: 16px;
  line-height: 1.5;
}
.heat-advice-modal .heat-sources {
  padding: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.heat-advice-modal .heat-sources a {
  padding: 12px 15px;
  border: 1px solid #bfd2cb;
  border-radius: 999px;
  background: #fff;
  color: #146b58;
  font-size: 15px;
  font-weight: 800;
}
@media (max-width: 700px) {
  .heat-advice-modal {
    padding-left: 20px;
    padding-right: 20px;
  }
  .heat-advice-modal > header {
    padding-right: 62px;
  }
  .heat-advice-modal #heat-advice-close {
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .heat-advice-content li {
    padding: 16px 14px 16px 56px;
  }
  .heat-advice-content li:before {
    left: 14px;
    top: 15px;
  }
}
.heat-advice-modal #heat-advice-close {
  right: calc(20px + env(safe-area-inset-right));
}
.intro-overlay {
  display: block;
  padding: 0;
  background: #123f35;
  backdrop-filter: none;
}
.intro-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  padding: calc(28px + env(safe-area-inset-top)) clamp(26px, 7vw, 72px)
    calc(24px + env(safe-area-inset-bottom));
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(7, 35, 28, 0.18) 0%,
      rgba(7, 35, 28, 0.05) 35%,
      rgba(7, 35, 28, 0.82) 100%
    ),
    url("../assets/intro-parco-menago.jpg") center center/cover no-repeat;
  box-shadow: none;
  color: #fff;
}
.intro-card:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18px;
  background: #f8f6ef;
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}
.intro-close {
  z-index: 2;
  right: calc(18px + env(safe-area-inset-right));
  top: calc(18px + env(safe-area-inset-top));
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(10, 43, 35, 0.32);
  color: #fff;
  font-size: 34px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.intro-logo {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  margin: 0;
}
.intro-logo span {
  width: 66px;
  height: 66px;
  background: #f26a3d;
  color: #fff;
  font-size: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.intro-logo small {
  margin-top: 10px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
.intro-card h2 {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  max-width: 10ch;
  color: #fff;
  font:
    800 clamp(48px, 12vw, 92px)/0.94 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -0.055em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.intro-card p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 22px 0 8px;
  color: #fff;
  font-size: clamp(19px, 4vw, 25px);
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.intro-card em {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.7);
}
.intro-accept {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: #f26a3d;
  color: #fff;
  padding: 15px 27px;
  font-size: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.intro-photo-credit {
  position: relative;
  z-index: 1;
  margin: 12px 0 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px #000;
}
@media (max-width: 700px) {
  .intro-overlay {
    padding: 0;
  }
  .intro-card {
    min-height: 100%;
    padding: calc(22px + env(safe-area-inset-top)) 24px
      calc(24px + env(safe-area-inset-bottom));
    border-radius: 0;
    background-position: 54% center;
  }
  .intro-logo span {
    width: 58px;
    height: 58px;
    font-size: 35px;
  }
  .intro-card h2 {
    font-size: clamp(46px, 14vw, 68px);
  }
  .intro-card p {
    margin-top: 18px;
    font-size: 19px;
  }
  .intro-accept {
    width: auto;
    padding: 14px 25px;
  }
  .intro-photo-credit {
    margin-bottom: 8px;
  }
}
.intro-card {
  background: #123f35;
}
.intro-slides {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #123f35;
}
.intro-slides span {
  position: absolute;
  inset: -1px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  animation: introLandscape 18s infinite ease-in-out;
}
.intro-slides span:nth-child(1) {
  background-image: url("../assets/intro-landscape-1.jpg?v=20260830-local-01");
}
.intro-slides span:nth-child(2) {
  background-image: url("../assets/intro-landscape-2.jpg?v=20260830-local-02");
  animation-delay: 6s;
}
.intro-slides span:nth-child(3) {
  background-image: url("../assets/intro-landscape-3.jpg?v=20260830-local-03");
  animation-delay: 12s;
}
.intro-card:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 25, 21, 0.2) 0%,
    rgba(5, 25, 21, 0.04) 34%,
    rgba(5, 25, 21, 0.84) 100%
  );
}
.intro-card:after {
  z-index: 3;
}
.intro-close,
.intro-logo,
.intro-card h2,
.intro-card p,
.intro-card em,
.intro-accept,
.intro-photo-credit {
  z-index: 2;
}
@keyframes introLandscape {
  0%,
  29% {
    opacity: 1;
    transform: scale(1.035);
  }
  34%,
  95% {
    opacity: 0;
    transform: scale(1.09);
  }
  100% {
    opacity: 1;
    transform: scale(1.035);
  }
}
@media (max-width: 700px) {
  .intro-slides span {
    background-position: center center;
  }
  .intro-slides span:nth-child(1) {
    background-position: 62% center;
  }
  .intro-slides span:nth-child(2) {
    background-position: center center;
  }
  .intro-slides span:nth-child(3) {
    background-position: 54% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-slides span {
    animation: none;
    transform: none;
  }
  .intro-slides span:first-child {
    opacity: 1;
  }
}
.intro-card p.intro-name {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.42;
}
.brand[role="button"] {
  cursor: pointer;
  border-radius: 12px;
}
.brand[role="button"]:focus-visible {
  outline: 3px solid rgba(23, 91, 73, 0.42);
  outline-offset: 5px;
}
@media (max-width: 700px) {
  .intro-card p.intro-name {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.34;
  }
}
@media (max-width: 700px) {
  .intro-card {
    height: 100dvh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .intro-card:after {
    display: none;
  }
  .intro-card h2 {
    margin: 22px 0 0;
    font-size: clamp(44px, 13vw, 60px);
  }
  .intro-card p {
    font-size: 18px;
  }
  .intro-card p.intro-name {
    font-size: 14px;
    line-height: 1.36;
  }
  .intro-accept {
    flex: 0 0 auto;
    margin-top: 16px;
  }
}

/* The masthead reuses one opening landscape and changes it on every full page load. */
body[class*="header-landscape-"] > header {
  background-color: #eef3ee;
  background-position: center 48%;
  background-size: cover;
  border-bottom-color: rgba(16, 63, 52, 0.22);
}
body.header-landscape-1 > header {
  background-image:
    linear-gradient(rgba(247, 245, 238, 0.58), rgba(238, 244, 239, 0.68)),
    url("../assets/intro-landscape-1.jpg?v=20260830-local-01");
}
body.header-landscape-2 > header {
  background-image:
    linear-gradient(rgba(247, 245, 238, 0.58), rgba(238, 244, 239, 0.68)),
    url("../assets/intro-landscape-2.jpg?v=20260830-local-02");
}
body.header-landscape-3 > header {
  background-image:
    linear-gradient(rgba(247, 245, 238, 0.58), rgba(238, 244, 239, 0.68)),
    url("../assets/intro-landscape-3.jpg?v=20260830-local-03");
}
@media (min-width: 701px) {
  body[class*="header-landscape-"] > header {
    border-bottom-color: transparent;
    box-shadow: 0 9px 20px rgba(16, 63, 52, 0.08);
  }
  body[class*="header-landscape-"] > header::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: -25px;
    height: 26px;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(232, 239, 234, 0.62) 0%,
      rgba(232, 239, 234, 0.24) 46%,
      rgba(232, 239, 234, 0) 100%
    );
  }
}
.panel-section {
  display: block;
  margin: 14px 0 7px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  color: #71867f;
}
.basemap-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 8px;
}
.basemap-switch button {
  min-height: 76px;
  border: 1px solid #d4ded9;
  background: #fff;
  border-radius: 15px;
  color: #516b64;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 9px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 750;
}
.basemap-switch button i {
  font-style: normal;
  font-size: 18px;
  margin-bottom: 3px;
}
.basemap-switch button small {
  display: block !important;
  margin-top: 2px !important;
  font-size: 8px !important;
  color: #72857f !important;
}
.basemap-switch button.active {
  border-color: #146b58;
  background: #e3efe9;
  color: #146b58;
  box-shadow: inset 0 0 0 1px #146b58;
}
.basemap-note {
  min-height: 30px;
  margin: 0 2px 12px;
  font-size: 9px;
  line-height: 1.35;
  color: #68817b;
}
.basemap-switch + .panel-section {
  margin-top: 4px;
}
@media (max-width: 390px) {
  .basemap-switch {
    grid-template-columns: 1fr;
  }
  .basemap-switch button {
    min-height: 52px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-content: center;
  }
  .basemap-switch button i {
    grid-row: 1/3;
    margin: 0;
  }
  .basemap-switch button small {
    grid-column: 2;
  }
}
.panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 2px 0 12px;
  padding: 4px;
  background: #e5ece8;
  border-radius: 15px;
}
.panel-tabs button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #60766f;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 800;
}
.panel-tabs button.active {
  background: #fff;
  color: #146b58;
  box-shadow: 0 2px 8px rgba(23, 61, 54, 0.12);
}
.stats-section {
  margin-top: 12px;
}
.stats-section h3 {
  margin: 0 0 9px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #68817b;
}
.stats-oasis-chart {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
}
.stats-donut {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #fff 0 49%, transparent 51%),
    conic-gradient(
      #f26a3d 0 var(--building),
      #15956a var(--building) var(--park),
      #aebdb8 var(--park) 100%
    );
}
.stats-donut strong {
  font:
    600 25px Georgia,
    serif;
}
.stats-oasis-chart ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats-oasis-chart li {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 10px;
  color: #55716a;
}
.stats-oasis-chart li i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stats-oasis-chart li b {
  font-size: 13px;
  color: #173d36;
}
.stats-building {
  background: #f26a3d;
}
.stats-park {
  background: #15956a;
}
.stats-other {
  background: #aebdb8;
}
.stats-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px;
  margin: 9px 0;
  font-size: 10px;
  color: #55716a;
}
.stats-bar-row b {
  font-size: 11px;
  color: #173d36;
}
.stats-bar-row > i {
  grid-column: 1/3;
  height: 9px;
  background: #dce7e2;
  border-radius: 6px;
  overflow: hidden;
}
.stats-bar-row > i em {
  display: block;
  min-width: 3px;
  height: 100%;
  background: #15956a;
  border-radius: 6px;
}
.stats-bar-row.other > i em {
  background: #8bb5a4;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.stats-grid > div {
  min-height: 76px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce4e1;
  border-radius: 15px;
}
.stats-grid b,
.stats-grid span,
.stats-grid small {
  display: block;
}
.stats-grid b {
  font:
    600 22px Georgia,
    serif;
  color: #173d36;
}
.stats-grid span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 750;
  color: #55716a;
}
.stats-grid small {
  margin-top: 4px;
  font-size: 8px;
  color: #7a8e88;
}
.stats-method {
  margin: 12px 2px 0;
  font-size: 8px;
  line-height: 1.4;
  color: #71867f;
}
@media (max-width: 700px) {
  #panel {
    max-height: calc(100dvh - 10px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .panel-head {
    position: sticky;
    top: -25px;
    z-index: 3;
    background: var(--cream);
    padding-top: 25px;
  }
  .panel-head button {
    flex: 0 0 auto;
  }
}
.directions-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 21px;
  background: #173d36;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(23, 61, 54, 0.18);
}
.directions-button span {
  font-size: 17px;
  transform: rotate(-35deg);
}
.directions-button:hover,
.directions-button:focus-visible {
  background: #146b58;
  outline: 3px solid rgba(20, 107, 88, 0.2);
}
.wikipedia-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #b8cbc4;
  border-radius: 22px;
  background: #fff;
  color: #173d36;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.wikipedia-button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6efe9;
  font:
    700 15px Georgia,
    serif;
}
.wikipedia-button + .directions-button {
  margin-top: 10px;
}
.wikipedia-button:hover,
.wikipedia-button:focus-visible {
  background: #e6efe9;
  outline: 3px solid rgba(20, 107, 88, 0.15);
}

@media (min-width: 701px) {
  #sheet {
    width: 340px;
    max-height: 52vh;
    padding: 22px 23px;
    border-radius: 5px 23px 23px 23px;
  }
  #close {
    width: 32px;
    height: 32px;
    right: 13px;
    top: 13px;
    font-size: 19px;
  }
  #details {
    padding-right: 20px;
  }
  #details h2 {
    font-size: 25px;
    line-height: 1.08;
    margin-bottom: 12px;
  }
  #details p {
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.35;
  }
  #details .kind {
    font-size: 9px;
    padding: 5px 9px;
    margin-bottom: 9px;
  }
}

@media (max-width: 700px) {
  .directions-button {
    min-height: 44px;
  }
}

.walking-route-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #e1efe8;
  color: #124f42;
  font-size: 12px;
}
.walking-route-info span {
  font-size: 17px;
}
.walking-route-info strong {
  font-size: 13px;
}
.walking-route-elevation {
  grid-column: 2/-1;
  display: block;
  padding-top: 5px;
  border-top: 1px solid rgba(18, 79, 66, 0.18);
  font-size: 11px;
  line-height: 1.45;
}
.walking-route-elevation b {
  font-size: inherit;
}
.walking-route-info.loading,
.walking-route-info.error {
  display: block;
  color: #536f68;
}
.walking-route-info.error {
  background: #f3e8e2;
  color: #8b4337;
}
.address-symbol {
  border: 2px solid #6e5747;
  background: #fff;
  color: #6e5747;
  font-weight: 900;
  font-size: 13px;
}
.ol-layer canvas {
  image-rendering: auto;
}
.manual-position-prompt {
  position: fixed;
  z-index: 26;
  left: 50%;
  bottom: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 11px 12px 11px 16px;
  border-radius: 999px;
  background: #082f26;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(8, 47, 38, 0.32);
  transform: translateX(-50%);
}
.manual-position-prompt[hidden] {
  display: none;
}
.manual-position-prompt button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
nav #locate {
  background: #fff;
  color: var(--ink);
}
nav #manual-position {
  background: #edf4f1;
  color: var(--ink);
}
#manual-position.active {
  background: #176f5a;
  color: #fff;
  outline: 3px solid rgba(23, 111, 90, 0.25);
}
#map.manual-position-mode,
#map.manual-position-mode canvas {
  cursor: crosshair !important;
}
@media (max-width: 700px) {
  nav {
    left: 10px;
    right: 10px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 5px;
  }
  nav button {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    font-size: 10px;
    gap: 4px;
  }
  .manual-position-prompt {
    bottom: 108px;
    width: max-content;
    font-size: 12px;
  }
  nav i {
    font-size: 16px;
  }
  .legend {
    display: none;
  }
}
.tree-symbol {
  background: #e4f0e5;
  color: #176f40;
  font-size: 16px;
  border: 1px solid #9bc3a4;
}
.shadow-symbol {
  background: #344a5d;
  color: #fff;
  font-size: 19px;
}
#shadow-status.shadow-live {
  position: absolute;
  z-index: 17;
  left: 0;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: none;
  transform: none;
  background: rgba(29, 43, 56, 0.9);
  color: #fff;
  padding: 8px 13px;
  border-radius: 18px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 18px rgba(13, 26, 36, 0.25);
  backdrop-filter: blur(7px);
}
body:has(#manual-position-prompt:not([hidden])) #shadow-status {
  display: none;
}
.shadow-unavailable {
  opacity: 0.46;
}
.shadow-unavailable input,
.shadow-unavailable span {
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .welcome {
    top: 74px;
    left: 12px;
    right: 72px;
    width: auto;
    padding: 6px;
    border-radius: 27px;
    background: rgba(247, 245, 238, 0.93);
    box-shadow: 0 8px 25px rgba(23, 61, 54, 0.2);
  }
  .welcome > .eyebrow,
  .welcome > h1,
  .welcome > p {
    display: none;
  }
  .welcome .searchbox {
    height: 46px;
    margin: 0;
    padding-left: 13px;
    border-radius: 23px;
  }
  .welcome .searchbox > span {
    font-size: 20px;
  }
  .welcome .searchbox input {
    padding: 0 8px;
    font-size: 14px;
  }
  .welcome .searchbox button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 20px;
    margin-right: 0;
  }
  .welcome #result-list {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    margin: 5px 0 0;
    max-height: min(240px, 45vh);
    border: 1px solid #d6dfdc;
    box-shadow: 0 12px 28px rgba(23, 61, 54, 0.24);
  }
  .ol-zoom {
    top: 76px;
  }
}
.stats-scope {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}
.stats-scope span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #58746c;
}
.stats-scope select {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1px solid #c9d8d3;
  border-radius: 14px;
  background: #fff;
  color: #123f35;
  font:
    700 0.95rem Inter,
    sans-serif;
}
.stats-scope-name {
  margin: -5px 0 14px;
  color: #698079;
  font-size: 0.82rem;
}
.stats-admin-login {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #123f35;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 63, 53, 0.18);
}
.stats-admin-login > span {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f46d43;
  font-size: 1.2rem;
}
.stats-admin-login b {
  font-size: 0.96rem;
}
.stats-admin-login small {
  color: #cfe0da;
  font-size: 0.72rem;
}
#panel.stats-mode .panel-head > div {
  display: none;
}
#panel.stats-mode .panel-head {
  min-height: 50px;
  padding-bottom: 0;
}
#panel.stats-mode .panel-tabs {
  margin-top: -43px;
  margin-right: 58px;
}
.privacy-settings {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #b9cbc4;
  border-radius: 12px;
  background: #fff;
  color: #245449;
  font-weight: 700;
}
.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 45, 37, 0.58);
  backdrop-filter: blur(5px);
}
.privacy-overlay[hidden] {
  display: none;
}
.privacy-card {
  width: min(100%, 480px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  background: #faf8f2;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(4, 28, 22, 0.32);
  color: #153f35;
}
.privacy-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f46d43;
  color: #fff;
  font: 700 30px Georgia;
}
.privacy-eyebrow {
  display: block;
  margin-top: 18px;
  color: #d85f3d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.privacy-card h2 {
  margin: 8px 0 10px;
  font: 700 2rem/1.05 Georgia;
}
.privacy-card > p {
  margin: 0 0 18px;
  color: #59736b;
  line-height: 1.5;
}
.privacy-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #d3dfda;
  text-transform: none;
  letter-spacing: 0;
}
.privacy-card label span {
  display: grid;
  gap: 3px;
}
.privacy-card label b {
  font-size: 0.92rem;
}
.privacy-card label small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6a817a;
}
.privacy-card input {
  width: 24px;
  height: 24px;
  accent-color: #15765f;
}
.privacy-required {
  opacity: 0.72;
}
.privacy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.privacy-actions button {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #b9cbc4;
  background: #fff;
  color: #17483d;
  font-weight: 800;
}
.privacy-actions #privacy-accept {
  border-color: #123f35;
  background: #123f35;
  color: #fff;
}
.privacy-foot {
  display: block;
  margin-top: 13px;
  color: #71877f;
  line-height: 1.35;
}
@media (max-width: 520px) {
  .privacy-card {
    padding: 22px;
  }
  .privacy-card h2 {
    font-size: 1.7rem;
  }
  .privacy-actions {
    grid-template-columns: 1fr;
  }
}

/* Desktop: i livelli pubblici restano sempre disponibili sopra la mappa. */
#desktop-layer-toolbar {
  display: none;
}
.desktop-account-label,
.desktop-account-icon {
  display: none;
}
@media (min-width: 701px) {
  #desktop-layer-toolbar {
    position: fixed;
    z-index: 14;
    top: 88px;
    left: auto;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 205px;
    max-height: calc(100vh - 178px);
    padding: 7px;
    border: 1px solid rgba(23, 91, 73, 0.18);
    border-radius: 22px;
    background: rgba(247, 245, 238, 0.92);
    box-shadow: 0 8px 28px rgba(16, 63, 52, 0.2);
    backdrop-filter: blur(12px);
  }
  .ol-zoom {
    left: 16px;
    right: auto;
  }
  #desktop-layer-toolbar button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #17483d;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
  }
  #desktop-layer-toolbar button[aria-pressed="true"] {
    background: #175b49;
    color: #fff;
    box-shadow: 0 3px 10px rgba(16, 63, 52, 0.2);
  }
  #desktop-layer-toolbar button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }
  #desktop-layer-toolbar b {
    white-space: nowrap;
  }
  #desktop-layer-toolbar span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
  #desktop-layer-toolbar .direct-green {
    border: 2px solid currentColor;
    border-radius: 7px;
    background: #7fc59e;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  }
  #desktop-layer-toolbar .direct-water {
    font-size: 17px;
  }
  #desktop-layer-toolbar .direct-tree {
    border-radius: 50%;
    background: #e0eee7;
    color: #175b49;
  }
  #desktop-layer-toolbar button[aria-pressed="true"] .direct-tree {
    background: rgba(255, 255, 255, 0.86);
    color: #175b49;
  }
  .desktop-account-label,
  .desktop-account-icon {
    display: inline;
  }
  .mobile-layers-label,
  .mobile-layers-icon {
    display: none !important;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  #desktop-layer-toolbar {
    width: 54px;
    border-radius: 20px;
  }
  #desktop-layer-toolbar b {
    display: none;
  }
  #desktop-layer-toolbar button {
    justify-content: center;
    padding: 6px;
  }
}

/* Correzione ottica della sola fotografia di Ponte Pietra. */
.intro-slides span:nth-child(1) {
  animation-name: introLandscapeTilt;
}
@keyframes introLandscapeTilt {
  0%,
  29% {
    opacity: 1;
    transform: rotate(1.2deg) scale(1.065);
  }
  34%,
  95% {
    opacity: 0;
    transform: rotate(1.2deg) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: rotate(1.2deg) scale(1.065);
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-slides span:first-child {
    transform: rotate(1.2deg) scale(1.065);
  }
}
.privacy-card {
  position: relative;
}

.privacy-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #cbd8d3;
  border-radius: 50%;
  background: #fff;
  color: #173d36;
  font-size: 25px;
  line-height: 1;
  z-index: 2;
}

.language-flag {
  display: block;
  width: 27px;
  height: 18px;
  object-fit: cover;
  border: 1px solid rgba(19, 61, 52, 0.22);
  border-radius: 2px;
  box-shadow: 0 1px 2px #0002;
}

.language > button .language-flag {
  width: 29px;
  height: 20px;
}

#language-menu button .language-flag {
  width: 27px;
  height: 18px;
}
