:root {
  --sand: #f7f7f7;
  --sand-dark: #e8e8e8;
  --terracotta: rgb(105, 53, 53);
  --bgbtn: #ffaa2b;
  --terracotta-light: #6ab4d0;
  --ocean: #2d7da0;
  --ocean-light: #4a9ebf;
  --seafoam: #a8d4e6;
  --dark: #2d2d2d;
  --text: #3d3d3d;
  --text-light: #888888;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(253, 250, 246, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 30px rgba(26, 42, 46, 0.08);
  padding: 0.9rem 3rem;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.4s;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}

.nav-logo img:hover {
  opacity: 0.85;
}

nav.scrolled .nav-logo {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

nav.scrolled .nav-links a {
  color: var(--text);
}
.nav-links a:hover {
  color: var(--bgbtn);
}

.nav-cta {
  background: var(--bgbtn) !important;
  color: white !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 2px !important;
  font-weight: 500 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: all 0.3s;
}

nav.scrolled .hamburger span {
  background: var(--dark);
}

/* ===== HERO ===== */
#hero {
  height: 97vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/torretta_santa_teresa.png") center center / cover
    no-repeat;
}

/*
      .hero-bg {
        position: absolute;
        inset: 0;
        background: linear-gradient(
          135deg,
          #1a6a8a 0%,
          #2d7da0 40%,
          #4a9ebf 100%
        );
      }
*/
/* Animated wave overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 80%,
      rgba(74, 158, 191, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(168, 212, 230, 0.2) 0%,
      transparent 50%
    );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    white 0px,
    white 1px,
    transparent 1px,
    transparent 60px
  );
}

/* Floating circles */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: 50px;
  left: -50px;
  animation-delay: 3s;
}
.hero-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 20%;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: rgb(97, 46, 46);
  padding: 0 2rem; /* aumenta il padding sinistro */
  animation: heroFadeIn 1.2s ease forwards;
  max-width: 745px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(97, 46, 46);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgb(97, 46, 46);
  border-radius: 100px;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  color: rgb(97, 46, 46);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgb(97, 46, 46);
  max-width: 670px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: left;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--bgbtn);
  color: white;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(196, 113, 74, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-text strong {
  display: block;
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.stat-text span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 3rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bgbtn);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.section-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 560px;
}

/* ===== ABOUT ===== */
#about {
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 4px;
}

.about-visual {
  position: relative;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #2d7da0 0%, #a8d4e6 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.about-img-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(26, 42, 46, 0.5) 100%
  );
}

.about-img-float {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #4a9ebf 0%, #a8d4e6 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid var(--sand);
}

.about-badge {
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  background: var(--dark);
  color: white;
  padding: 1rem 1.2rem;
  border-radius: 2px;
  text-align: center;
  z-index: 10;
}

.about-badge strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.about-badge span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.feature-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* ===== GALLERY ===== */
#gallery {
  background: var(--white);
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 0.8rem;
}

.gallery-item {
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: 1/6;
  grid-row: 1/3;
}
.gallery-item:nth-child(2) {
  grid-column: 6/9;
  grid-row: 1/2;
}
.gallery-item:nth-child(3) {
  grid-column: 9/13;
  grid-row: 1/2;
}
.gallery-item:nth-child(4) {
  grid-column: 6/10;
  grid-row: 2/3;
}
.gallery-item:nth-child(5) {
  grid-column: 10/13;
  grid-row: 2/3;
}

/*
      .gallery-bg {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4rem;
        transition: transform 0.6s ease;
      }*/
.gallery-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:nth-child(1) .gallery-bg {
  background: linear-gradient(135deg, #2d7da0, #4a9ebf);
  font-size: 6rem;
}
.gallery-item:nth-child(2) .gallery-bg {
  background: linear-gradient(135deg, #4a9ebf, #a8d4e6);
}
.gallery-item:nth-child(3) .gallery-bg {
  background: linear-gradient(135deg, #5a7a8a, #8ab0c0);
}
.gallery-item:nth-child(4) .gallery-bg {
  background: linear-gradient(135deg, #6a8a9a, #aacada);
}
.gallery-item:nth-child(5) .gallery-bg {
  background: linear-gradient(135deg, #2a5a7a, #5a9aba);
}

.gallery-item:hover .gallery-bg {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 42, 46, 0.7) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ===== AMENITIES ===== */
#servizi {
  background: var(--dark);
  color: white;
}

.amenities-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.amenities-inner .section-title {
  color: white;
}
.amenities-inner .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.amenity-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  padding: 1.8rem 1.5rem;
  transition: all 0.3s ease;
}

.amenity-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--terracotta);
  transform: translateY(-4px);
}

.amenity-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.amenity-name {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: white;
}

.amenity-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* ===== BOOKING FORM ===== */
#booking {
  background: var(--sand);
}

