@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/epilogue-v20-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/epilogue-v20-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-v23-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-v23-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-v23-latin-600.woff2") format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ivory: #F5F1E8;
  --forest: #203C32;
  --forest-deep: #162821;
  --gold: #E3B82F;
  --charcoal: #292D29;
  --bronze: #B49A70;
  --sand: #DCD4C6;
  --ink: #3F463F;

  --white: var(--ivory);
  --black: var(--charcoal);
  --blue: var(--forest);
  --yellowtxt: var(--gold);
  --grey: var(--ink);
  --blacktxt: var(--charcoal);
  --navy: var(--forest);
  --dark: var(--charcoal);
  --navbar: var(--forest);
}

html,
body {
  height: 100%;
  min-height: 400px;
  background-color: var(--ivory);
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.6;
  -ms-overflow-style: none;
  min-width: 300px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Epilogue", sans-serif;
  font-weight: 500;
  color: var(--charcoal);
}

h1, h2, h3 { font-weight: 600; }

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.noscroll {
  overflow: hidden !important;
  touch-action: none;
}

.shadow { text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); }
.white { color: var(--white) !important; }
.yellow { color: var(--yellowtxt); }
.link { text-decoration: none; }
.lrpad { padding: 0 10% 0 5%; }
.spacer {
  background-color: var(--white);
  width: 100%;
  height: 150px;
}

