/* ═══════════════════════════════════════════
   LOCATION PAGE
   ═══════════════════════════════════════════ */

body {
  background: #ffffff;
  color: #000;
}

/* ─── HERO ─── */
.hero {
  padding: 16px;
}

.hero-card {
  position: relative;
  width: 100%;
  height: 632px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 33px 34px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-radial {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(102,102,102,0) 0%,
    rgba(51,51,51,0.5) 50%,
    rgba(26,26,26,0.75) 75%,
    rgba(0,0,0,1) 100%
  );
  pointer-events: none;
}

.hero-overlay-linear {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(102,102,102,0) 0%,
    rgba(35,35,35,0.256) 26.923%,
    rgba(0,0,0,0.39) 88.462%
  );
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 900;
  font-size: 0;
  white-space: pre;
  text-align: left;
}

.hero-text p {
  margin: 0;
  line-height: 0;
}

.t32 { font-size: 32px;      line-height: 0.95; display: inline; }
.t43 { font-size: 42.667px;  line-height: 0.95; display: inline; }
.t48 { font-size: 48px;      line-height: 0.95; display: inline; }
.t53 { font-size: 53.333px;  line-height: 0.57; display: inline; }

/* ─── MAP BUTTON ─── */
.map-wrapper {
  padding: 0 16px;
  margin-top: 6px;
}

.map-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 119px;
  border-radius: 16px;
  border: 1px solid #244f27;
  overflow: hidden;
  cursor: pointer;
}

.map-btn-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/img/map-bg.webp');
  background-size: cover;
  background-position: center;
}

.map-btn-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.map-btn-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
}

/* ─── SECTION TITLE ─── */
.section-title {
  padding: 0 16px;
  margin-top: 26px;
  font-weight: 600;
  font-size: 24px;
  color: #000000;
  letter-spacing: -0.264px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.tabs-outer {
  margin-top: 15px;
}

.tabs-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  padding-top: 18px;
}

.tabs-row {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
  padding: 0 40px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  min-width: 60px;
}

.tab-icon-wrap {
  height: 45px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tab-icon {
  max-height: 45px;
  max-width: 45px;
  width: auto;
  object-fit: contain;
}

/* Flora normale: icona quadrata, serve piu' spazio per pareggiarla */
.tab-item[data-tab="flora"] .tab-icon:not(.tab-icon-clicked) {
  max-height: 60px;
  max-width: 60px;
}

/* Clicked icons con testo+barra embedded: piu' alti per compensare */
.tab-icon.tab-icon-clicked {
  max-height: 70px;
  max-width: none;
}

.tab-label {
  font-weight: 400;
  font-size: 12.245px;
  color: #000000;
  text-align: center;
  white-space: nowrap;
}

.tab-label-active {
  font-weight: 500;
  color: #0b3c13;
}

.tab-bar {
  height: 7px;
  width: 100%;
  border-radius: 9px;
  background: transparent;
  transition: background 0.25s;
}

.tab-bar-active {
  background: #0b3c13;
}

.tradizione-wrap {
  position: relative;
  width: 45px;
  height: 45px;
}

.trad-a, .trad-b, .trad-c {
  position: absolute;
  height: 40px;
  width: auto;
  left: 50%;
  top: 50%;
  transform-origin: center center;
}

.trad-a { transform: translate(-50%, -50%) rotate(-90deg); }
.trad-b { transform: translate(-50%, -50%) rotate(-72.98deg); }
.trad-c { transform: translate(-50%, -50%) rotate(-57.25deg); }

.tabs-shadow {
  height: 20px;
  background: rgba(0,0,0,0.09);
  filter: blur(50px);
  border-radius: 0 0 127px 297px;
  width: 100%;
  margin-top: 2px;
  pointer-events: none;
}

.tab-pane {
  padding: 0 16px;
}

/* ═══════════════════════════════════════════
   FLORA CARDS
   ═══════════════════════════════════════════ */
.flora-row {
  display: flex;
  gap: 10px;
  height: auto;
  align-items: flex-start;
  margin-top: 16px;
}

.flora-img-wrap {
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 3;
  transition: min-height 0.4s ease, aspect-ratio 0.4s ease;
}

.flora-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  transition: opacity 0.3s ease;
}

.flora-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
  transition: gap 0.4s ease, padding 0.4s ease;
}

.flora-title {
  font-weight: 700;
  font-size: 24px;
  color: #244f27;
  line-height: normal;
  transition: min-height 0.4s ease;
}

.flora-desc {
  font-weight: 400;
  font-size: 14px;
  color: #000000;
  line-height: normal;
}

.green-bold {
  font-weight: 700;
  color: #0a3c12;
  font-style: normal;
}

.coming-soon {
  padding: 48px 0;
  text-align: center;
}

.coming-soon p {
  font-weight: 600;
  font-size: 18px;
  color: #244f27;
}

/* ═══════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════ */
.carousel-section {
  position: relative;
  background: #6d4b07;
  height: 675px;
  overflow: hidden;
  margin-top: 24px;
}

.carousel-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  padding: 30px 25px 0;
  text-align: center;
  pointer-events: none;
}

.carousel-title {
  font-weight: 500;
  font-size: 24px;
  color: #ffffff;
}

.carousel-desc {
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.5;
  margin-top: 8px;
}

.carousel-viewport {
  position: absolute;
  top: 130px; bottom: 60px;
  left: 0; right: 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.4s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  width: 279px;
  height: 470px;
  border-radius: 16px;
  overflow: hidden;
  filter: blur(2px);
  opacity: 0.6;
  transition: width 0.4s ease, height 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide.carousel-center {
  width: 307px;
  height: 516px;
  filter: blur(0);
  opacity: 1;
  border-radius: 32px;
  box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.4);
}

.carousel-slide.carousel-near {
  width: 279px;
  height: 470px;
  filter: blur(2px);
  opacity: 0.7;
}

.carousel-arrow {
  position: absolute;
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-left  { left:  30px; }
.carousel-right { right: 30px; }

/* ═══════════════════════════════════════════
   RISTORANTE
   ═══════════════════════════════════════════ */
.ristorante-section {
  position: relative;
  height: 400px;
}

.ristorante-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/img/restaurant-bg.webp');
  background-size: cover;
  background-position: center;
}

.ristorante-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 28%),
    linear-gradient(180deg, rgba(102,182,50,0) 57.26%, rgb(45,80,22) 100%);
}

.ristorante-content {
  position: absolute;
  top: 8px;
  left: 0; right: 0;
  z-index: 1;
  padding: 0 16px;
}

.ristorante-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ristorante-title {
  font-weight: 700;
  font-size: 24px;
  color: #244f27;
}

.ristorante-desc {
  font-weight: 400;
  font-size: 14px;
  color: #000000;
}

.c-green  { color: #244f27; }
.fw-semi  { font-weight: 600; }
.fw-med   { font-weight: 500; }

/* ─── MOBILE ≤550px (classe JS) ─── */
.flora-row.flora-mobile {
  align-items: stretch;
}

.flora-row.flora-mobile .flora-img-wrap {
  aspect-ratio: unset;
  min-height: 160px;
}

.flora-row.flora-mobile .flora-text {
  gap: 6px;
  padding: 6px 0;
}

.flora-row.flora-mobile .flora-title {
  min-height: 0;
  display: block;
}
