/* =========================================================
   GLOBAL VARIABLES & RESET
   ========================================================= */
:root {
  --bg: #faf8f5;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --accent: #b89b7a;
  --white: #fff;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* GLOBAL COMPONENTS */
.container {
  max-width: 1100px;
  margin: auto;
}

.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--accent);
  padding: 14px 24px;
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition-smooth);
}

.btn:hover {
  opacity: 0.9;
}

/* =========================================================
   NAVIGATION BAR
   ========================================================= */
.nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
  background: transparent;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  max-width: 1200px;
  margin: auto;
  transition: max-width var(--transition-smooth), padding var(--transition-smooth);
}

.nav.scrolled .nav-inner {
  max-width: 1000px; 
  padding: 14px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo, .logo:hover, .logo:focus, .logo:active {
  color: var(--text);
  outline: none;
}

.nav.scrolled .logo {
  font-size: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  padding: 0;
  box-shadow: none;
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.nav.scrolled .logo img {
  width: 34px;
  height: 34px;
}

.logo:hover img {
  transform: scale(1.05);
}

.desktop-links {
  display: flex;
  gap: 40px;
}

.desktop-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  position: relative;
  font-weight: 500;
}

.desktop-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.desktop-links a:hover::after {
  width: 100%;
}

.desktop-cta {
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-smooth);
}

.desktop-cta:hover {
  opacity: 0.9;
}

/* =========================================================
   HAMBURGER & MOBILE MENU
   ========================================================= */
.burger {
  width: 32px;
  height: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 10000 !important;
}

.burger span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.burger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
  transform: scale(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 9800;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 24px;
  font-family: "Playfair Display", serif;
}

.mobile-cta-btn {
  background: var(--accent);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 18px !important;
  font-family: 'Inter', sans-serif !important;
  margin-top: 10px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  height: 100vh;
  background: url("images/background.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 72px;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 18px;
  opacity: .9;
  margin-bottom: 22px;
}

/* =========================================================
   APARTMENT SECTION
   ========================================================= */
.apartment {
  padding: 120px 20px;
}

.apartment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.apartment-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.06);
  transition: transform 0.4s ease;
}

.apartment-media img:hover {
  transform: scale(1.015);
}

.apartment-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin: 15px 0 20px;
  line-height: 1.2;
}

.apartment-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.02);
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   TRUST SECTION
   ========================================================= */
.trust {
  padding: 120px 20px;
  background: linear-gradient(to bottom, var(--bg), var(--white));
}

.trust-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.trust-head h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin: 10px 0 15px;
}

.trust-head p {
  color: var(--muted);
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.trust-card.show {
  opacity: 1;
  transform: translateY(0);
}

.trust-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.trust-card:nth-child(1) { transition-delay: .1s; }
.trust-card:nth-child(2) { transition-delay: .2s; }
.trust-card:nth-child(3) { transition-delay: .3s; }
.trust-card:nth-child(4) { transition-delay: .4s; }

.trust-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
}

.trust-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}

.trust-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   GALLERY SECTION
   ========================================================= */
.gallery-pro {
  padding: 120px 20px;
  background: var(--bg);
}

.gallery-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.gallery-head h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin: 10px 0 15px;
}

.gallery-head p {
  color: var(--muted);
  line-height: 1.6;
}

.swipe-hint {
  display: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.gallery-wrapper {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.g-item {
  overflow: hidden;
  border-radius: 16px;
}

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

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

.large { grid-column: span 7; grid-row: span 2; }
.medium { grid-column: span 5; grid-row: span 1; }
.small { grid-column: span 4; grid-row: span 1; }

.gallery-progress {
  display: none;
  width: 100%;
  height: 4px;
  margin-top: 30px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-nav {
  display: none;
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   STAY SOLUTIONS & AMENITIES SECTION
   ========================================================= */
.stay {
  padding: 120px 20px;
  background-color: var(--white);
}

.stay-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.stay-head h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin: 10px 0 15px;
  line-height: 1.2;
}

.stay-head p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

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

.service-card {
  background: var(--bg);
  padding: 32px 26px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.service-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0; 
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.stay-explore-container {
  margin-top: 60px;
  padding: 0;
}

.stay-explore-box {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.stay-explore-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--text);
}

.stay-explore-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 550px;
}

.stay-explore-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  width: 320px;
}

.explore-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
  transition: all var(--transition-smooth);
}

