/* ========================================
   GLOBAL STYLES - Stili comuni a tutte le pagine
   ======================================== */

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

/* Variabili globali comuni */
:root {
  --secondary: #ec4899;
  --dark: #1f2937;
  --light: #f9fafb;
  --white: #ffffff;
}

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

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

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--dark);
  transition: color 0.3s;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.navbar-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.navbar-menu a:hover {
  color: var(--primary);
}

.btn-contact {
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(209, 72, 65, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ========================================
   Navbar Social Icons - Solo mobile
   ======================================== */

/* Default: nascondi le icone social */
.social-links {
  display: none;
}

/* Mobile: mostra solo quando il menu è aperto */
@media (max-width: 768px) {
  .navbar-menu.active .social-links {
    display: flex;
    /* mette le immagini in fila */
    gap: 15px;
    /* spazio tra le icone */
    justify-content: center;
    /* centra le icone nel menu */
    margin-top: 1rem;
    /* distanza dai link sopra */
  }

  .social-links a img {
    width: 45px;
    /* dimensione immagine */
    height: auto;
    /* mantiene proporzioni */
    display: block;
    transition: transform 0.3s;
  }

  .social-links a:hover img {
    transform: scale(1.1);
  }
}


/* ========================================
   SECTION TITLE (comune a più pagine)
   ======================================== */
.section-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.section-title h2,
.contact-info h2,
.contact-form-wrapper h2 {
  font-family: "Delius", cursive;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #6b7280;
}

/* ========================================
   LIGHTBOX SWIPE - Galleria con scorrimento
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 10000;
  display: none;
}

.lightbox.active {
  display: block;
}

.lightbox-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.lightbox-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.lightbox-track.dragging {
  transition: none;
}

.lightbox-slide {
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 100px;
  box-sizing: border-box;
}

.lightbox-slide img {
  max-width: 90vw;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  z-index: 10003;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-close:active {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  z-index: 10003;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  z-index: 10003;
}

/* Mobile portrait: larghezza piena */
@media (max-width: 1024px) and (orientation: portrait) {
  .lightbox-slide {
    padding: 70px 0 90px;
  }

  .lightbox-slide img {
    width: 100vw !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: calc(100vh - 160px) !important;
  }
}

/* Mobile landscape: altezza piena */
@media (max-width: 1024px) and (orientation: landscape) {
  .lightbox-slide {
    padding: 0 !important;
    align-items: center;
    justify-content: center;
  }

  .lightbox-slide img {
    width: auto !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
  }

  .lightbox-counter {
    bottom: 8px !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
  }

  .lightbox-close {
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.3rem !important;
  }
}

/* ========================================
   SOCIAL SECTION
   ======================================== */
.social-section {
  padding: 4rem 2rem;
}

.social-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-container h3 {
  color: white;
  font-size: 2rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon.facebook i {
  color: #1877F2;
}

.social-icon.instagram i {
  color: #E1306C;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 2rem;
  text-align: center;
}

/* ========================================
   ANIMAZIONI COMUNI
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
    gap: 2rem;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu a {
    color: var(--dark) !important;
    padding: 0.5rem;
  }

  .hamburger {
    display: flex;
  }

  .social-container {
    justify-content: center;
    text-align: center;
  }
}

/* Nascondi frecce su tablet e mobile */
@media (max-width: 1024px) {
  .lightbox-nav {
    display: none;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }
}