/* src/css/snippets/variables.css */
:root {
  --font-primary:
    "Inconsolata",
    "Andale Mono",
    monospace;
  --font-secondary:
    "Montserrat",
    Arial,
    sans-serif;
  --font-size-small: 0.8em;
  --font-size-base: 1em;
  --font-size-medium: 1.25em;
  --font-size-large: 1.563em;
  --font-size-xlarge: 1.953em;
  --line-height-base: 1.5;
  --line-height-title: 1.2;
  --font-weight-light: 300;
  --font-weight-base: 400;
  --font-weight-bold: 700;
  --color-red: #FF3535;
  --color-red-tint: #ff9a9a;
  --color-dark: #111;
  --color-light: #f4f4f4;
  --screen-small: 480px;
  --screen-medium: 768px;
  --screen-large: 1024px;
  --screen-xlarge: 1366px;
  --gutter: 20px;
  --layout-nav-rail: 3.8rem;
  --z-0: 0;
  --z-1: 100;
  --z-2: 200;
  --z-3: 300;
  --z-4: 400;
  --z-5: 500;
  --z-6: 600;
  --z-7: 700;
  --z-8: 800;
  --z-9: 900;
  --z-10: 1000;
}

/* src/css/templates/attivita_elemento_atlante.css */
html {
  scrollbar-gutter: stable;
}
html.atlante-scroll-locked,
body.atlante-scroll-locked {
  overflow: hidden;
}
.atlante-page {
  margin-top: 9em;
}
.atlante-intro {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 1.5rem 3rem 1.5rem;
}
.atlante-intro h1 {
  color: var(--color-red);
  font-family: var(--font-secondary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem 0 !important;
  text-transform: uppercase;
}
.atlante-intro__text {
  max-width: 760px;
}
.atlante-map {
  position: relative;
}
.atlante-map__viewer {
  --atlante-image-ratio: 16 / 9;
  background: #f8f8f8;
  border-top: 1px solid #ddd;
  aspect-ratio: var(--atlante-image-ratio);
  height: auto;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.atlante-map__viewer.is-osd-ready {
  touch-action: none;
}
@media screen and (max-width: 767px) {
  .atlante-map__viewer.is-osd-ready {
    aspect-ratio: 1 / 1;
    max-height: none;
  }
}
.atlante-map__hint {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  bottom: 1rem;
  font-size: 0.82rem;
  left: 1rem;
  line-height: 1.2;
  padding: 0.6rem 0.75rem;
  position: absolute;
  width: min(320px, calc(100% - 2rem));
  z-index: 20;
}
.atlante-map__hint p {
  margin: 0 !important;
}
.atlante-map__coords {
  background: rgba(17, 17, 17, 0.95);
  border-radius: 0.35rem;
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  left: 1rem;
  line-height: 1.3;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.7rem;
  position: absolute;
  top: 1rem;
  z-index: 21;
}
.atlante-map__empty {
  background: #fff;
  border: 1px solid #ddd;
  left: 1rem;
  margin: 0 !important;
  padding: 0.6rem 0.75rem;
  position: absolute;
  top: 1rem;
  z-index: 25;
}
.atlante-hotspot {
  align-items: flex-start;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
  height: 100%;
}
.atlante-hotspot:hover,
.atlante-hotspot:focus-visible {
  background: rgba(255, 53, 53, 0.14);
  border-color: transparent;
  outline: none;
}
.atlante-hotspot__label {
  display: none;
}
.atlante-map__viewer.is-fallback {
  overflow: auto;
}
.atlante-fallback-image {
  display: block;
  max-width: none;
  width: 100%;
}
.atlante-fallback-layer {
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.atlante-fallback-layer .atlante-hotspot {
  pointer-events: auto;
  position: absolute;
}
.atlante-modal-backdrop {
  background: rgba(0, 0, 0, 0.35);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.25s ease;
  z-index: 1095;
}
.atlante-modal {
  background: #fff;
  bottom: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  width: min(60vw, 980px);
  z-index: 1100;
}
@media screen and (max-width: 1279px) {
  .atlante-modal {
    width: min(70vw, 900px);
  }
}
@media screen and (max-width: 1023px) {
  .atlante-modal {
    width: min(90vw, 760px);
  }
}
@media screen and (max-width: 767px) {
  .atlante-modal {
    width: 100vw;
  }
}
.atlante-page.is-modal-open .atlante-modal {
  transform: translateX(0);
}
.atlante-page.is-modal-open .atlante-modal-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.atlante-lightbox {
  background: rgba(255, 255, 255, 0.985);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.22s ease;
  z-index: 1205;
}
.atlante-page.is-lightbox-open .atlante-lightbox {
  opacity: 1;
  pointer-events: auto;
}
.atlante-lightbox__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.85rem 1rem 1.2rem 1rem;
}
@media screen and (min-width: 768px) {
  .atlante-lightbox__inner {
    padding: 1.1rem 1.4rem 1.5rem 1.4rem;
  }
}
.atlante-lightbox__close {
  align-self: flex-end;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin: 0 0 0.5rem 0;
  padding: 0;
}
.atlante-lightbox__close span {
  background-image: url(/assets/images/close-red.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  height: 1.15rem;
  width: 1.15rem;
}
.atlante-lightbox__close:hover span,
.atlante-lightbox__close:focus-visible span {
  opacity: 0.8;
}
.atlante-lightbox__close:focus-visible {
  outline: 1px solid var(--color-red);
  outline-offset: 2px;
}
.atlante-lightbox__viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.atlante-lightbox__track {
  display: flex;
  height: 100%;
}
.atlante-lightbox__slide {
  align-items: center;
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  min-width: 0;
}
.atlante-lightbox__figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  max-width: 100%;
  width: 100%;
}
.atlante-lightbox__figure img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: calc(100vh - 10.4rem);
  max-width: min(100%, 1700px);
  object-fit: contain;
  width: auto;
}
.atlante-lightbox__figure figcaption {
  color: #111;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 0.65rem;
  max-width: min(100%, 960px);
  text-align: center;
  white-space: normal;
  width: min(100%, 960px);
}
.atlante-lightbox__footer {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.atlante-lightbox__controls {
  display: flex;
  gap: 0.45rem;
}
.atlante-lightbox__button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ddd;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}
.atlante-lightbox__button::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 0.76rem;
  width: 1.18rem;
}
.atlante-lightbox__button--prev::before {
  background-image: url(/assets/images/arrow-left-red.svg);
}
.atlante-lightbox__button--next::before {
  background-image: url(/assets/images/arrow-right-red.svg);
}
.atlante-lightbox__button:hover {
  background: #fff;
}
.atlante-lightbox__button:disabled {
  cursor: default;
  opacity: 0.35;
}
.atlante-lightbox__counter {
  color: #111;
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  line-height: 1;
  margin: 0 0 0 auto !important;
}
.atlante-modal__inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  overflow-y: auto;
  padding: 0.9rem 1.2rem 2rem 1.2rem;
}
@media screen and (min-width: 768px) {
  .atlante-modal__inner {
    padding: 1.05rem 1.7rem 2.5rem 1.7rem;
  }
}
.atlante-modal__close {
  align-self: flex-end;
  appearance: none;
  background: transparent;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  font-weight: var(--font-weight-bold);
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}
.atlante-modal__area {
  border-bottom: 1px solid #eee;
  color: var(--color-red);
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  margin: 0 !important;
  padding-bottom: 0.55rem;
  text-transform: uppercase;
}
.atlante-modal__selection {
  border-bottom: 1px solid #eee;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  padding-bottom: 0.85rem;
}
.atlante-modal__selection-label {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  margin: 0 0 0.6rem 0 !important;
}
.atlante-modal__selection-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.atlante-modal__object-button {
  appearance: none;
  background: transparent;
  border: 1px solid #ddd;
  color: #111;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  text-align: left;
}
.atlante-modal__object-button:hover,
.atlante-modal__object-button.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}
.atlante-modal__detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 120px;
}
.atlante-modal__detail-header {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}
.atlante-modal__back {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.4rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 1.4rem;
}
.atlante-modal__back span {
  background-image: url(/assets/images/arrow-left-red.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  height: 0.72rem;
  width: 1.15rem;
}
.atlante-modal__back:hover span,
.atlante-modal__back:focus-visible span {
  transform: translateX(-1px);
}
.atlante-modal__back:focus-visible {
  outline: 1px solid var(--color-red);
  outline-offset: 2px;
}
.atlante-modal__detail h3 {
  color: #111;
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 0 !important;
  text-transform: uppercase;
}
.atlante-modal__placeholder {
  color: #666;
  margin: 0.55rem 0 0 0 !important;
}
.atlante-modal__gallery {
  margin: 0 0 1.35rem 0;
  width: 100%;
}
.atlante-modal__gallery-viewport {
  overflow: hidden;
  min-height: 500px;
}
.atlante-modal__gallery-track {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}
.atlante-modal__gallery-item {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  margin: 0 !important;
  max-width: 100%;
  min-height: 500px;
  width: auto;
}
.atlante-modal__gallery-media {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: fit-content;
}
.atlante-modal__gallery-media:focus-visible {
  outline: 1px solid var(--color-red);
  outline-offset: 2px;
}
.atlante-modal__gallery-item img {
  background: #f8f8f8;
  border: 1px solid #eee;
  display: block;
  height: 500px;
  max-height: min(70vh, 680px);
  max-width: 100%;
  min-height: 500px;
  object-fit: contain;
  width: auto;
}
.atlante-modal__gallery-overlay {
  background: rgba(255, 255, 255, 0.96);
  bottom: 0;
  color: #666;
  font-size: 0.78rem;
  left: 0;
  line-height: 1.3;
  opacity: 0;
  padding: 0.45rem 0.6rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-align: left;
  transform: translateY(0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: normal;
}
.atlante-modal__gallery-media:hover .atlante-modal__gallery-overlay,
.atlante-modal__gallery-media:focus-visible .atlante-modal__gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}
.atlante-modal__gallery-caption-source {
  display: none;
}
.atlante-modal__gallery-footer {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.atlante-modal__gallery-controls {
  display: flex;
  gap: 0.45rem;
}
.atlante-modal__gallery-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ddd;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 2.1rem;
  justify-content: center;
  width: 2.1rem;
}
.atlante-modal__gallery-button::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 0.72rem;
  width: 1.18rem;
}
.atlante-modal__gallery-button--prev::before {
  background-image: url(/assets/images/arrow-left-red.svg);
}
.atlante-modal__gallery-button--next::before {
  background-image: url(/assets/images/arrow-right-red.svg);
}
.atlante-modal__gallery-button:hover {
  background: #fff;
}
.atlante-modal__gallery-button:disabled {
  cursor: default;
  opacity: 0.35;
}
.atlante-modal__gallery-counter {
  color: #111;
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 !important;
  margin-left: auto !important;
  text-align: right;
}
.atlante-modal__document {
  margin: 0 0 1.35rem 0;
  width: 100%;
}
.atlante-modal__document-viewer {
  background: #f8f8f8;
  border: 1px solid #eee;
  height: min(70vh, 720px);
  min-height: 460px;
  overflow: hidden;
  width: 100%;
}
.atlante-modal__intro blockquote,
.atlante-modal__text blockquote {
  border-left: 3px solid var(--color-red);
  font-style: italic;
  margin: 0.9rem 0 !important;
  padding: 0.2rem 0 0.2rem 0.85rem;
}
.atlante-modal__intro blockquote p,
.atlante-modal__text blockquote p {
  margin: 0 !important;
}
.atlante-modal__intro blockquote cite,
.atlante-modal__text blockquote cite {
  color: #444;
  display: block;
  font-size: 0.86em;
  font-style: normal;
  margin-top: 0.35rem;
}
@media screen and (max-width: 1279px) {
  .atlante-lightbox__figure img {
    max-height: calc(100vh - 10.8rem);
  }
  .atlante-modal__gallery-viewport,
  .atlante-modal__gallery-item,
  .atlante-modal__gallery-item img {
    min-height: 420px;
  }
  .atlante-modal__gallery-item img {
    height: 420px;
  }
}
@media screen and (max-width: 767px) {
  .atlante-lightbox__inner {
    padding: 0.8rem 0.85rem 1rem 0.85rem;
  }
  .atlante-lightbox__figure img {
    max-height: calc(100vh - 8.9rem);
  }
  .atlante-lightbox__figure figcaption {
    font-size: 0.8rem;
  }
  .atlante-modal__document-viewer {
    height: 60vh;
    min-height: 360px;
  }
  .atlante-modal__gallery-viewport,
  .atlante-modal__gallery-item,
  .atlante-modal__gallery-item img {
    min-height: 280px;
  }
  .atlante-modal__gallery-item img {
    height: 280px;
  }
}