.explore-link .arrow {
  color: var(--accent);
  font-weight: 600;
  transition: transform var(--transition-smooth);
}

.explore-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 155, 122, 0.06);
}

.explore-link:hover .arrow {
  transform: translateX(5px);
}

/* =========================================================
   LOCATION SECTION
   ========================================================= */
.location {
  padding: 120px 20px;
  background-color: var(--bg); 
}

.location-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px; 
}

.location-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  margin: 10px 0 14px;
  color: var(--text);
}

.location-header p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  max-width: 1000px;    
  margin: 0 auto;
  border-radius: 16px; 
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
}

/* =========================================================
   CONTACT FORM SECTION
   ========================================================= */
.contact {
  padding: 120px 20px;
  background: var(--white);
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.form input, .form textarea {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-smooth);
}

.form input:focus, .form textarea:focus {
  border-color: var(--accent);
}

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

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

.form button {
  padding: 14px;
  border: none;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: opacity var(--transition-smooth);
}

.form button:hover {
  opacity: 0.9;
}

/* =========================================================
   CUSTOM PREMIUM CHECKBOX (SPUNTA FORM)
   ========================================================= */
.form-privacy-container {
  margin: 4px 0 12px;
  text-align: left;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-box {
  height: 20px;
  width: 20px;
  background-color: var(--bg);
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-smooth);
  margin-top: 2px;
}

.custom-checkbox-label:hover input ~ .checkbox-box {
  border-color: var(--accent);
}

.custom-checkbox-label input:checked ~ .checkbox-box {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkbox-box::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox-label input:checked ~ .checkbox-box::after {
  display: block;
}

.checkbox-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  transition: all var(--transition-smooth);
}

.checkbox-text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================================
   PREMIUM ASYMMETRIC FOOTER
   ========================================================= */
footer {
  padding: 80px 20px 60px;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.03);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 40px;
}

.footer-col h3 {
  font-family: "Playfair Display", serif;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col p {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

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

.brand-col p {
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 16px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 600;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-copy-desktop, .footer-cin-desktop {
  opacity: 0.7;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links li {
  margin-bottom: 12px;
}

.footer-legal-links a {
  font-size: 14px;
  position: relative;
  display: inline-block;
}

.footer-legal-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition-smooth);
}

.footer-legal-links a:hover::after {
  width: 100%;
}

.footer-bottom-mobile {
  display: none;
}

/*WHATSAPP*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999; /* Per farlo stare sempre sopra agli altri elementi */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

/*MODALE PRIVACY*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Oscura delicatamente il sito sotto */
  backdrop-filter: blur(4px); /* Effetto sfocatura moderno sullo sfondo */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Sta sopra a qualsiasi cosa nel sito */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px 20px;
}

/* Quando il modale viene attivato */
.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Il "Foglio A4" bianco */
.modal-paper {
  background-color: #ffffff;
  width: 100%;
  max-width: 790px; /* Larghezza proporzionata a un foglio A4 rispetto agli schermi */
  height: 100%;
  max-height: 85vh; /* Non tocca i bordi alti e bassi dello schermo su PC */
  border-radius: 12px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contenitore del testo che permette lo scroll se il testo è lungo */
.modal-content {
  padding: 50px 60px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  color: #1f1f1f;
  line-height: 1.6;
}

/* La X Nera in alto a destra */
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 36px;
  color: #000000;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  transform: scale(1.1);
  opacity: 0.7;
}

/* Dettagli interni del testo */
.modal-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 6px;
  font-weight: 600;
}

.modal-subtitle {
  color: #6b6b6b;
  font-size: 14px;
}

