/* Villa Letizia - CSS v1.1.0 - Carosello mobile fix */
/* Global styles */
:root {
  /* Typography */
  --ff-display: "ivyora-display", "Cormorant Garamond", "Playfair Display", serif;
  --ff-sans: "ivystyle-sans", "Inter", "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Brand palette aligned to reference */
  --brand: #854d47;
  --brand-700: #6f3f3a;
  --brand-50: #f6eae7;
  --ink-900: #131313;
  --ink-700: #2b2b2b;
  --ink-500: #5a5a5a;
  --white: #ffffff;

  /* Supporting soft colors reused in cards */
  --yellow-500: #ffd34f;
  --yellow-50: #fff9e6;
  --mint-500: #39c6a5;
  --mint-50: #e5fbf5;
  --blue-50: #e3f2fd;

  --shadow-soft: 0 10px 30px rgba(19, 19, 19, 0.10);
  --radius: 16px;
}

/* Enhanced scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Account for sticky header */
}

/* Smooth transitions for all interactive elements */
* {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Disable transitions for hero section elements */
.hero * {
  transition: none !important;
}

/* Enhanced image hover effects */
img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

img:hover {
  transform: scale(1.02);
}

/* Disable hover effects for hero images */
.hero img {
  transition: none !important;
}

.hero img:hover {
  transform: none !important;
}

/* Enhanced about images */
.about-img img {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-img:hover img {
  transform: scale(1.03);
}

/* Enhanced corners images */
.corners-right img {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.corners-right img:hover {
  transform: scale(1.05);
}

/* Enhanced tile images */
.tile-right img {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tile-right img:hover {
  transform: scale(1.03);
}

/* Enhanced navigation animations */
.nav a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav a:hover::after {
  width: 100%;
}

/* Enhanced header animations */
.site-header {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.center {
  text-align: center;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-500);
}

.subtitle {
  font-size: 1.125rem;
  color: var(--ink-500);
  max-width: 52ch;
}

/* Headings */
h1,
h2,
h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink-900);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

/* Display heading variant like reference */
.display {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: .2px;
}

.display.light {
  color: rgba(19, 19, 19, .85);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid #edf2f7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: .5px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  display: block;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 99;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--brand);
  background: rgba(133, 77, 71, 0.05);
}

/* Buttons - Enhanced animations */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, background-color;
}

.btn.small {
  padding: 8px 14px;
  font-size: .95rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(133, 77, 71, 0.25);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.01);
  transition-duration: 0.1s;
}

.btn-outline {
  color: var(--brand);
  border: 2px solid var(--brand);
  background: transparent;
  position: relative;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(133, 77, 71, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-outline:hover {
  background: rgba(133, 77, 71, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(133, 77, 71, 0.15);
}

.btn-outline:hover::before {
  left: 100%;
}

/* Call button behavior */
@media (min-width: 769px) {
  .call-btn {
    cursor: pointer;
    position: relative;
  }

  .call-btn::after {
    content: attr(data-number);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink-900);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 100;
  }

  .call-btn::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--ink-900);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
  }

  .call-btn:hover::after,
  .call-btn:hover::before {
    opacity: 1;
  }
}

/* Hero-specific outline style for better contrast */
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.92);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero subtitle readability */
.hero .subtitle {
  color: #ffffff;
  text-shadow: none;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  background: var(--brand-50);
  overflow: hidden;
}

.hero--cover {
  background-image: url('images/WhatsApp Image 2025-10-23 at 11.32.32_upscayl_4x_upscayl-standard-4x.webp');
  background-size: cover;
  background-position: center center;
}

.hero--parallax {
  background-attachment: fixed;
}

