/* ============================================
   MARETREK - CSS PRINCIPALE
   Design Premium - Costa Sarda
   ============================================ */

/* --- VARIABILI CSS --- */
:root {
  --color-primary: #0d6b8f;
  --color-primary-dark: #094f6a;
  --color-primary-light: #1a9bbf;
  --color-accent: #f0a500;
  --color-accent-dark: #c88800;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-dark: #0a0f1a;
  --color-text: #1a1a2e;
  --color-text-light: #555577;
  --color-overlay: rgba(5, 20, 40, 0.55);
  --color-overlay-strong: rgba(5, 20, 40, 0.75);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
  --shadow-card: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.25);
  --radius-card: 12px;
  --radius-btn: 4px;
  --nav-height: 80px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* --- UTILITY --- */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240,165,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
}

.btn-dark:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   HEADER & NAVIGAZIONE
   ============================================ */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

#site-header.scrolled {
  background: rgba(10, 15, 26, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  height: 65px;
}

#site-header.transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 0;
}

.site-logo img {
  height: 58px;
  width: auto;
  transition: var(--transition-smooth);
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  padding: 5px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

#site-header.scrolled .site-logo img {
  height: 54px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Nascondi il logo-text se è presente l'immagine del logo */
.site-logo .logo-text {
  display: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text span {
  color: var(--color-accent);
}

/* Nav principale */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  position: relative;
  transition: var(--transition-fast);
  opacity: 0.9;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 1.8rem);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SLIDESHOW FULLSCREEN
   ============================================ */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide.prev {
  opacity: 0;
  z-index: 0;
}

/* Ken Burns Effect */
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 110%;
  height: 110%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: kenburns 10s ease-out forwards;
}

@keyframes kenburns {
  0% { transform: scale(1.1) translate(-2%, -2%); }
  100% { transform: scale(1) translate(0, 0); }
}

.hero-slide.active::before {
  animation: kenburns 12s ease-out forwards;
}

/* Overlay sfumato */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,10,30,0.3) 0%,
    rgba(0,10,30,0.2) 40%,
    rgba(0,10,30,0.7) 100%
  );
  z-index: 2;
}

/* Contenuto Hero */
.hero-content {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-white);
  z-index: 3;
  width: 90%;
  max-width: 900px;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 600;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 6rem);
  color: var(--color-white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
  font-style: italic;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.slide-location-badge {
  position: absolute;
  bottom: 4%;
  right: 3%;
  z-index: 4;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slide-location-badge i {
  color: var(--color-accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slideshow Controls */
.slideshow-controls {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 4;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.slide-dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}

.slide-dot:hover {
  background: rgba(255,255,255,0.8);
}

.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.slide-prev { left: 2%; }
.slide-next { right: 2%; }

.slide-prev:hover, .slide-next:hover {
  background: rgba(240,165,0,0.8);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.05);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  font-size: 1.5rem;
  display: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SEZIONE HIGHLIGHTS (sotto l'hero)
   ============================================ */

#highlights {
  padding: 5rem 0;
  background: var(--color-white);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.highlight-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.highlight-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.highlight-card:hover .highlight-img {
  transform: scale(1.05);
}

.highlight-img-wrap {
  overflow: hidden;
  height: 240px;
  position: relative;
}

.highlight-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.highlight-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.highlight-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.highlight-desc {
  color: var(--color-text-light);
  font-size: 0.93rem;
  flex: 1;
  margin-bottom: 1.2rem;
}

.highlight-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-link:hover {
  color: var(--color-accent-dark);
  gap: 0.7rem;
}

/* ============================================
   SEZIONE METE (Destinazioni)
   ============================================ */

#destinations {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f6fa 0%, #e8f4f8 100%);
}

.destinations-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .destinations-scroll {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .destinations-scroll {
    grid-template-columns: 1fr;
  }
}

.dest-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dest-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.dest-card:hover img {
  transform: scale(1.1);
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,10,30,0.85) 0%, transparent 50%);
  transition: var(--transition-smooth);
}

.dest-card:hover .dest-overlay {
  background: linear-gradient(to top, rgba(0,10,30,0.9) 0%, rgba(0,10,30,0.2) 50%);
}

.dest-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.dest-card:hover .dest-info {
  transform: translateY(0);
}

.dest-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.dest-region {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.dest-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.dest-card:hover .dest-desc {
  max-height: 100px;
}

/* ============================================
   SEZIONE SERVIZI HERO (banner)
   ============================================ */

#services-hero {
  position: relative;
  padding: 7rem 0;
  background: var(--color-primary-dark);
  overflow: hidden;
}

#services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero/golfo-orosei.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.services-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.services-hero-content .section-title {
  color: white;
  margin-bottom: 1rem;
}

.services-hero-content .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.service-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ============================================
   SEZIONE PERCHÉ SCEGLIERCI
   ============================================ */

#why-us {
  padding: 6rem 0;
  background: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.why-image-wrap {
  position: relative;
}

.why-image-wrap img {
  border-radius: var(--radius-card);
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
}

.why-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-card);
}

