/* ============================================================
   OSSOLA SUITES – B&B DOMODOSSOLA
   Design System & Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --clr-bg: #0B1E3A;
  --clr-surface: #122B4A;
  --clr-surface-2: #1C3D66;
  --clr-border: rgba(255, 255, 255, 0.07);
  --clr-gold: #2F6FED;
  --clr-gold-light: #6FA4FF;
  --clr-gold-dark: #1E4BB8;
  --clr-cream: #EAF2FF;
  --clr-text: #DCE6F5;
  --clr-text-muted: #9FB3C8;
  --clr-text-light: #ffffff;
  --clr-accent: #4CC9F0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-height: 76px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------- Typography ---------- */
.font-serif {
  font-family: var(--font-serif);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
}

em {
  font-style: italic;
  color: var(--clr-gold);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-header-light .section-tag {
  color: var(--clr-gold-light);
}

.section-title-light {
  color: #fff;
}

.section-subtitle-light {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.45);
  background: linear-gradient(135deg, var(--clr-gold-light), var(--clr-gold));
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(201, 169, 110, 0.08);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(14, 14, 15, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px rgba(201, 169, 110, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.45);
  background: rgba(255, 255, 255, 0.06) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.lang-btn:hover {
  color: rgba(255,255,255,0.85);
}

.lang-btn.active {
  color: var(--clr-gold);
}

.lang-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  user-select: none;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(14, 14, 15, 0.3) 0%,
      rgba(14, 14, 15, 0.5) 50%,
      rgba(14, 14, 15, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 1s 0.2s both;
}

.hero-title {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  animation: fadeSlideUp 1s 0.4s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 1s 0.6s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s 0.8s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeSlideUp 1s 1.2s both;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 2.5rem 0;
}

.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 3rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--clr-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--clr-bg);
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--clr-bg);
  box-shadow: var(--shadow-md);
}

.about-badge {
  position: absolute;
  top: 2rem;
  right: -1.5rem;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  line-height: 1;
}

.badge-year {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.badge-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
}

.about-content {
  padding-right: 1rem;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--clr-text);
  margin: 1.5rem 0 1rem;
  line-height: 1.75;
}

.about-text {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--clr-border);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.value-item strong {
  display: block;
  color: var(--clr-text);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin: 0;
}

/* ============================================================
   STRUTTURE
   ============================================================ */
.strutture {
  background: var(--clr-surface);
}

.strutture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.strutture-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.struttura-cin {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.btn-struttura {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

.struttura-card {
  background: var(--clr-surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.struttura-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.struttura-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.struttura-img-wrap img {
  transition: transform 0.6s ease;
}

.struttura-card:hover .struttura-img-wrap img {
  transform: scale(1.06);
}

.struttura-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(14, 14, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--clr-border);
  color: var(--clr-gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-xl);
}

.struttura-body {
  padding: 1.75rem;
}

.struttura-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--clr-text-light);
}

.struttura-address {
  font-size: 0.8rem;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}

.struttura-body p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.struttura-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.struttura-features span {
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--clr-text-light);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
}

.struttura-map {
  margin-top: 1rem;
}

.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--clr-border);
}

.directions strong {
  display: block;
  font-size: 0.8rem;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.directions ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.directions li {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* ============================================================
   CAMERE
   ============================================================ */
.camere {
  background: var(--clr-bg);
}

.camere-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border: 1.5px solid var(--clr-border);
  background: transparent;
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--clr-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.camere-panel {
  display: none;
}

.camere-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.camere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.camere-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.camere-cta {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.camere-nota {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
}

.camera-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.camera-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 110, 0.2);
}

.camera-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.camera-img-wrap img {
  transition: transform 0.6s ease;
}

.camera-card:hover .camera-img-wrap img {
  transform: scale(1.06);
}

.camera-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--clr-gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
}

.camera-tag-gold {
  background: linear-gradient(135deg, #d4a853, #8a6520);
}

.camera-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.camera-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.camera-info p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.camera-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.camera-features li {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  background: var(--clr-surface-2);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
}

.camera-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
}

.camera-price {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.camera-price strong {
  color: var(--clr-gold);
  font-size: 1.1rem;
}

/* ============================================================
   PERCORSI
   ============================================================ */
.percorsi {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.percorsi-bg {
  position: absolute;
  inset: 0;
}

.percorsi-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.percorsi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 14, 15, 0.9) 0%, rgba(14, 14, 15, 0.75) 100%);
}

.percorsi .container {
  position: relative;
  z-index: 2;
}