.hero--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-carousel-slide.active {
  opacity: 1;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero .container {
  width: min(1400px, 94%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: clamp(480px, 76vh, 840px);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
}

.hero-copy--center {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
  background: transparent;
  border: none;
  padding: 24px 24px;
  border-radius: 16px;
  backdrop-filter: none;
}

.hero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: none;
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

/* Make hero copy overlay-like on smaller screens */
@media (max-width: 820px) {
  .hero-inner {
    gap: 16px;
  }

  .hero-copy {
    background: transparent;
    color: #ffffff;
    padding: 14px 14px;
    border-radius: 12px;
  }

  .hero .subtitle {
    color: #ffffff;
    text-shadow: none;
  }
}

/* Make hero section more compact on mobile */
@media (max-width: 560px) {
  .hero-inner {
    min-height: clamp(380px, 55vh, 520px);
  }
}

/* Z arrows visual cue */
.z-arrow {
  position: absolute;
  width: 100%;
  left: 0;
  pointer-events: none;
}

.z-arrow--down {
  bottom: -24px;
  height: 24px;
  background: linear-gradient(90deg, transparent 0 12%, var(--brand) 12% 28%, transparent 28% 58%, var(--mint-500) 58% 72%, transparent 72% 100%);
  opacity: .35;
}

.z-arrow--up {
  top: -24px;
  height: 24px;
  background: linear-gradient(90deg, transparent 0 8%, var(--mint-500) 8% 26%, transparent 26% 60%, var(--brand) 60% 76%, transparent 76% 100%);
  opacity: .3;
}

/* About */
.about .about-inner {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto 32px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  background: #fff;
  border: 1px solid #eef3f7;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.value-card .icon {
  font-size: 26px;
}

.value-card .label {
  font-weight: 600;
  color: var(--ink-700);
}

/* Reference-style About frame */
.about .container {
  width: min(1600px, 96%);
}

.about-frame {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px) 1fr;
  align-items: center;
  gap: 24px;
}

.about-img {
  align-self: stretch;
}

.about-img img {
  width: 100%;
  height: clamp(700px, 88vh, 1200px);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.about-center {
  text-align: center;
}

.about-center .lead {
  margin-top: 8px;
}

/* Services - Enhanced card animations */
.services h2 {
  text-align: center;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.card {
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(133, 77, 71, 0.02), rgba(57, 198, 165, 0.02));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px) scale(1.02);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  font-family: var(--ff-display);
}

.card p {
  margin: 0;
  color: var(--ink-500);
  font-size: .98rem;
}

.card-icon {
  font-size: 28px;
}

.card-yellow {
  background: #fff;
}

.card-mint {
  background: #fff;
}

.card-sky {
  background: #fff;
}

/* Villa */
.villa .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.villa-copy {
  text-align: center;
  max-width: 800px;
}

.villa-copy p {
  color: var(--ink-500);
  font-size: 18px;
  line-height: 1.6;
}

/* Villa Carousel - Enhanced animations */
.villa-carousel {
  width: 100%;
  max-width: 1000px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(19, 19, 19, 0.08);
  transition: box-shadow 0.3s ease;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 19, 19, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--brand);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-dot.active {
  background: var(--brand);
  transform: scale(1.3);
}

.carousel-dot.active::before {
  width: 100%;
  height: 100%;
}

.carousel-dot:hover {
  background: var(--brand);
  opacity: 0.7;
  transform: scale(1.1);
}

/* Make villa carousel more compact on mobile */
@media (max-width: 768px) {
  .carousel-container {
    height: clamp(300px, 45vh, 400px);
    border-radius: 12px;
  }

  .carousel-slide img {
    border-radius: 12px;
  }

  .carousel-dots {
    margin-top: 16px;
    gap: 6px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 560px) {
  .carousel-container {
    height: clamp(250px, 40vh, 320px);
    border-radius: 10px;
  }

  .carousel-slide img {
    border-radius: 10px;
  }

  .carousel-dots {
    margin-top: 12px;
    gap: 5px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 400px) {
  .carousel-container {
    height: clamp(200px, 35vh, 280px);
    border-radius: 8px;
  }

  .carousel-slide img {
    border-radius: 8px;
  }

  .carousel-dots {
    margin-top: 10px;
    gap: 4px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }
}

/* Ensure carousel works properly on all mobile devices */
@media (max-width: 768px) {
  .villa-carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: block !important;
  }

  .carousel-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.6s ease-in-out !important;
    display: block !important;
    z-index: 1;
  }

  .carousel-slide.active {
    opacity: 1 !important;
    z-index: 2;
  }

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

  /* Force all non-active slides to be completely hidden */
  .carousel-slide:not(.active) {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .carousel-slide.active {
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

.carousel-container:hover {
  box-shadow: 0 12px 48px rgba(19, 19, 19, 0.12);
}

/* Corners (reference-like) */
.corners-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.corners-left {
  position: relative;
  padding-top: 0;
}

.corners-left::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .8;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--ink-700);
  background: #fff;
  margin-bottom: 10px;
}

.corners-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 50px;
}

.corners-right img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.corners {
  padding-top: 40px;
  padding-bottom: 44px;
}

/* Tiles (reference-like sections under services) */
.tiles {
  padding-top: 56px;
  padding-bottom: 56px;
}

.tiles .tile {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.tiles .tile:first-child {
  border-top: none;
}

.tile-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tile-right img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

/* Stile per quando c'è solo un'immagine - la allarga */
.tile-right:has(img:only-child) {
  grid-template-columns: 1fr;
  margin-top: 30px;
}

.tile-right:has(img:only-child) img {
  height: 320px;
}

.tile.reverse .tile-left {
  order: 2;
}

.tile.reverse .tile-right {
  order: 1;
}

/* Tighten text spacing inside tiles */
.tile-left .display {
  margin: 0 0 12px;
}

.tile-left .lead {
  margin: 0 0 14px;
}

/* Requests band (reference-style) */
.requests {
  background: #faf6f5;
}

.requests-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.requests-right p {
  color: var(--ink-500);
}

.requests .cta-group {
  margin-top: 10px;
}

/* Activities slider - Enhanced animations */
.activities h2 {
  text-align: center;
  margin-bottom: 16px;
}

.slider {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.slider-viewport {
  overflow: hidden;
  padding: 10px 0;
}

.slider-btn {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  opacity: 1;
  visibility: visible;
  position: relative;
  overflow: hidden;
}

.slider-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.slider-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(133, 77, 71, 0.3);
}

.slider-btn:hover::before {
  width: 100%;
  height: 100%;
}

.slider-btn:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: 0.1s;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 42vw);
  gap: 12px;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  background: #fff;
  border: 1px solid #eef3f7;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(133, 77, 71, 0.03), rgba(57, 198, 165, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.slide:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(19, 19, 19, 0.12);
}