.why-badge .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.why-badge .label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--radius-card);
  transition: var(--transition-fast);
}

.why-feature:hover {
  background: #f0f7fa;
}

.why-feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-feature-title {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--color-primary-dark);
}

.why-feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ============================================
   SEZIONE BOOKING (CTA)
   ============================================ */

#booking-cta {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  text-align: center;
}

#booking-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero/cala-mariolu.jpg') center/cover no-repeat;
  filter: brightness(0.4);
}

.booking-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.booking-content h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.booking-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
}

.booking-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   GALLERY PREVIEW
   ============================================ */

#gallery-preview {
  padding: 5rem 0;
  background: var(--color-dark);
}

#gallery-preview .section-title {
  color: white;
}

#gallery-preview .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,10,30,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.gallery-item-overlay i {
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,10,30,0.4);
}

.gallery-item:hover .gallery-item-overlay i {
  opacity: 1;
}

.gallery-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

#testimonials {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f6fa 0%, #e8f4f8 100%);
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-primary-light);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.author-from {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   FOOTER
   ============================================ */

#site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo-footer {
  display: block;
  margin-bottom: 1rem;
  width: 140px;
  height: auto;
  /* Logo ha sfondo bianco: lo schiarisco e riduco il bianco su sfondo scuro */
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.3));
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--color-accent);
  opacity: 0.6;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--color-accent);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item .contact-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ============================================
   PAGINE INTERNE - HEADER
   ============================================ */

.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 0 2rem;
}

.page-hero-content h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  color: var(--color-accent);
}

/* ============================================
   PAGINA SERVIZI
   ============================================ */

.services-detail {
  padding: 6rem 0;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.service-card:nth-child(even) {
  direction: rtl;
}

.service-card:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .service-card,
  .service-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
}

.service-card-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-img:hover img {
  transform: scale(1.05);
}

.service-detail-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(240,165,0,0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.service-card-title {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.service-card-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-text);
}

.service-features-list li i {
  color: var(--color-primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.service-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: #f0f7fa;
  border-radius: var(--radius-card);
  border-left: 4px solid var(--color-primary);
}

.service-meta-item {
  display: flex;
  flex-direction: column;
}

.service-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.service-meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* ============================================
   PAGINA GALLERIA
   ============================================ */

.gallery-section {
  padding: 5rem 0;
  background: #050f1f;
}

.gallery-filter {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  background: transparent;
  letter-spacing: 0.05em;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.8rem;
}

.gallery-grid-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
  transition: var(--transition-smooth);
}

.gallery-grid-item:hover {
  transform: scale(1.02);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,10,30,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.gallery-grid-item:hover .gallery-overlay {
  background: rgba(0,10,30,0.6);
}

.gallery-overlay-text {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  opacity: 0;
  transition: var(--transition-smooth);
  text-align: center;
}

.gallery-grid-item:hover .gallery-overlay-text {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

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

/* ============================================
   PAGINA INFORMAZIONI
   ============================================ */

.info-section {
  padding: 6rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.info-grid img {
  border-radius: var(--radius-card);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
}

.info-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.info-text h2 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.value-card {
  padding: 2rem;
  background: linear-gradient(135deg, #f0f7fa, #e8f4f8);
  border-radius: var(--radius-card);
  border-top: 4px solid var(--color-primary);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.value-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.value-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Mappa area */
.map-section {
  background: #f0f6fa;
  padding: 4rem 0;
}

.map-container {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ============================================
   PAGINA CONTATTI
   ============================================ */

.contact-section {
  padding: 6rem 0;
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-form-wrap {
  background: white;
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.contact-form-wrap h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0eaee;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: var(--transition-fast);
  background: #fafcfd;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

.form-control::placeholder {
  color: #b0bec5;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: linear-gradient(135deg, #f0f7fa, #e8f4f8);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.contact-info-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

.map-placeholder {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 1.5rem;
  background: #e0eaee;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================
   PRENOTAZIONE SECTION
   ============================================ */

.booking-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f0f6fa 0%, #e8f4f8 100%);
}

.booking-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.booking-info-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.booking-info-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.booking-info-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

.booking-info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* ============================================
   ANIMAZIONI SCROLL
   ============================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 15, 26, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
    transition: right 0.4s ease;
    backdrop-filter: blur(20px);
  }

  .main-nav.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 0.8rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: normal;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .slide-prev, .slide-next {
    display: none;
  }

  .why-badge {
    right: 0;
    bottom: -1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 65px;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  border: none;
  box-shadow: var(--shadow-card);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

/* Overlay mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  backdrop-filter: blur(3px);
}

.nav-overlay.active {
  display: block;
}
