@charset "UTF-8";
/* ═══════════════════════════════════════════
   PAGINA ATOLLI
═══════════════════════════════════════════ */
.atolli-page {
  padding: 3.5rem 0 6rem;
  background: var(--off-white);
  min-height: 60vh;
}

.atolli-page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.atolli-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
}

.atolli-page-sun {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.atolli-page-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.atolli-page-intro p:last-child {
  margin-bottom: 0;
}

.atolli-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* ═══════════════════════════════════════════
   MENU GRUPPI (sticky)
═══════════════════════════════════════════ */
.atolli-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  margin: 0 0 3rem;
  padding: 0.75rem 0;
  pointer-events: none;
}

.atolli-nav-inner {
  display: inline-flex;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(13, 43, 69, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}
.atolli-nav-inner::-webkit-scrollbar {
  display: none;
}

.atolli-nav-link {
  flex-shrink: 0;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.atolli-nav-link:hover {
  background: rgba(23, 184, 194, 0.12);
  color: var(--ocean);
}
.atolli-nav-link.is-active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6, 81, 132, 0.3);
}

/* ═══════════════════════════════════════════
   GRUPPI
═══════════════════════════════════════════ */
.atolli-gruppo {
  scroll-margin-top: var(--atolli-scroll-offset, 140px);
}
.atolli-gruppo + .atolli-gruppo {
  margin-top: 4.5rem;
}

.atolli-gruppo-header {
  margin: 0 0 1.75rem;
  text-align: center;
}

.atolli-gruppo-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
}
.atolli-gruppo-title::before, .atolli-gruppo-title::after {
  content: "";
  flex: 1;
  max-width: 180px;
  height: 1px;
}
.atolli-gruppo-title::before {
  margin-right: 0.75rem;
  background: linear-gradient(270deg, rgba(247, 155, 54, 0.55), rgba(247, 155, 54, 0));
}
.atolli-gruppo-title::after {
  margin-left: 0.75rem;
  background: linear-gradient(90deg, rgba(247, 155, 54, 0.55), rgba(247, 155, 54, 0));
}

.atolli-gruppo-sun {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.atolli-gruppo-text {
  max-width: 760px;
  margin: 0.6rem auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.atolli-gruppo-text p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   CARD ATOLLO
═══════════════════════════════════════════ */
.atollo-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(13, 43, 69, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.atollo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.atollo-card-media {
  position: relative;
  aspect-ratio: 4/3;
  background: #EDF3F6;
  overflow: hidden;
}
.atollo-card-media:hover .atollo-card-arrow,
.atollo-card-media:hover .atollo-card-zoom {
  opacity: 1;
}

.atollo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.atollo-card-arrow,
.atollo-card-zoom {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(13, 43, 69, 0.18);
  opacity: 0;
  transition: opacity 0.25s, background 0.25s, color 0.25s;
}
.atollo-card-arrow:hover,
.atollo-card-zoom:hover {
  background: var(--ocean);
  color: var(--white);
}

.atollo-card-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
}
.atollo-card-arrow--prev {
  left: 0.75rem;
}
.atollo-card-arrow--next {
  right: 0.75rem;
}

.atollo-card-zoom {
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.8rem;
}

.atollo-card-counter {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 81, 132, 0.78);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.atollo-card-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 81, 132, 0.55);
}
.atollo-card-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.25s, transform 0.25s;
}
.atollo-card-dots button.is-active {
  background: var(--white);
  transform: scale(1.25);
}

.atollo-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.atollo-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin: 0;
}

.atollo-card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.atollo-card-desc p:last-child {
  margin-bottom: 0;
}
.atollo-card-desc a {
  color: var(--ocean);
}

@media (max-width: 767.98px) {
  .atolli-page {
    padding: 2.5rem 0 4rem;
  }
  .atollo-card-arrow,
  .atollo-card-zoom {
    opacity: 1;
  }
  .atolli-nav {
    margin-bottom: 2rem;
  }
  .atolli-nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .atolli-gruppo + .atolli-gruppo {
    margin-top: 3.5rem;
  }
}