.slide:hover::before {
  opacity: 1;
}

.slide-icon {
  font-size: 36px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.slide-icon img {
  width: 40px;
  height: 40px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.slide:hover .slide-icon img {
  transform: scale(1.1) rotate(5deg);
}

.slide-title {
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

/* Testimonials - Enhanced animations */
.testimonials {
  background: linear-gradient(0deg, var(--brand-50), #fff 40%, var(--brand-50));
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 32px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote {
  background: #fff;
  border: 1px solid #eef3f7;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(19, 19, 19, 0.08);
  color: var(--ink-500);
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 140px;
  overflow: hidden;
}

.quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(133, 77, 71, 0.02), rgba(57, 198, 165, 0.02));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.quote:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(19, 19, 19, 0.15);
}

.quote:hover::before {
  opacity: 1;
}

.quote::after {
  content: '"';
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 4rem;
  color: var(--brand);
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.quote:hover::after {
  opacity: 0.5;
  transform: scale(1.1);
}

.quote::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--mint-500));
  border-radius: 0 0 var(--radius) var(--radius);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote:hover::before {
  transform: scaleX(1);
}

/* Read more button for testimonials */
.read-more-btn {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-900);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  margin-left: 4px;
  transition: all 0.3s ease;
  display: inline;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  vertical-align: baseline;
}

.read-more-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-0.5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Read less button - same style as read more */
.read-less-btn {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-900);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  margin-left: 4px;
  transition: all 0.3s ease;
  display: inline;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  vertical-align: baseline;
}

.read-less-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-0.5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

.testimonial-text {
  display: block;
  margin-bottom: 8px;
}

.testimonial-preview {
  display: inline;
}

.testimonial-full {
  display: inline;
}

/* Final CTA */
.final-cta .cta-group {
  justify-content: center;
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid #eef3f7;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-weight: 600;
  color: var(--ink-700);
}

input,
textarea {
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #e8e8e8;
  padding: 50px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.footer-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand-text-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-text {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .4px;
}

.footer-description {
  color: #b8b8b8;
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item span,
.contact-item a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 1rem;
  word-break: break-all;
  line-height: 1.5;
}

.contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Sticky mobile bar - Enhanced responsive design */
.sticky-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 40px);
  max-width: 400px;
  display: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* Ensure perfect centering */
  right: auto;
  margin-left: 0;
  margin-right: 0;
}

.sticky-bar.visible {
  opacity: 1;
  visibility: visible;
}

.sticky-btn {
  display: flex;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, var(--brand), var(--brand-700));
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 32px rgba(133, 77, 71, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  outline: none;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  /* Ensure perfect centering */
  margin: 0 auto;
  box-sizing: border-box;
}

.sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(133, 77, 71, 0.4);
}

.sticky-btn:active {
  transform: translateY(-1px);
}

/* Reveal on scroll - Enhanced animations */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animations for multiple elements */
.reveal:nth-child(1) {
  transition-delay: 0ms;
}

.reveal:nth-child(2) {
  transition-delay: 100ms;
}

.reveal:nth-child(3) {
  transition-delay: 200ms;
}

.reveal:nth-child(4) {
  transition-delay: 300ms;
}

.reveal:nth-child(5) {
  transition-delay: 400ms;
}

.reveal:nth-child(6) {
  transition-delay: 500ms;
}

.reveal:nth-child(7) {
  transition-delay: 600ms;
}

