/* ========== BASE ========= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #1e1e2f;
  color: #fff;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: #ffcc00;
  margin-top: 0;
}

a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffd633;
}

/* ========== INTRO / HOME ========= */
.intro-page {
  height: 100vh;
  background: black url("../img/interno-locale.jpg") center center no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative; /* serve per posizionare "scorri" */
}

.intro-overlay {
  background: rgba(0, 0, 0, 0.82);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  animation: fadeIn 1.2s ease;
}

.intro-title {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px #000;
  line-height: 1;
}

.location-options {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.location-card {
  width: 280px;
  padding: 2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.location-card:hover {
  transform: translateY(-6px) scale(1.04);
  background: rgba(255, 255, 255, 0.18);
}

.location-card h2 {
  color: #f4a261;
  margin-bottom: 1rem;
}

.location-card p {
  font-size: 0.95rem;
  color: #ddd;
}

/* Scritta SCORRI ↓ accattivante */
.scroll-hint {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: black;
  font-size: 1.6rem;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: bounce 1.5s infinite;
  opacity: 0.9;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

/* ========== SCROLL REVEAL ========= */
.gemonio-page {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.gemonio-page.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HEADER ========= */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background-color: #2b2b3c;
}

header h1 {
  font-size: 2.6rem;
}

header p {
  max-width: 800px;
  margin: 1rem auto 0;
  color: #ccc;
}

/* ========== NAV ========= */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #2e2e3e;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  gap: 1.5rem;
}

/* ========== HERO ========= */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-background {
  background-color:  #ffff00;
  justify-content: center;
  display: flex;
  height: 100%;
}

.hero-background img {
  height: 100%;
  object-fit: cover;
}


.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  padding: 0 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* ========== SECTIONS ========= */
.section {
  padding: 3.5rem 2rem ;
  text-align: center;
  border-top: 1px solid #333;
}

.section p {
  max-width: 750px;
  margin: 0 auto;
  color: #ddd;
}

/* ========== CAROUSEL ========= */
marquee img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
}

/* ========== GALLERY ========= */
.gallery {
  display: flex;
  justify-content: center;
}

.gallery img {
  max-width: 320px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery img.enlarged {
  transform: scale(1.8);
  z-index: 50;
  position: relative;
  cursor: zoom-out;
}

/* ========== FOOTER ========= */
.footer {
  background-color: #111;
  color: #999;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* ========== FLOATING MENU ========= */
/* Mini menu flottante */
#floating-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffcc00;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  z-index: 999;
  transition: transform 0.3s ease;
}

#floating-menu a {
  color: #1e1e2f;
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

#floating-menu a:hover {
  transform: scale(1.2);
}

#floating-menu a img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ========== ANIMATION ========= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========= */
@media (max-width: 900px) {
  .hero {
    height: 320px;
  }

  .hero-background img {
    width: 100%;
  }

  .location-card {
    width: 90%;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {

  .intro-overlay {
    padding: 2rem 1.2rem;
  }

  .intro-title {
    font-size: 1.8rem;
  }

  .scroll-hint {
    font-size: 1.2rem;
  }

  .hero {
    height: 240px;
  }

  .hero-text {
    font-size: 1.3rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .gallery img.enlarged {
    transform: scale(1.3);
  }
}

/* ===== TABLET ===== */
@media (min-width: 601px) and (max-width: 1024px) {

  .hero {
    height: 300px;
  }

  .hero-text {
    font-size: 1.7rem;
  }
}