.booking-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.booking-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.price-display {
  background: var(--dark);
  color: white;
  padding: 2rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.price-display .from {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.price-display .amount {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: white;
}

.price-display .per {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.3rem;
}

.booking-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.booking-rules li {
  display: flow-root;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.booking-rules li::before {
  content: "→";
  color: var(--terracotta);
  font-size: 0.9rem;
}

.form-card {
  background: white;
  padding: 2.5rem;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(26, 42, 46, 0.08);
}

.form-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e8e0d5;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ocean);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  background: var(--terracotta);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 113, 74, 0.35);
}

.form-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.8rem;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== CONTACT ===== */
#contact {
  background: var(--white);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-map {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #2d7da0 0%, #a8d4e6 100%);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.03) 40px,
      rgba(255, 255, 255, 0.03) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.03) 40px,
      rgba(255, 255, 255, 0.03) 41px
    );
}

.map-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--sand);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 0.95rem;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-text a:hover {
  color: var(--terracotta);
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid #e8e0d5;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  color: var(--text);
}

.social-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-brand .logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* ===== MOBILE NAV ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 2rem;
  pointer-events: all; /* assicura che i click funzionino */
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  pointer-events: all; /* assicura che i link siano cliccabili */
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 300;
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  text-align: center;
  padding: 0.3rem 1rem; /* area di click più grande */
}

.mobile-menu a:hover {
  color: var(--terracotta);
}

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000; /* sopra tutto */
}

/* ====== FAQ ========*/
.faq-item {
  background: white;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #efefef;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--terracotta);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.4rem;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  border-top: 1px solid #f5f5f5;
}