.navbar {
  width: 100%;
  height: 80px;
  z-index: 9;
  position: fixed;
  padding: 0;
  top: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.navbar.transparent,
.navbar.trasparent {
  background: transparent;
  color: var(--white);
}

.navbar.scrolled-dark {
  background: var(--navbar);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar a:hover { color: var(--blue); }
.navbar.hide { transform: translateY(-100%); }

.navbarlist {
  position: relative;
  display: flex;
  z-index: 10;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
}

.logo-name {
  position: relative;
  order: 1;
  height: 56px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo-name p.bar { display: none; }

.bar a,
p.bar {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--charcoal);
  font-family: "Epilogue", sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: none;
  text-align: left;
  z-index: 9;
  transform-origin: top center;
  display: block;
  margin: 0;
  transition: 0.5s ease;
  text-decoration: none;
  line-height: normal;
}

.dark { opacity: 1; transition: 0.3s; }
.bar a { text-align: center; }
.navbaritem a.current {
  color: var(--forest);
  box-shadow: none;
}

.navbar.scrolled-dark .bar a,
.navbar.scrolled-dark p.bar {
  color: rgba(245, 241, 232, 0.88);
}

.navbar.scrolled-dark .bar a:hover,
.navbar.scrolled-dark .navbaritem a.current {
  color: var(--gold);
  box-shadow: none;
}

#logo,
#logo2 {
  height: 100%;
  z-index: 9;
  left: 0;
  transform-origin: top right;
  aspect-ratio: 171 / 100;
}

.deactive { display: none; }

.navbaritem {
  position: relative;
  order: 2;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 22px;
  margin-left: auto;
}

.nav-drop {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.navbaritem.bar > a,
.bar a.nav-parent {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-parent::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
}

.nav-sub {
  position: absolute;
  top: calc(100% - 16px);
  left: 0;
  min-width: 260px;
  padding: 16px 10px 10px;
  background: var(--ivory);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(32, 60, 50, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}

.nav-drop:hover > .nav-sub,
.nav-drop:focus-within > .nav-sub,
.nav-sub:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.navbar .nav-sub a,
.navbar.scrolled-dark .nav-sub a {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  box-shadow: none;
}

.navbar .nav-sub a:hover,
.navbar .nav-sub a:focus-visible,
.navbar .nav-sub a.current,
.navbar.scrolled-dark .nav-sub a:hover,
.navbar.scrolled-dark .nav-sub a:focus-visible,
.navbar.scrolled-dark .nav-sub a.current {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: none;
}

.menu-wrapper {
  position: relative;
  order: 3;
  display: none;
  align-items: center;
  justify-content: center;
}

.dot-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dot-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.colored { background-color: var(--white) !important; }

.dot-toggle.active { transform: scale(1.5); }

.dot-toggle.active span {
  background-color: var(--white) !important;
}

.dot-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dot-toggle.active span:nth-child(2) { opacity: 0; transform: scale(0); }
.dot-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dot-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sphere-container {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
}

.dot-toggle.active + .bg-list .sphere-container { pointer-events: all; }

.sphere {
  min-width: 168px;
  height: 44px;
  background: transparent;
  border-radius: 30px;
  opacity: 0;
  transform: translateY(-20px);
  transition: background-color 0.3s ease-out, color 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  box-shadow: none;
  padding: 0 22px;
  text-decoration: none;
}

.sphere:hover,
.sphere:focus-visible {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 12px rgba(32, 60, 50, 0.22);
  outline: none;
}

.dot-toggle.active + .bg-list .sphere-container .sphere {
  opacity: 1;
  transform: translateY(0);
}

.sphere:nth-child(1) { transition-delay: 0.05s; }
.sphere:nth-child(2) { transition-delay: 0.1s; }
.sphere:nth-child(3) { transition-delay: 0.15s; }
.sphere:nth-child(4) { transition-delay: 0.2s; }
.sphere:nth-child(5) { transition-delay: 0.25s; }

.sphere::after {
  content: attr(data-label);
  font-size: 15px;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  opacity: 1;
}

.bg-list {
  width: 100%;
  height: 0;
  background-color: var(--navbar);
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 0;
  box-sizing: border-box;
  transition: all 0.4s ease;
  overflow: hidden;
}

.dot-toggle.active ~ .bg-list {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.nav-tree {
  width: min(440px, calc(100% - 32px));
  align-items: stretch;
  gap: 6px;
  padding: 12px 0 40px;
}

.nav-tree .sphere {
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 40px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  padding: 8px 18px;
}

.nav-tree .sphere::after { content: none; }

.nav-tree .nav-root {
  font-family: "Epilogue", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-top: 14px;
}

.nav-tree .nav-root:first-child { margin-top: 0; }

.nav-tree .nav-child {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 500;
  min-height: 36px;
}

.nav-tree .sphere.current {
  background: var(--gold);
  color: var(--charcoal);
}

.sphere:nth-child(6) { transition-delay: 0.3s; }
.sphere:nth-child(7) { transition-delay: 0.34s; }
.sphere:nth-child(8) { transition-delay: 0.38s; }
.sphere:nth-child(9) { transition-delay: 0.42s; }
.sphere:nth-child(10) { transition-delay: 0.46s; }
.sphere:nth-child(11) { transition-delay: 0.5s; }
.sphere:nth-child(12) { transition-delay: 0.54s; }
.sphere:nth-child(13) { transition-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  .dot-toggle,
  .dot-toggle span,
  .sphere,
  .bg-list {
    transition: none;
  }
}

.title {
  font-size: clamp(2.2rem, 4.4vw, 7rem);
  line-height: 1.05;
}

.second {
  font-size: clamp(1.75rem, 2.6vw, 3.15rem);
  line-height: 1.15;
  font-weight: 600;
}

.intro {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
}

.text {
  font-size: 17px;
  line-height: 1.7;
  max-width: 38rem;
}

.presentation {
  width: 100%;
  max-width: 1100px;
  padding: 10% 10% 0 5%;
  margin-right: auto;
  z-index: 2;
  background-color: var(--white);
}

.fade-in {
  opacity: 0;
  transform: translateY(10vh);
  transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.fade-in.in-page {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-sx {
  opacity: 0;
  transform-origin: center center;
  transform: translateX(-22.5vw);
  transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.fade-in-dx {
  transform-origin: center center;
  opacity: 0;
  transform: translateX(22.5vw);
  transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.fade-in-sx.in-page,
.fade-in-dx.in-page {
  opacity: 1;
  transform: translateX(0);
}

.presimg {
  position: relative;
  object-fit: cover;
  height: 80vh;
  width: 100vw;
  left: -5vw;
  margin: 50px 0 150px;
  display: block;
  object-position: center;
}

body.page-maneggio .presimg { object-position: 72% center; }
body.page-passeggiate .presimg {
  height: 80vh;
  object-position: center center;
}

.internal-hero {
  width: 100%;
  padding: 8px 6vw 20px;
}

.internal-hero .title {
  max-width: 14em;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
}

.internal .presimg {
  left: 0;
  width: 100vw;
  height: 80vh;
  margin: 48px 0 80px;
}

body.page-grest .presimg {
  object-position: center 18%;
}

.story {
  width: 100%;
  margin: 0 0 80px;
  padding: 0 6vw;
}

.story-lead,
.story-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}

.story-lead + .story-split,
.story-split + .story-lead { margin-top: 88px; }

.story-more {
  margin-top: 72px;
}

.story-more .internal-sub::before { content: none; }
.story-more .internal-sub { margin-top: 0; }
.story-more .text { max-width: 44rem; }
.story-more .text + .text { margin-top: 16px; }
.story-more .text a { color: inherit; font-weight: 600; }

.story-split .story-copy { order: 2; }
.story-split .story-mosaic,
.story-split .story-portrait { order: 1; }

.story-copy .text { max-width: none; }
.story-copy .text + .text { margin-top: 16px; }
.story-copy .text a { color: inherit; font-weight: 600; }

.story-copy .internal-kicker:has(+ .internal-sub) {
  margin-bottom: 8px;
  font-size: clamp(1.85rem, 2.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.12;
}

.story-copy .internal-kicker + .internal-sub {
  margin: 0 0 22px;
  font-size: clamp(1.12rem, 1.45vw, 1.28rem);
  font-weight: 500;
  line-height: 1.35;
}

.story-copy .internal-kicker + .internal-sub::before { content: none; }

.internal-sub {
  margin: 12px 0 18px;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
}

.internal-kicker {
  margin: 0 0 16px;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
}

.internal-kicker::before,
.internal-sub::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--gold);
}

.story-portrait {
  margin: 0;
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 22px;
}

.story-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  position: absolute;
  inset: 0;
  min-height: 0;
}

body.page-grest .story-portrait img.grest-pony { object-position: center 18%; }
body.page-grest .story-portrait img.grest-gioco { object-position: center 8%; }
body.page-grest .story-portrait img.grest-pranzo { object-position: center 14%; }
body.page-grest .story-portrait img.grest-piramide { object-position: center top; }

body.page-cultura .story-portrait img.cultura-cavaliere { object-position: center 28%; }

@media (min-width: 1001px) {
  body.page-grest .story-portrait {
    min-height: max(460px, calc(27.3vw - 15px));
  }
}

.story-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: center;
  min-height: 0;
}

.story-mosaic img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  display: block;
  min-height: 0;
}

body.page-passeggiate .closing-band,
body.page-home .closing-band,
body.page-circolo .closing-band,
body.page-gonzaga .closing-band,
body.page-realta .closing-band,
body.page-404 .closing-band { display: none; }

.scroll-effect {
  will-change: width, margin, border-radius;
  transition: border-radius 0.1s ease-out;
  box-sizing: border-box;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.sticky-nav {
  position: fixed;
  width: min(92vw, 760px);
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245, 241, 232, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 8;
  margin: 0;
  overflow: hidden;
  transition: top 0.35s ease, max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.sticky-nav.is-over-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-nav.is-open { max-height: 300px; }

.sticky-nav.is-open .nav-extra-content {
  max-height: 200px;
  opacity: 1;
  padding-bottom: 30px;
  padding-top: 10px;
}

.prenbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 60px;
}

.btn-toggle-booking {
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-toggle-booking:hover { background: #c9a227; }

.prenbar .text {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.nav-extra-content {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 12px 28px;
  border-top: 1px solid var(--sand);
  padding-top: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item { color: var(--grey); font-size: 14px; }

.contact-item span {
  color: var(--blacktxt);
  font-weight: 600;
  margin-left: 10px;
}

.contact-address {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
}

.contact-address .contact-label {
  margin-left: 0;
  color: inherit;
  font-weight: 400;
}

.contact-address .contact-value,
.addr-line {
  margin-left: 0;
}

.addr-line { display: block; }

.btn-call {
  background: var(--blue);
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.btn-call:hover { background: var(--forest-deep); }

.list-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--sand);
  padding: 20px 0 40px;
  z-index: 5;
}

.list-orizzontale {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  gap: 2vw;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 5%;
  scroll-padding-left: 5%;
  scrollbar-width: none;
}

.list-orizzontale::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.list-element {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(700px, 90vw);
  overflow: hidden;
}

.list-orizzontale img,
.list-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.15);
}

.list-text {
  padding-top: 20px;
  width: 100%;
  white-space: normal;
  line-height: 1.2;
  font-size: clamp(16px, 2vw, 20px);
}

.elemento-cascata {
  opacity: 0;
  transform: translateY(10vh);
  transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.elemento-cascata.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-button {
  position: relative;
  display: flex;
  width: 100%;
  margin: 3% 0 0;
  padding: 0 5% 10px;
  z-index: 5;
  justify-content: flex-end;
  align-items: center;
}

body.page-maneggio .nav-button {
  margin-top: 12px;
  padding-bottom: 0;
}

.next-button,
.prev-button {
  all: unset;
  cursor: pointer;
}

.button {
  display: flex;
  height: auto;
  width: fit-content;
}

.button svg {
  position: relative;
  display: flex;
  color: var(--dark);
  align-items: center;
  justify-content: center;
}

.prev-button {
  transform: rotateY(180deg);
  margin-right: 3%;
}

.button svg:hover { color: var(--blue); }

body.page-circolo .page-content,
body.page-gonzaga .page-content,
body.page-realta .page-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
}

body.page-gonzaga .binario-flex,
body.page-realta .binario-flex { min-width: 100%; }
body.page-gonzaga .elemento-flex,
body.page-realta .elemento-flex { flex: 1; }

.branch-call {
  position: relative;
  z-index: 3;
  background: var(--ivory);
  padding: 72px 6vw 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.branch-call + .branch-call { border-top: 1px solid var(--sand); }

.branch-logo {
  display: block;
  height: 108px;
  width: auto;
}

.branch-call .branch-logo.shield { height: 210px; }

.branch-call h2 { margin: 0; }

.branch-call h2 a {
  color: var(--charcoal);
  text-decoration: none;
}

.branch-voices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.branch-voices a {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.branch-voices a:hover,
.branch-voices a:focus-visible {
  border-bottom-color: var(--gold);
  outline: none;
}

.overlay {
  position: relative;
  width: 100%;
  margin-top: calc(3vh + 92px);
  margin-bottom: 3vh;
}

.overlay-content {
  position: relative;
  display: flex;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 1vw;
}

.slider-container {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.slider-viewport {
  width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  user-select: none;
}

.slider-viewport::-webkit-scrollbar { display: none; }

.binario-flex {
  display: flex;
  min-width: 160vw;
  padding: 24px 5vw 56px 0;
  gap: 24px;
}

.distanziatore-iniziale {
  flex: 0 0 calc(5vw - 24px);
  pointer-events: none;
}

.elemento-flex {
  height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 20px;
  color: var(--ivory);
  font-size: 1.8rem;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.boxc1 { flex: 1.8; background: var(--forest); }
.boxc2 { flex: 1; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.boxc3 { flex: 1; background: var(--charcoal); }
.boxc4 { flex: 1; background: var(--bronze); }

.box2-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 24px;
}

.sub-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 1.8rem;
  font-weight: 500;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s;
  z-index: 2;
}

.sub-top { background: var(--forest); }
.sub-bottom { background: var(--sand); color: var(--charcoal); }

.box2-container:hover .sub-box:not(:hover) {
  flex: 0.5;
  filter: brightness(0.7);
}

.box2-container .sub-box:hover {
  flex: 2;
  filter: brightness(1.1);
}

.binario-flex:hover .elemento-flex:not(:hover) {
  flex: 0.8;
  filter: brightness(0.5);
}

.binario-flex .elemento-flex:hover {
  flex: 2;
  filter: brightness(1);
}

.elemento-flex span,
.sub-box span { font-weight: 400; }

.controlli-slider {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-right: 5vw;
}

@media (min-width: 681px) {
  body.page-circolo .controlli-slider,
  body.page-gonzaga .controlli-slider,
  body.page-realta .controlli-slider {
    padding-bottom: 50px;
  }

  body.page-circolo .elemento-flex,
  body.page-gonzaga .elemento-flex,
  body.page-realta .elemento-flex {
    height: calc(55vh - 50px);
  }
}

.box-link {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: calc(100% - 4vh);
  height: fit-content;
  box-sizing: border-box;
  text-decoration: none;
  margin: 2vh;
}

.home-slider .box-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.box-hover {
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: 0.3s ease;
  max-width: 100%;
  line-height: 1.15;
}

.bubble {
  position: absolute;
  left: 0;
  bottom: -110px;
  width: 60px;
  height: 60px;
  background: var(--ivory);
  opacity: 0.9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: bubbleOut 0.75s forwards;
}

.home-slider .box-image:hover .bubble {
  visibility: visible;
  opacity: 0.9;
  animation: bubbleIn 0.75s forwards;
}

.bubble span {
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.2s, transform 0.2s;
}

.home-slider .box-image:hover .box-hover { opacity: 0; transition: 0.5s; }

.home-slider .box-image:hover .bubble span {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.55s;
}

.home-slider .box-image:not(:hover) .bubble span {
  opacity: 0;
  transform: translateX(-10px);
}

@keyframes bubbleIn {
  0% { bottom: -110px; width: 60px; height: 60px; border-radius: 50%; }
  55% { bottom: 50%; transform: translateY(50%); width: 60px; height: 60px; border-radius: 50%; }
  100% { bottom: 50%; transform: translateY(50%); width: 170px; height: 60px; border-radius: 20px; }
}

@keyframes bubbleOut {
  0% { bottom: 50%; transform: translateY(50%); width: 170px; height: 60px; border-radius: 40px; }
  45% { bottom: 50%; transform: translateY(50%); width: 60px; height: 60px; border-radius: 50%; }
  100% { bottom: -110px; width: 60px; height: 60px; border-radius: 50%; }
}

.freccia {
  width: 50px;
  height: 50px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--ivory);
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  user-select: none;
}

.freccia:hover {
  background-color: var(--forest-deep);
  transform: scale(1.05);
}

.freccia:active { transform: scale(0.95); }

.reservpack {
  background: var(--sand);
  z-index: 7;
  position: relative;
  width: 100%;
  top: 0;
  padding-top: 50px;
}

.cont-intro-pack {
  position: relative;
  width: 100%;
  height: 20vh;
  display: flex;
}

.intro-pack {
  position: relative;
  text-align: left;
  margin-top: auto;
  flex: 1;
  display: flex;
}

.prop-title { font-size: min(9vw, 70px); margin-left: 5%; }

.prop-button-cont {
  height: 100%;
  flex: 1;
  margin: auto 5% auto auto;
  display: flex;
  align-items: center;
}

.prop-button {
  height: 45px;
  width: max(45px, 8vw);
  border: solid 3px var(--navy);
  border-radius: 10vw;
  background-color: var(--navy);
  background-image: url("../immagini/whatsapplogowhite.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: auto;
  transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: block;
}

.prop-text {
  position: relative;
  width: fit-content;
  font-size: 18px;
  color: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cont-pack {
  position: relative;
  display: flex;
  width: 100%;
  height: calc(80vh - 50px);
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 0 5% 3vh;
  gap: 3%;
}

.pack-box {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s ease;
  flex-direction: column;
}

.flex-cont {
  position: absolute;
  display: flex;
  height: 40vh;
  width: 100%;
  transition: 0.8s ease;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pack-box .box-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  transition: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 4;
  flex-grow: 1;
  background-position: center;
  background-size: cover;
}

.title-pack {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.flex-space {
  position: relative;
  width: 100%;
  height: 0;
  transition: 0.8s ease;
  flex-grow: 0;
}

.box-title {
  position: absolute;
  width: 100%;
  text-align: center;
  justify-content: center;
  transition: 0.8s ease;
  z-index: 0;
  align-items: center;
}

.title-wrapper {
  width: 100%;
  position: relative;
  font-size: clamp(13px, 2.2vh, 16px);
  display: block;
  color: transparent;
}

.under-line {
  position: relative;
  height: 3px;
  width: 0;
  bottom: 0;
  background-color: transparent;
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flex-cont:hover .under-line {
  transform: scaleX(1);
  width: 100%;
  background-color: var(--gold);
}

.prop-button:hover {
  background-color: var(--sand);
  background-image: none;
  width: max(90px, 16vw);
}

.prop-button:hover .prop-text {
  color: var(--dark);
  font-size: clamp(18px, 3vw, 25px);
}

.prop-button:active { background-color: var(--navy); }
.prop-button:active .prop-text { color: whitesmoke; }

.flex-cont:hover .flex-space {
  flex-grow: 2;
  flex-shrink: 0;
  background-color: var(--sand);
}

.flex-cont:hover .box-title {
  display: flex;
  flex-direction: column;
  min-height: 22.5vh;
  bottom: 0;
}

.flex-cont:hover {
  height: 45vh;
  transform: translateY(-2.5vh);
}

.flex-cont:hover .title-wrapper {
  color: unset;
  flex-shrink: 0;
  margin: auto;
}

.pois {
  background: radial-gradient(circle, var(--navy) 14%, transparent 8%) 0 0;
  background-size: 40px 40px;
}

.bgab {
  position: absolute;
  width: 40vw;
  height: 60vh;
  left: 50%;
  top: 50%;
  transform: translate(5%, -30%);
}

.back-pack {
  margin-left: 5%;
  margin-bottom: 10px;
  background: none;
  border: none;
  color: var(--forest);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.titolohome {
  height: auto;
  width: 100%;
  background-color: var(--ivory);
}

.pren-page {
  display: flex;
  height: 80vh;
  background: var(--ivory);
  position: relative;
  z-index: 4;
  justify-content: center;
  align-items: flex-end;
}

.pren-conten {
  display: flex;
  justify-content: center;
  padding-top: 5%;
  height: fit-content;
  flex-direction: column;
  gap: clamp(40px, 6vh, 60px);
}

.pren-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 25px;
  gap: clamp(30px, 4vh, 40px);
}

.pren-title { display: flex; flex-direction: column; }

.pren-title-sec {
  text-align: center;
  font-size: 50px;
  line-height: 1.05;
}

.pren-scroll {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 20px;
}

.pren-pres { text-align: center; }

div.ani-arrow {
  position: relative;
  height: 30px;
  width: 30px;
  margin: 4px auto 0;
}

img.ani-arrow {
  display: block;
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.pren-but {
  position: relative;
  height: 48px;
  width: 180px;
  border: none;
  background-color: var(--blue);
  color: var(--ivory);
  border-radius: 60px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pren-but p { margin: 0; }

.sectionbg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0.5;
  position: fixed;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

body.page-home .titolohome { position: relative; }

body.page-home .sectionbg {
  position: fixed;
  top: 0;
  height: 100vh;
  opacity: 1;
  z-index: 0;
}

body.page-home .pren-page {
  height: 80vh;
  align-items: flex-end;
  justify-content: center;
  padding: 120px 6vw 16px;
  box-sizing: border-box;
}

body.page-home .pren-conten {
  height: auto;
  width: 100%;
  gap: clamp(36px, 5vh, 56px);
  padding-top: 0;
  align-items: center;
}

body.page-home .pren-text {
  gap: clamp(26px, 3.5vh, 36px);
  margin: 0;
}

body.page-home .pren-scroll { margin: 0 0 8px; }

body.page-home .pren-title-sec {
  max-width: 11em;
  text-align: center;
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  line-height: 1.05;
}

body.page-home .ani-arrow { margin: 0 auto; }
body.page-home img.ani-arrow { transform: rotate(180deg); }

.home-hero-photo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  margin: 0;
  background: rgba(12, 20, 16, 0.55);
}

.home-hero-photo h2 {
  position: relative;
  margin: 0;
  padding: 0 8vw;
  max-width: 14em;
  text-align: center;
  color: #fff;
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  line-height: 1.05;
}

body.page-home .home-sub {
  margin: 0;
  max-width: 22em;
  text-align: center;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.home-cta a,
.home-cta a.primary,
.home-cta a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--charcoal);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

body.page-home .pren-text .home-cta a {
  padding: 12px 22px;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  background: transparent;
}

body.page-home .pren-text .home-cta a:hover,
body.page-home .pren-text .home-cta a:focus-visible {
  background: var(--forest);
  color: var(--ivory);
}

body.page-home .panel {
  width: 100%;
  background: var(--ivory);
  padding: 72px 0 64px;
  gap: 84px;
}

body.page-home .stick-stage {
  position: relative;
  width: 100%;
  margin-top: 8vh;
}

body.page-home .stickcont {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: var(--ivory);
}

body.page-home a.contpanelbg,
body.page-home a.contpanelbg.active {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  opacity: 0;
  transition: none;
  pointer-events: none;
  color: inherit;
  text-decoration: none;
}

body.page-home a.contpanelbg.active {
  opacity: 1;
  pointer-events: auto;
}

body.page-home .contpanel {
  width: calc(100% - 12vw);
  height: auto;
}

body.page-home .contlist {
  flex-direction: column;
  align-items: center;
  height: auto;
  gap: 28px;
}

body.page-home .contelement {
  flex: none;
  width: 100%;
  padding: 0 6%;
  text-align: center;
  justify-content: center;
  transform: none;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}

body.page-home .contpanelbg.active .contelement { transform: none; }

body.page-home .contbg {
  position: relative;
  width: 100%;
  height: min(58vh, 520px);
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
}

body.page-home .contbg > img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

body.page-home .home-step-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: none;
  padding: 72px 24px 28px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(transparent, rgba(12, 20, 16, 0.78));
}

body.page-home .home-step-copy img.home-reality-logo {
  width: auto;
  height: 64px;
  margin: 0;
  object-fit: contain;
}

body.page-home .home-step-copy img.home-reality-logo.shield {
  height: 84px;
  padding: 6px;
  background: var(--ivory);
  border-radius: 10px;
}

body.page-home .home-step-copy h3 {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.1;
}

body.page-home .home-step-copy .more {
  display: inline-flex;
  margin-top: 4px;
  padding: 10px 18px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

body.page-home .footer-space {
  background: transparent;
}

body.page-home .home-phrase {
  background: rgba(12, 20, 16, 0.55);
}

body.page-home .home-phrase .overlaytextmenu {
  left: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  color: #fff;
  text-shadow: none;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
}

body.page-home .home-phrase .overlaytextmenu span {
  display: block;
  text-align: center;
}

body.page-home #ani-cont {
  margin: 0;
  padding: 0;
  background: var(--dark);
}

.home-block {
  width: 100%;
  padding: 0 6vw;
}

.home-block h2,
.home-scene-copy h2,
.home-contact h2 {
  margin: 0 0 16px;
  max-width: 16em;
}

.home-block h2::before,
.home-scene-copy h2::before,
.home-contact h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--gold);
}

.home-lead {
  max-width: 42rem;
  margin: 0;
}

body.page-home .home-photo {
  position: relative;
  left: 0;
  width: 100%;
  height: min(68vh, 620px);
  margin: 36px 0 0;
  border-radius: 22px;
  object-fit: cover;
}

.home-duo,
.home-acts {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.home-duo { grid-template-columns: 1fr 1fr; }
.home-acts { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.home-reality {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--ivory);
  text-decoration: none;
}

.home-reality img,
.home-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-reality img.home-reality-logo {
  position: relative;
  inset: auto;
  display: block;
  width: auto;
  height: 72px;
  margin: 0 0 14px;
  object-fit: contain;
  object-position: left center;
}

.home-reality img.home-reality-logo.shield {
  height: 96px;
  padding: 6px;
  background: var(--ivory);
  border-radius: 10px;
}

.home-scene-photo {
  position: relative;
  margin: 0;
  min-height: 520px;
}

.home-cta-start {
  justify-content: flex-start;
  margin-top: 28px;
}

.home-reality-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px;
  background: linear-gradient(transparent, rgba(22, 40, 33, 0.88) 42%);
}

.home-reality h3 {
  margin: 0 0 8px;
  color: var(--ivory);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

.home-reality p,
.home-act p { margin: 0; }

.home-reality .more {
  display: inline-block;
  margin-top: 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  color: var(--gold);
}

.home-act {
  color: inherit;
  text-decoration: none;
}

.home-act img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.home-act h3 {
  margin: 14px 0 6px;
  font-size: 1.25rem;
}

.home-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: calc(100% - 12vw);
  min-height: 560px;
  margin: 0 6vw;
  overflow: hidden;
  border-radius: 22px;
}

.home-scene-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  background: var(--forest);
  color: var(--ivory);
}

.home-scene-copy h2 { color: var(--ivory); }
.home-scene-copy p { margin: 0 0 22px; max-width: 34rem; }
.home-scene-copy .home-cta { justify-content: flex-start; }

.home-scene-copy .home-cta a,
.home-scene-copy .home-cta a.primary,
.home-scene-copy .home-cta a.ghost {
  padding: 12px 22px;
  border: 1.5px solid var(--ivory);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
}

.home-scene-copy .home-cta a:hover,
.home-scene-copy .home-cta a:focus-visible {
  background: var(--ivory);
  color: var(--forest);
}

.home-staff {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.home-staff article img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
}

.home-staff h3 {
  margin: 10px 0 0;
  font-size: 1rem;
}

.home-contact {
  margin: 0 6vw;
  padding: 42px 40px;
  border-radius: 22px;
  background: var(--sand);
}

.home-contact p { margin: 0 0 8px; }
.home-contact a { color: inherit; font-weight: 600; }

@media (max-width: 1200px) {
  .home-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .home-duo,
  .home-acts,
  .home-scene { grid-template-columns: 1fr; }
  .home-staff { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-reality { min-height: 420px; }
  .home-scene { min-height: 0; }
  .home-scene-photo { min-height: 280px; }
}

.section {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlaytextmenu {
  top: 0;
  left: 0;
  position: fixed;
  height: 100vh;
  z-index: 2;
  color: whitesmoke;
  margin-left: 25vw;
  font-size: 5vw;
  text-align: center;
  text-shadow: 0 0 5px black;
  transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
  opacity: 0;
  display: flex;
  width: 50vw;
  transform: scale(0.8);
  align-items: center;
  justify-content: center;
}

.section.in-page .overlaytextmenu {
  opacity: 1;
  transform: scale(1);
}

.panel {
  width: auto;
  background: var(--sand);
  position: relative;
  z-index: 2;
  align-items: center;
  flex-direction: column;
  display: flex;
}

body.page-passeggiate .presentation {
  padding: 15% 10% 0 5%;
}

.stickcont {
  position: sticky;
  background-color: var(--sand);
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow: hidden;
}

.contpanelbg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contpanelbg.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
}

.contpanel {
  height: 80vh;
  width: 90vw;
  display: flex;
  position: relative;
}

.contlist {
  height: 100%;
  width: 100%;
  display: flex;
}

.contelement {
  display: flex;
  flex: 1;
  text-align: right;
  align-items: center;
  padding-right: 10%;
  justify-content: flex-end;
  transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
  transform: translateX(-20px);
}

h3.contelement { font-size: clamp(20px, 2vw, 32px); }
.contpanelbg.active .contelement { transform: translateX(0); }

.contbg {
  height: 100%;
  width: 30%;
  margin-left: auto;
}

.contbg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.content-right {
  position: absolute;
  right: 10%;
  width: 35%;
  opacity: 0;
  transform: translateX(50px);
}

#ani-cont {
  position: relative;
  background-color: var(--sand);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.scroll-wrapper {
  background-color: var(--dark);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 280vh;
}

.animation-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  left: 0;
}

.ani-title,
.ani-title2 {
  font-size: 7vw;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.ani-title { position: absolute; }

.pdc {
  position: relative;
  display: block;
  margin: 3% auto;
  padding: 0 5%;
  text-align: center;
  max-width: 1000px;
}

.fpage,
.page-main {
  width: 100%;
  height: auto;
  position: relative;
  background-color: var(--white);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 360px;
}

body.page-chi-siamo .page-main { padding-top: 286px; }

body.page-maneggio .presentation {
  transform: translateY(1px);
}

.cont-serv {
  width: 100vw;
  height: 205vh;
  position: relative;
}

.title-serv {
  width: 100vw;
  height: 100vh;
  display: block;
  position: absolute;
  text-align: right;
  z-index: 2;
  padding: 30vh 15% 0 5%;
}

.text1 { font-size: clamp(3.5rem, 10vw, 7rem); }

.blur-page {
  width: 100vw;
  height: 206vh;
  position: absolute;
  overflow: hidden;
  top: 0;
  z-index: 1;
  transition: backdrop-filter 0.05s linear;
  backdrop-filter: blur(0);
}

.sticky-bg {
  width: 100vw;
  height: 100vh;
  position: sticky;
  overflow: hidden;
  top: 0;
  object-fit: cover;
  z-index: 0;
}

.cont-container {
  width: 100vw;
  position: relative;
  padding-top: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.list-title { margin-bottom: 50px; }

body.page-maneggio .list-container {
  background: transparent;
  padding-bottom: 8px;
}

body.page-maneggio .list-element {
  width: 700px;
  height: auto;
}

body.page-maneggio .list-img { height: 380px; }
body.page-maneggio .button svg { color: var(--white); }

.detail-block {
  width: 100%;
  padding: 64px 6vw 8px;
  background: var(--white);
}

.detail-heading {
  text-align: left;
  margin: 0;
}

.serv-list {
  width: 100%;
  position: relative;
  overflow-x: clip;
  background-color: var(--white);
}

.selector-cont {
  position: relative;
  top: auto;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  background: transparent;
  padding: 22px 0 0;
  z-index: 2;
}

.selector {
  position: relative;
  width: min(640px, 100%);
}

.menu {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  position: relative;
}

.item {
  flex: 0 0 auto;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  opacity: 1;
  font-family: "Epilogue", sans-serif;
  font-size: 18px;
  font-weight: 500;
  transition: 0.35s;
  padding-bottom: 12px;
}

.item.active { color: var(--charcoal); font-weight: 600; }

.line {
  position: relative;
  height: 1px;
  background: var(--sand);
  border-radius: 50px;
  margin: 0;
  width: 100%;
}

.indicator {
  position: absolute;
  left: 0;
  width: min(120px, 14vw);
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sub-page-list {
  position: relative;
  width: 400%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sub-page {
  width: 25%;
  flex: 0 0 25%;
  height: auto;
  position: relative;
  display: flex;
  background-color: var(--white);
  flex-direction: column;
  padding: 28px 0 28px;
}

.detail-photo {
  position: relative;
  width: min(1080px, 100%);
  height: min(62vh, 560px);
  min-height: 360px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 36px 28px;
  background: linear-gradient(to top, rgba(22, 26, 22, 0.78), rgba(22, 26, 22, 0));
  color: #fff;
}

.detail-photo h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
}

.detail-photo p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}

.detail-note {
  width: min(1080px, 100%);
  margin: 16px 0 0;
  padding: 22px 32px;
  border-radius: 18px;
  background: var(--forest);
  color: var(--ivory);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.sub-title-container {
  height: 50vh;
  flex-shrink: 0;
}

.sub-title {
  position: sticky;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 50vh;
  top: 50vh;
  margin-top: -48vh;
  line-height: 1;
  z-index: 0;
  background-color: var(--black);
  padding: 0 30vw;
}

.sub-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: var(--ink);
}

.sub-title .sub-text,
.sub-content .sub-text {
  color: var(--sand);
}

.sub-content {
  width: 100%;
  height: 50vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
}

.vdesc {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  background-color: var(--white);
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2%;
}

.gserv {
  display: flex;
  position: relative;
  height: auto;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  justify-content: center;
}

.textcont {
  display: flex;
  flex-direction: column;
  height: auto;
  gap: 48px;
}

.textcont div { flex: 0 0 auto; }
.descserv,
.textcont h3.title {
  font-size: clamp(1.75rem, 2.6vw, 3.15rem);
  font-weight: 600;
  line-height: 1.15;
}

.descserv {
  flex: 1 0 100%;
  text-align: left;
  margin-bottom: 48px;
}

.volantino {
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.volantino img {
  object-fit: contain;
  height: auto;
  max-height: 90vh;
  width: 100%;
  border-radius: 20px;
}

.closing-band {
  position: relative;
  z-index: 3;
  width: 100%;
  background: var(--ivory);
  padding-top: 80px;
}

.newp {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
  flex-direction: column;
  padding-bottom: 48px;
}

.closing-page {
  margin: 14px 0 0;
  max-width: 18em;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
}

.imgcolcont {
  background-color: var(--white);
  position: relative;
  display: flex;
  height: 60vh;
  width: 100%;
}

.imgcollage {
  width: 100%;
  display: flex;
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.collage {
  position: relative;
  flex: 1;
  overflow: hidden;
  transition: flex 1.2s ease 0.1s;
  height: 100%;
  object-fit: cover;
}

.collage-vuoto,
.event-grid .campitura {
  background: var(--gold);
}

.event-grid .campitura {
  height: 280px;
  border-radius: 20px;
}

.imgcollage:hover .collage { flex: 1; }
.imgcollage:hover .collage:hover { flex: 4; }
.imgcollage:hover .collage:not(:hover) { filter: brightness(0.4); }

.team-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  padding: 0 5% 80px;
  background: var(--white);
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  padding: 8px 6vw 96px;
}

.team-card img,
.event-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
}

.team-photo {
  position: relative;
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
}

.team-card .team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.team-card .team-photo img.team-zoom {
  object-position: center 32%;
  transform: scale(2.05);
  transform-origin: center 32%;
}

.team-card .team-photo img.team-zoom-down {
  object-position: center 58%;
  transform: scale(1.55);
  transform-origin: center 58%;
}

.team-card .team-photo img.team-zoom-soft {
  object-position: center 46%;
  transform: scale(1.22);
  transform-origin: center 46%;
}

.team-card .team-photo img.team-from-top {
  object-position: center top;
}

.team-photo img + img {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.team-card:hover .team-photo img + img {
  opacity: 1;
}

.team-card h3 {
  margin-top: 16px;
  font-size: 1.45rem;
}

.team-card .campitura {
  width: 100%;
  height: 460px;
  border-radius: 20px;
  background: var(--gold);
}

@media (max-width: 1500px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-photo,
  .team-card .campitura { height: 360px; }
}

.section-block {
  width: 100%;
  background: var(--white);
  padding: 28px 6vw 12px;
}

.section-block .text { margin-top: 10px; }

body.page-404 .page-main {
  align-items: flex-start;
  padding: 140px 6vw 80px;
}

body.page-404 .page-main .title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

body.page-404 .page-main .text { margin-bottom: 24px; }

body.page-404 .home-link {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#page { pointer-events: none; }
#page > * { pointer-events: auto; }

.footer-space {
  width: 100vw;
  height: auto;
}

#page > .footer-space { pointer-events: none; }

.bgfooter {
  position: fixed;
  height: auto;
  max-height: 90vh;
  margin: 0;
  padding: 40px 6vw 32px;
  width: 100%;
  background-color: var(--forest);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  z-index: -1;
  bottom: 0;
  gap: 28px 32px;
}

.blockF {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 0;
  flex: 1;
  justify-content: flex-start;
  height: auto;
  padding-bottom: 18px;
}

.titoloF {
  color: var(--ivory);
  text-align: center;
  position: relative;
  font-family: "Epilogue", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  padding-bottom: 16px;
}

.listS,
.listC {
  color: #fff;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.listS {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.blockS,
.blockC {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.linkS {
  color: #fff;
  text-decoration: none;
  display: flex;
  padding: 4px 0;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  white-space: nowrap;
}

.logoS {
  height: 26px;
  width: auto;
  margin: 0;
}

.logoC {
  width: fit-content;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

.phone-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  width: 100%;
}

.listL {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2px;
}

.info-line {
  margin: 0;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.footer-note {
  flex: 1 0 100%;
  margin: 0;
  padding-top: 4px;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.footer-note a {
  color: inherit;
  text-decoration: none;
}

.breakL { display: block; }

@media (max-aspect-ratio: 16/9), (max-width: 768px) {
  p.bar { display: none; }
  .logo-name { left: auto; }
  .breakL { display: none; }
}

@media (max-aspect-ratio: 16/9) {

  .contelement {
    text-align: center;
    padding-right: unset;
    justify-content: center;
    font-size: 4vw;
    transform: translateY(20px);
  }

  .contbg { width: 100%; height: 60%; }
  .contlist { flex-direction: column; }
  .contpanelbg.active .contelement { transform: translateY(0); }

  body.page-home .home-step-copy { align-items: center; }
  body.page-home .home-step-copy h3,
  body.page-home .home-step-copy p { text-align: center; }
  #imgstep1 { object-position: center calc(50% + 200px); }
  #imgstep2 { object-position: center calc(50% + 250px); }
  #imgstep3 { object-position: center calc(50% - 50px); }
}

@media (max-width: 1420px) {
  .bgfooter {
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: none;
    padding: 44px 28px 32px;
  }

  .blockF {
    flex: none;
    width: min(100%, 1080px);
    padding: 26px 0 22px;
  }

  .blockF:first-child { padding-top: 0; }

  .titoloF {
    font-size: 22px;
    padding-bottom: 12px;
  }

  .listS,
  .listL,
  .phone-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    width: 100%;
  }

  .listC {
    align-items: center;
    gap: 8px;
  }

  .logoC,
  .info-line,
  .listS,
  .listC {
    font-size: 17px;
  }

  .footer-note { padding-top: 20px; }
}

@media (max-width: 520px) {
  .bgfooter { padding: 36px 18px 26px; }
  .titoloF { font-size: 20px; }
  .phone-row { flex-wrap: nowrap; gap: 4px 10px; }
  .phone-row .logoC { font-size: 14px; }
  .phone-row .logoS { height: 20px; }
  .info-line { white-space: normal; }
  .info-line.legal {
    white-space: nowrap;
    font-size: clamp(12px, 3.8vw, 15px);
  }
}

@media (max-width: 680px) {
  .overlay { margin-bottom: 0; }
  .overlay-content { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-address { display: block; white-space: nowrap; }
  .contact-address .contact-value { margin-left: 6px; }
  .addr-line { display: inline; }
  .addr-line + .addr-line::before { content: ", "; }

  .binario-flex {
    flex-direction: column;
    min-width: unset;
    height: 150vh;
    padding: 24px 5vw 56px;
    gap: 24px;
  }

  .box2-container { gap: 24px; }

  .elemento-flex { height: unset; }
  body.page-circolo .page-content { height: 200vh; }
  body.page-gonzaga .page-content,
  body.page-realta .page-content { height: auto; min-height: 100vh; overflow: visible; }
  body.page-gonzaga .binario-flex,
  body.page-realta .binario-flex { height: auto; }
  body.page-gonzaga .binario-flex .elemento-flex,
  body.page-realta .binario-flex .elemento-flex,
  body.page-gonzaga .binario-flex:hover .elemento-flex,
  body.page-realta .binario-flex:hover .elemento-flex,
  body.page-gonzaga .binario-flex .elemento-flex:hover,
  body.page-realta .binario-flex .elemento-flex:hover {
    flex: none;
    height: 40vh;
    filter: none;
  }
  .boxc2 { flex: 2.14; }
  .binario-flex .boxc2:hover { flex: 2.9; }
  .binario-flex:hover .boxc2:not(:hover) { flex: 1.72; }
  .box2-container:hover .sub-box:not(:hover) { flex: 0.89; }
  .box2-container:hover .sub-box:hover { flex: 2.2; }
  .box-link { height: 100%; width: 100%; }
  .bubble { display: none; }
  .controlli-slider { display: none; }
  .title { font-size: 3rem; }
  .internal-hero .title { font-size: 3rem; }
  body.page-home .home-scene-copy .title.second { font-size: 2.2rem; }
  .page-main { padding-top: 194px; }
  body.page-chi-siamo .page-main { padding-top: 120px; }
  body.page-passeggiate .title.second {
    font-size: clamp(2.5rem, 6.4vw, 5.4rem);
    line-height: 1.05;
  }

  .presimg {
    width: 100vw;
    height: auto;
    object-position: center;
  }

  .internal-hero { padding-top: 12px; }
  .internal .presimg,
  body.page-passeggiate .presimg {
    margin: 8px 0 36px;
    height: auto;
    object-position: center center;
  }
  .story { width: 100%; padding: 0 6vw; }
  .story-lead,
  .story-split { grid-template-columns: 1fr; gap: 22px; }
  .story-lead + .story-split,
  .story-split + .story-lead { margin-top: 48px; }
  .story-more { margin-top: 40px; }
  .story-split .story-copy,
  .story-split .story-mosaic,
  .story-split .story-portrait { order: 0; }
  .story-portrait { min-height: 280px; }
  .story-mosaic { gap: 8px; }

  .imgcolcont,
  .imgcollage { height: 160vh; }
  .imgcollage { flex-direction: column; }
  .collage { height: auto; width: 100%; }
  .collage-vuoto { height: 28vh; min-height: 160px; }
  .sub-title { padding: 0 5%; }
}

@media (max-width: 850px) {
  .listC { flex-direction: column; }
  .volantino { height: auto; width: 100%; }
}

.branch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 8px 6vw 80px;
  background: var(--white);
}

.branch-links a {
  font-family: "Epilogue", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--gold);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 8px 6vw 80px;
  background: var(--white);
}

.contact-list a,
.contact-list p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: var(--charcoal);
  text-decoration: none;
}

@media (max-width: 1200px) {
  .navbar,
  .navbar.transparent,
  .navbar.trasparent {
    background: var(--forest);
  }

  #logo,
  #logo.deactive { display: block; }
  #logo2 { display: none; }

  .dot-toggle span { background: #fff; }

  .menu-wrapper {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    margin-left: auto;
  }

  .navbaritem { display: none; }
  .navbarlist { justify-content: flex-start; }
}

@media (max-width: 1000px) {
  .list-element { width: 100%; }
  body.page-maneggio .list-element { width: 100%; }

  .overlaytextmenu {
    max-width: 70%;
    margin-left: 15%;
    font-size: 40px;
    width: unset;
  }

  body.page-home .home-phrase .overlaytextmenu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 8vw;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    font-size: clamp(1.85rem, 8.2vw, 2.6rem);
  }

  body.page-home .home-phrase .overlaytextmenu span {
    width: 100%;
    text-align: center;
  }

  .presimg,
  .internal .presimg,
  body.page-passeggiate .presimg {
    width: 100%;
    height: auto;
    left: 0;
    object-fit: contain;
    object-position: center center;
  }

  .story-lead,
  .story-split { align-items: start; }

  .story-portrait {
    min-height: 0;
    height: auto;
  }

  .story-portrait img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .story-mosaic img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  .team-photo { height: auto; }

  .team-card .campitura {
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .team-card .team-photo img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }

  .team-card .team-photo img + img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  #imgstep1,
  #imgstep2,
  #imgstep3 {
    object-position: center center;
  }

  .intro-pack {
    margin-top: unset;
    flex-direction: column;
    height: 100%;
  }

  .pren-text { flex: 0.4; }
  .pack-box { justify-content: flex-start; }
  .cont-intro-pack { align-items: flex-start; }
  .cont-pack { flex-direction: column; }
  .prop-button-cont { margin: 0 5% 0 0; }

  .prop-button {
    background-color: var(--sand);
    background-image: none;
    width: max(90px, 16vw);
  }

  .prop-text {
    color: var(--dark);
    font-size: clamp(18px, 3vw, 25px);
  }

  .vdesc {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .fade-in-sx { transform: translateX(0); opacity: 1; }
  .fade-in-dx { transform: translateX(0); }
}

@media (max-height: 450px) {
  .pack-box,
  .flex-cont { flex-direction: row; height: 40vh; }
  .box-title { transform: translateY(0); min-width: 339px; }
  .flex-cont:hover .box-title { width: 100%; }
  .pack-box .box-image { height: 100%; width: unset; }
  .flex-space { width: 0; height: 100%; }
}

@media (max-height: 450px), (max-width: 1000px) {
  .flex-cont { height: 100%; }
  .pack-box:not(:hover) { flex: 1; }
  .pack-box:hover { flex: 4; }

  .flex-cont:hover {
    justify-content: flex-end;
    height: 40vh;
    transform: translateY(0);
  }

  .box-title { min-height: unset; height: 100%; }
}