.modal-divider {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 25px 0;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-section p {
  color: #555555;
  font-size: 14.5px;
  text-align: justify;
}

.modal-section ul {
  color: #555555;
  font-size: 14.5px;
  text-align: justify;
}

/* Animazione d'apertura fluida del foglio */
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   RESPONSIVE: MEDIA QUERIES (RAGGRUPPATE IN CODA)
   ========================================================= */

/* --- TABLET & LAPTOPS (< 1100px) --- */
@media (max-width: 1100px) {
  .desktop-links, .desktop-cta {
    display: none !important;
  }

  .burger {
    display: flex;
  }

  .nav-inner {
    padding: 18px 20px;
  }

  .desktop-only { 
    display: none; 
  }

  .swipe-hint { 
    display: block; 
  }

  .gallery-wrapper {
    position: relative;
    overflow: hidden;
  }

  .gallery-grid {
    display: flex;
    gap: 0;
    will-change: transform;
  }

  .g-item {
    min-width: 100%;
    flex: 0 0 100%;
    height: 500px;
    border-radius: 16px;
  }

  .gallery-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
  }
  
  .gallery-btn {
    pointer-events: auto;
    margin: 0 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }

  @media (pointer: coarse) {
    .gallery-nav { 
      display: none; 
    }
  }

  .gallery-progress {
    display: block;
    position: relative;
  }

  .gallery-progress-bar {
    width: calc(100% / 8) !important;
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .stay {
    padding: 80px 20px;
  }

  .stay-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* --- INTERVENTIONS ZONE (< 900px) --- */
@media (max-width: 900px) {
  .stay-explore-box {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 30px 24px;
  }
  .stay-explore-actions {
    width: 100%;
  }
  .stay-explore-text {
    text-align: center;
  }
  .stay-explore-text p {
    max-width: 100%;
  }
}

/* --- MOBILE SMARTPHONES (< 768px) --- */
@media (max-width: 768px) {
  .hero h1 { 
    font-size: 44px; 
  }

  .apartment { 
    padding: 80px 20px; 
  }
  
  .apartment-grid, .trust-grid, .features-grid, .stay-services-grid {
    grid-template-columns: 1fr;
  }

  .apartment-media img { 
    height: 380px; 
  }

  .trust-head h2, .apartment-content h2, .stay-head h2 { 
    font-size: 32px; 
  }
  
  .trust-grid { 
    gap: 16px; 
  }

  .trust-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
  }

  .trust-icon {
    flex: 0 0 24px;
    margin-bottom: 0;
    margin-top: 3px;
  }

  .g-item { 
    height: 320px; 
  }

  .location, .contact { 
    padding: 80px 20px; 
  }

  .location-header h2 { 
    font-size: 28px; 
  }

  .map-container iframe { 
    height: 350px; 
  }
  
  .form .row { 
    grid-template-columns: 1fr; 
  }

  /* Footer & Checkbox Mobile Optimization */
  .form-privacy-container {
    margin: 4px 0 8px;
  }
  
  .checkbox-text {
    font-size: 13px;
  }

  footer {
    padding: 60px 20px 40px;
    text-align: center;
  }

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

  .footer-brand {
    justify-content: center;
  }

  .footer-copy-desktop, .footer-cin-desktop {
    display: none;
  }

  .footer-col h3 {
    margin-bottom: 14px;
    font-size: 17px;
  }
  
  .footer-legal-links li {
    margin-bottom: 10px;
  }

  .footer-bottom-mobile {
    display: block;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 13px;
    opacity: 0.7;
  }
  
  .footer-bottom-mobile p {
    margin-bottom: 6px;
  }
  
    .modal-overlay {
    padding: 0; /* Rimuove i margini esterni */
  }
  
  .modal-paper {
    max-height: 100vh; /* Altezza totale dello smartphone */
    border-radius: 0;   /* Via gli angoli arrotondati su mobile per fare "full screen" */
  }

  .modal-content {
    padding: 60px 25px 40px 25px; /* Meno spazio ai lati su schermi piccoli */
  }
}

/* --- LARGE SCREEN STABILITY (> 1101px) --- */
@media (min-width: 1101px) {
  .burger { 
    display: none !important; 
  }
  
  .gallery-grid { 
    display: grid !important; 
    transform: none !important; 
  }

  .gallery-nav, .gallery-progress { 
    display: none !important; 
  }
}