.reveal:nth-child(8) {
  transition-delay: 700ms;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .slider-btn {
    transition: none;
  }

  .hero--parallax {
    background-attachment: scroll;
  }
}

/* Testimonials responsive */
@media (min-width: 1200px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .quote {
    padding: 24px 28px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .quotes {
    grid-template-columns: 1fr 1fr;
  }

  .about-frame {
    grid-template-columns: 1fr;
  }

  .corners-grid {
    grid-template-columns: 1fr;
  }

  .tiles .tile {
    grid-template-columns: 1fr;
  }

  .tile-right img {
    height: 220px;
  }

  .requests-grid {
    grid-template-columns: 1fr;
  }

  .about-img img {
    height: 420px;
  }
}

/* Make about images more compact on mobile */
@media (max-width: 560px) {
  .about-img img {
    height: clamp(280px, 45vh, 360px);
  }

  /* Make tile images more compact on mobile */
  .tile-right img {
    height: clamp(200px, 35vh, 250px);
  }

  /* Make corners images more compact on mobile */
  .corners-right {
    margin-top: 20px;
  }

  .corners-right img {
    height: clamp(200px, 35vh, 250px);
  }

  /* Reduce spacing between Activities and Villa sections on mobile */
  .activities {
    padding-bottom: 20px;
  }

  .villa {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 820px) {

  .hero-inner,
  .villa-inner,
  .contact-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .slider {
    grid-template-columns: 36px 1fr 36px;
  }

  .corners-right {
    margin-top: 25px;
  }

  .corners-right img {
    height: 220px;
  }

  /* Reduce spacing between Activities and Villa sections on tablet */
  .activities {
    padding-bottom: 30px;
  }

  .villa {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (min-width: 1024px) {

  /* Forza 4 card visibili su desktop */
  .activities .slider-track {
    grid-auto-columns: calc((100% - 36px) / 4);
  }

  /* Hide sticky bar on desktop */
  .sticky-bar {
    display: none !important;
  }
}

/* Responsive sticky bar for different screen sizes */
@media (max-width: 768px) {
  .sticky-bar {
    display: block;
    width: calc(100% - 32px);
    max-width: 360px;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    /* Ensure perfect centering */
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .sticky-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    min-height: 38px;
  }
}

@media (max-width: 560px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .subtitle {
    max-width: none;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .quotes {
    grid-template-columns: 1fr;
  }

  /* Mobile title styling - hidden since we show brand-text instead */
  .mobile-title {
    display: none;
  }

  .sticky-bar {
    display: block;
    width: calc(100% - 24px);
    max-width: 320px;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    /* Ensure perfect centering */
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .sticky-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-height: 36px;
  }
}

@media (max-width: 400px) {
  .sticky-bar {
    display: block;
    width: calc(100% - 32px);
    max-width: 280px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    /* Ensure perfect centering */
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .sticky-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-height: 38px;
  }
}

@media (max-width: 360px) {
  .sticky-bar {
    display: block;
    width: calc(100% - 40px);
    max-width: 260px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    /* Ensure perfect centering */
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .sticky-btn {
    padding: 12px 12px;
    font-size: 0.8rem;
    min-height: 40px;
  }
}

@media (max-width: 320px) {
  .sticky-bar {
    display: block;
    width: calc(100% - 48px);
    max-width: 240px;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    /* Ensure perfect centering */
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .sticky-btn {
    padding: 12px 12px;
    font-size: 0.75rem;
    min-height: 42px;
  }

  /* Footer text for very small screens */
  .footer-brand-text {
    font-size: 1rem;
  }

  .footer-description {
    font-size: 0.8rem;
  }
}

/* Mobile title - hidden by default */
.mobile-title {
  display: none;
}

/* Hide elements on mobile */
.hide-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 560px) {

  /* Mobile header layout */
  .header-inner {
    justify-content: space-between;
    position: relative;
  }

  .brand {
    justify-content: flex-start;
    gap: 8px;
  }

  .brand-text {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.3px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  /* Enhanced footer for mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 60px 0 40px;
  }

  .footer-brand-col {
    align-items: center;
  }

  .footer-links-col,
  .footer-contact-col {
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

/* New Premium Footer Styles */
.site-footer {
  background: var(--brand-700);
  color: #f6eae7;
  /* brand-50 for better contrast on brand-700 */
  padding: 80px 0 30px;
  font-family: var(--ff-sans);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand-text {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
}

/* Headings */
.footer-heading {
  color: #fff;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navigation & Links */
.footer-nav,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a,
.contact-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  display: inline-block;
}

.footer-nav a:hover,
.contact-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
  font-weight: 500;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #fff;
}

.footer-credit a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--brand);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    gap: 16px;
  }
}