.faq-answer.open {
  display: block;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ==== Whatsapp float ====*/
.whatsapp-float {
  position: fixed;
  bottom: 4rem;
  right: 1rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 99999998;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Review cards */
.review-card {
  background: var(--sand);
  border-radius: 3px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #efefef;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.review-card-featured {
  border-color: var(--terracotta);
  background: white;
}

.review-stars {
  color: #f5a623;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text);
  flex: 1;
  font-style: italic;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid #efefef;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
}

.review-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.review-platform {
  font-size: 0.68rem;
  color: var(--terracotta);
  font-weight: 500;
  margin-top: 0.15rem;
  letter-spacing: 0.05em;
}

.host-reply {
  background: rgba(74, 158, 191, 0.06);
  border-left: 2px solid var(--terracotta);
  padding: 0.8rem 1rem;
  border-radius: 0 3px 3px 0;
  margin-top: 0.5rem;
}

/* Contenitore per centrare il bottone nella pagina */
.cta-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Stile principale del bottone */
.btn-disponibilita {
  font-family:
    "DM Sans", sans-serif; /* Usa lo stesso font pulito del tuo sito */
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;

  /* Colori e Bordi */
  color: #222222; /* Testo scuro ed elegante */
  background-color: transparent;
  border: 1px solid #222222;
  padding: 16px 32px;

  /* Layout interno */
  display: inline-flex;
  align-items: center;
  gap: 12px;

  /* Transizione fluida per l'effetto hover */
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Effetto al passaggio del mouse (Hover) */
.btn-disponibilita:hover {
  background-color: #222222; /* Il bottone si riempie di scuro */
  color: #ffffff; /* Il testo diventa bianco */
}

/* Animazione della freccia all'hover */
.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-disponibilita:hover .btn-arrow {
  transform: translateX(5px); /* La freccia si sposta leggermente a destra */
}

/* Ottimizzazione per dispositivi mobili (Smartphone) */
@media (max-width: 480px) {
  .btn-disponibilita {
    width: 100%; /* Il bottone prende tutta la larghezza sui telefoni piccoli */
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  #recensioni > div > div:last-child {
    grid-template-columns: 1fr;
  }
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

@media (max-width: 768px) {
  #faq > div > div {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav {
    padding: 1.2rem 1.5rem;
  }
  nav.scrolled {
    padding: 0.9rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  section {
    padding: 4rem 1.5rem;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem;
  }

  .about-img-float {
    bottom: -1rem;
    right: -1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1/3;
    grid-row: auto;
  }
  .gallery-item:nth-child(2) {
    grid-column: 1/2;
    grid-row: auto;
  }
  .gallery-item:nth-child(3) {
    grid-column: 2/3;
    grid-row: auto;
  }
  .gallery-item:nth-child(4) {
    grid-column: 1/2;
    grid-row: auto;
  }
  .gallery-item:nth-child(5) {
    grid-column: 2/3;
    grid-row: auto;
  }

  .gallery-grid .gallery-item {
    height: 200px;
  }

  .booking-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-map {
    aspect-ratio: 16/9;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/3;
  }

  .stats-bar {
    gap: 2rem;
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .about-features {
    grid-template-columns: 1fr;
  }

  @media (max-width: 900px) {
    #booking .booking-inner,
    #booking > div > div {
      grid-template-columns: 1fr !important;
      gap: 2rem !important;

      /* 1. Forza i contenitori della griglia a mostrare gli elementi che escono dai bordi */
      overflow: visible !important;
    }

    /* 2. Sezione specifica per non far tagliare la sezione #booking generale */
    #booking {
      overflow: visible !important;
      z-index: 10 !important;
    }

    /* 3. Forza il calendario nativo di Smoobu a stare sopra a tutto il resto del layout mobile */
    .flatpickr-calendar,
    .datepicker,
    [class*="datepicker"],
    [class*="flatpickr"] {
      z-index: 99999 !important;
    }
  }
}
/* ===== RECENSIONI RESPONSIVE ===== */
#recensioni > div > div:last-child {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  #recensioni > div > div:last-child {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #recensioni > div > div:last-child {
    grid-template-columns: 1fr;
  }

  /* Punteggi piattaforme in colonna */
  #recensioni > div > div:first-of-type {
    flex-direction: column;
    gap: 1rem;
  }

  /* Stats bar in colonna */
  .stats-bar {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  /* Sezioni padding ridotto */
  section {
    padding: 3rem 1.2rem;
  }

  /* About in colonna */
  #about {
    grid-template-columns: 1fr !important;
    padding: 3rem 1.2rem !important;
    gap: 2rem !important;
  }

  /* Badge about nascosto su mobile */
  .about-badge {
    left: 0;
  }

  /* Gallery in colonna */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  .gallery-item:nth-child(n) {
    grid-column: 1/2 !important;
    grid-row: auto !important;
    height: 220px !important;
  }

  /* Booking in colonna */
  #booking > div > div {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 3rem 1.2rem !important;
  }

  /* Contact in colonna */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Form row in colonna */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* Footer in colonna */
  .footer-top {
    grid-template-columns: 1fr !important;
  }

  .footer-brand {
    grid-column: auto !important;
  }

  /* FAQ in colonna */
  #faq > div > div:last-child {
    grid-template-columns: 1fr !important;
  }

  /* Amenities grid */
  .amenities-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Hero */
  .hero-content {
    padding: 0 1.2rem !important;
    max-width: 100% !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }
  .hero-subtitle {
    font-size: 0.88rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* Nav */
  nav {
    padding: 1rem 1.2rem !important;
  }

  /* Nearby attractions */
  #amenities > div > div:last-child > div {
    grid-template-columns: 1fr !important;
  }

  /* Recensioni punteggi */
  #recensioni > div > div:nth-child(2) {
    flex-direction: column;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem !important;
  }
}

/* ===== TABLET (768px) ===== */
@media (max-width: 768px) {
  #recensioni > div > div:last-child {
    grid-template-columns: 1fr !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1/3 !important;
    grid-row: auto !important;
    height: 250px !important;
  }

  .gallery-item:nth-child(n + 2) {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 200px !important;
  }

  .amenities-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #booking > div > div {
    grid-template-columns: 1fr !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-brand {
    grid-column: 1/3 !important;
  }

  #faq > div > div:last-child {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 1350px) {
  .hero-tag {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
  }

  .hero-title {
    color: white !important;
  }

  .hero-title em {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: rgb(97, 46, 46);
  }

  .hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .hero-content {
    color: white !important;
  }
}