.percorsi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.percorso-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.percorso-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.percorso-icon {
  font-size: 2.5rem;
}

.percorso-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}

.percorso-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  flex: 1;
}

.percorso-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}

.percorso-details li {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--clr-surface);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border: 1.5px solid var(--clr-border);
  background: transparent;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--clr-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--clr-border);
}

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 15, 0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

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

.gallery-overlay span {
  font-size: 0.875rem;
  color: #fff;
  font-weight: 500;
}

.gallery-item.hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-img-wrap p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition);
  backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--clr-bg);
  overflow: hidden;
}

.testimonials-slider {
  overflow: hidden;
  position: relative;
}

.testi-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testi-card {
  flex: 0 0 calc(50% - 0.75rem);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testi-stars {
  color: var(--clr-gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.testi-card p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--clr-text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-text);
}

.testi-author span {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.testi-dot.active {
  background: var(--clr-gold);
  transform: scale(1.3);
}

/* ============================================================
   CONTATTI
   ============================================================ */
.contatti {
  background: var(--clr-surface);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-block>div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-block strong {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.contact-block a,
.contact-block span {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  transition: color var(--transition);
}

.contact-block a:hover {
  color: var(--clr-text);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: #fff;
  transform: translateY(-3px);
}

/* Form */
.contatti-form-wrap {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contatti-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-group select option {
  background: var(--clr-surface-2);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--clr-gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.form-check label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.form-check a {
  color: var(--clr-gold);
}

.form-success {
  display: none;
  background: rgba(122, 158, 135, 0.12);
  border: 1px solid rgba(122, 158, 135, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--clr-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #08080a;
  border-top: 1px solid var(--clr-border);
}

.footer-top {
  padding: 4rem 0 3rem;
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--clr-gold);
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {

  .strutture-grid,
  .strutture-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .about-grid {
    gap: 3rem;
  }
}

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

  .about-images {
    display: none;
  }

  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .gallery-item-wide {
    grid-column: span 2;
  }

  .testi-card {
    flex: 0 0 calc(100% - 0);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-menu {
    position: fixed;
    top: 0;                          /* partenza a 0, non sotto la navbar */
    left: 0;
    right: 0;
    background: rgba(14, 14, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: calc(var(--nav-height) + 0.5rem) 0 2rem; /* compensa top:0 */
    border-bottom: 1px solid var(--clr-border);
    transform: translateY(calc(-100% - 2px)); /* nasconde COMPLETAMENTE sopra */
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0); /* torna a top:0, il padding porta i link sotto la navbar */
  }

  .nav-link {
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }

  .nav-cta {
    margin: 0.5rem auto;
    border-radius: var(--radius-xl);
    width: auto !important;
    max-width: none !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.82rem !important;
    display: inline-flex !important;
  }

  .nav-toggle {
    display: flex;
  }

  .strutture-grid,
  .strutture-grid-2,
  .camere-grid,
  .camere-grid-2,
  .percorsi-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 0.5rem 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .about-img-secondary {
    display: none;
  }

  .about-badge {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .gallery-item-tall {
    grid-row: span 1;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

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

  /* Solo i bottoni dentro hero-actions e i bottoni full-width dei form
     diventano larghi su mobile – gli altri rimangono auto */
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .btn-full {
    width: 100%;
    justify-content: center;
    max-width: none;
  }

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

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

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   FLATPICKR – DARK GOLD THEME OVERRIDE
   ============================================================ */

/* Nasconde l'input nativo, mostra l'altInput stilizzato come gli altri campi */
.flatpickr-input[readonly] {
  display: none;
}

.flatpickr-input.form-input,
input.flatpickr-input {
  /* altInput eredita già gli stili del form grazie al tipo <input> */
  cursor: pointer;
}

/* Wrapper del calendario */
.flatpickr-calendar {
  background: #1a1a1d !important;
  border: 1px solid rgba(201, 169, 110, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  color: #e8e4dc !important;
  padding: 0.5rem !important;
  width: 320px !important;
}

/* Frecce mese */
.flatpickr-months {
  padding: 0.5rem 0.25rem 0 !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: #c9a96e !important;
  fill: #c9a96e !important;
  padding: 8px !important;
  border-radius: 8px !important;
  transition: background 0.2s ease !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: rgba(201, 169, 110, 0.12) !important;
  color: #e8cc99 !important;
  fill: #e8cc99 !important;
}

/* Titolo mese/anno */
.flatpickr-current-month {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  color: #e8e4dc !important;
  padding-top: 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent !important;
  color: #e8e4dc !important;
  font-family: inherit !important;
  font-size: inherit !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
}

.flatpickr-current-month input.cur-year {
  color: #c9a96e !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
}

/* Giorni della settimana */
.flatpickr-weekdays {
  background: transparent !important;
  margin-top: 0.5rem !important;
}

span.flatpickr-weekday {
  background: transparent !important;
  color: #8e8a82 !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Griglia giorni */
.flatpickr-days {
  border: none !important;
  width: 100% !important;
}

.dayContainer {
  width: 100% !important;
  min-width: unset !important;
  max-width: unset !important;
}

.flatpickr-day {
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  color: #e8e4dc !important;
  font-size: 0.85rem !important;
  height: 36px !important;
  line-height: 36px !important;
  max-width: 40px !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  font-family: var(--font-sans) !important;
}

.flatpickr-day:hover {
  background: rgba(201, 169, 110, 0.12) !important;
  color: #c9a96e !important;
}

/* Giorno selezionato */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: linear-gradient(135deg, #c9a96e, #9a7a4a) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.35) !important;
}

/* Giorno oggi */
.flatpickr-day.today {
  border: 1px solid rgba(201, 169, 110, 0.35) !important;
  color: #c9a96e !important;
  font-weight: 600 !important;
}

.flatpickr-day.today:hover {
  background: rgba(201, 169, 110, 0.1) !important;
}

.flatpickr-day.today.selected {
  border: none !important;
}

/* Giorni non del mese corrente */
.flatpickr-day.nextMonthDay,
.flatpickr-day.prevMonthDay {
  color: rgba(232, 228, 220, 0.2) !important;
}

/* Giorni disabilitati (passati) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(232, 228, 220, 0.2) !important;
  cursor: not-allowed !important;
  background: transparent !important;
}

/* Freccia del popup */
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
  border-bottom-color: rgba(201, 169, 110, 0.2) !important;
}

.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  border-top-color: rgba(201, 169, 110, 0.2) !important;
}

/* altInput – stilizzato identico agli altri input del form */
.flatpickr-input.flatpickr-mobile {
  background: var(--clr-surface-2, #1f1f22) !important;
  color: var(--clr-text, #e8e4dc) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
}

/* ACCETTA COOKIE START*/

/* Stili CSS rapidi per il Banner Cookie */
  .cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px;
    z-index: 999999; /* Superiore a tutto */
    font-family: 'Inter', sans-serif;
    border-left: 4px solid #bfa15f; /* Colore oro del brand */
    animation: slideUp 0.5s ease;
  }
  @media (max-width: 768px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  }
  .cookie-content p { font-size: 13px; line-height: 1.5; color: #333; margin: 0 0 15px 0; }
  .cookie-buttons { display: flex; gap: 10px; justify-content: flex-end; }
  .btn-cookie { padding: 8px 16px; border: none; border-radius: 4px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
  .btn-accept { background: #bfa15f; color: #fff; }
  .btn-accept:hover { background: #a68a4c; }
  .btn-reject { background: #f3f4f6; color: #4b5563; }
  .btn-reject:hover { background: #e5e7eb; }
  @keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   COOKIE BANNER

   ============================================================ */
#ddbb-cookie-banner {
  position: fixed;
  bottom: -300px;
  left: 0;
  width: 100%;
  background-color: #0B1E3A;
  color: #9FB3C8;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
  z-index: 99999999;
  transition: bottom 0.5s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

#ddbb-cookie-banner.ddbb-cookie-show {
  bottom: 0;
}

.ddbb-cookie-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .ddbb-cookie-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ddbb-cookie-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  color: #9FB3C8;
}

#ddbb-cookie-link {
  color: #2F6FED;
  text-decoration: underline;
  font-weight: 500;
}

#ddbb-cookie-link:hover {
  color: #ffffff;
}

.ddbb-cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .ddbb-cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
}

.ddbb-cookie-buttons button {
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.ddbb-cookie-buttons button:hover {
  opacity: 0.95;
}

.ddbb-btn-primary {
  background-color: #2F6FED;
  color: #ffffff;
}

.ddbb-btn-secondary {
  background-color: rgba(159, 179, 200, 0.15);
  color: #9FB3C8;
}

.ddbb-btn-secondary:hover {
  background-color: rgba(159, 179, 200, 0.3);
  color: #ffffff;
}

/* Previene la sovrapposizione del badge reCAPTCHA sul mobile */
.grecaptcha-badge {
  z-index: 99999998 !important;
}

