/* ─── IMPORTAZIONE FONT + VARIABILI DI PROGETTO ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&family=Raleway:wght@400;500;600;700&display=swap');

:root {
  font-size: 16px;
  
  /* Palette Colore */
  --cream:    #FFFDF4; /* Sabbia calda / sabbia d'oro pugliese */
  --teal:     #4DBFB3; /* Turchese / acquamarina marina */
  --teal-dk:  #2e9990;
  --teal-lt:  #e0f5f3;
  --magenta:  #E91E63; /* Accent color energico per le conversioni */
  --mg-dk:    #c0154f;
  --ink:      #333333; /* Grigio scuro leggibile */
  --mid:      #555555;
  --light:    #cccccc;
  --dark:     #1C1C1C; /* Grigio di fondo per footer premium */

  /* Effetti di Profondità (Ombre) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(77, 191, 179, 0.08);
  --shadow-lg: 0 16px 48px rgba(77, 191, 179, 0.16);
  --shadow-magenta: 0 8px 20px rgba(233, 30, 99, 0.25);
  
  /* Easing Transizioni Premium */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET GLOBALI & TIPO ─────────────────────────────── */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.618;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--teal-lt);
  color: var(--teal-dk);
}

/* ─── AIUTI TIPOGRAFICI ─────────────────────────────── */
.j  { font-family: 'Josefin Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.025em; }
.jb { font-weight: 700; }

.h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.75rem); 
  font-weight: 700;
  letter-spacing: 0.02em; 
  text-transform: uppercase;
  line-height: 1.25; 
  margin-bottom: 1.5rem; 
  color: var(--mid);
}

.h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem); 
  font-weight: 700; 
  letter-spacing: 0.015em;
  text-transform: uppercase; 
  line-height: 1.3; 
  margin-bottom: 1rem; 
  color: var(--mid);
}

.section-p {
  line-height: 1.7;
  color: var(--mid);
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* ─── LAYOUT E CONTENITORI ─────────────────────────────── */
.container { 
  max-width: 75rem; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
}

.sec { 
  background: var(--cream); 
  padding: 6.875rem 0; 
}

.sec-sm { 
  background: var(--cream); 
  padding: 5rem 0; 
}

.split { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 5rem; 
  align-items: center; 
}

/* ─── HEADER STICKY CON GLASSMORPHISM ─────────────────────────────── */
.sticky-hdr {
  position: absolute; 
  top: 0; 
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  transition: var(--transition);
}

.hdr-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 1rem; 
  height: 4.5rem;
  max-width: 75rem; 
  margin: 0 auto; 
  padding: 0 1.5rem;
}

.logo { 
  color: var(--teal); 
  font-size: 1.25rem; 
  cursor: pointer; 
  white-space: nowrap; 
  flex-shrink: 0; 
  transition: var(--transition-fast);
}

.logo:hover {
  color: var(--teal-dk);
}

.header-logo-img {
  height: 2.8125rem; /* +25% da 2.25rem */
  display: block;
}

#site-navigation {
  margin-left: auto; /* Forza il menu sulla destra quando il booking widget è nascosto */
}

.nav-list { 
  display: flex; 
  gap: 1.5rem; 
  list-style: none; 
}

.nav-btn {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem; 
  font-weight: 700; 
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  color: #ffffff; /* Testo bianco per contrasto */
  background: none; 
  border: none;
  cursor: pointer; 
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff; /* Sottolineatura bianca */
  transition: var(--transition-fast);
}

.nav-btn:hover { 
  color: #ffffff; 
}

.nav-btn:hover::after {
  width: 100%;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--cream);
  min-width: 5rem;
  border-radius: var(--widget-radius, 4px);
  box-shadow: var(--shadow-md);
  list-style: none;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 100;
  border: 1px solid var(--light);
}

/* Pseudo-elemento per colmare il gap invisibile (margin-top) ed evitare la scomparsa al passaggio del mouse */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: transparent;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  display: flex;
}

.lang-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition-fast);
  text-align: center;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: var(--teal-lt);
  color: var(--teal-dk);
}

/* ─── BOOKING WIDGET ─────────────────────────────── */
.bw { 
  display: none; /* Temporaneamente nascosto, porta il menu a destra */
  align-items: flex-end; 
  gap: 0.75rem; 
  flex-shrink: 0; 
}

.bw-field {
  display: flex;
  flex-direction: column;
}

.bw-lbl { 
  font-size: 0.5625rem; 
  font-weight: 700; 
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  color: var(--teal); 
  margin-bottom: 0.25rem; 
}

.bw-inp, .bw-sel {
  font-family: 'Raleway', sans-serif; 
  font-size: 0.75rem; 
  color: var(--ink);
  border: 1.5px solid rgba(77, 191, 179, 0.3); 
  border-radius: 0.375rem;
  padding: 0.4375rem 0.5rem; 
  background: #ffffff; 
  outline: none; 
  width: 7rem;
  height: 2.125rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.bw-inp:focus, .bw-sel:focus { 
  border-color: var(--teal); 
  box-shadow: 0 0 0 3px rgba(77, 191, 179, 0.18);
}

.btn-mg {
  background: var(--magenta); 
  color: #ffffff;
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.75rem; 
  font-weight: 700;
  letter-spacing: 0.08em; 
  text-transform: uppercase;
  border: none; 
  border-radius: 0.375rem; 
  padding: 0 1rem;
  height: 2.125rem;
  cursor: pointer; 
  white-space: nowrap;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-magenta);
}

.btn-mg:hover { 
  background: var(--mg-dk); 
  transform: translateY(-1.5px); 
  box-shadow: 0 10px 22px rgba(233, 30, 99, 0.32);
}

.btn-mg:active {
  transform: translateY(0);
}

/* ─── HERO BANNER ─────────────────────────────── */
.hero {
  position: relative; 
  height: 100vh; 
  min-height: 38rem;
  display: flex; 
  flex-direction: column; 
  align-items: center;
  justify-content: center; 
  text-align: center; 
  overflow: hidden;
}

.hero-bg {
  position: absolute; 
  inset: 0;
  background-image: url('../immagini/hotel and services/beach and sea/spiaggia%20Torre%20Canne.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.circle-lg, .circle-sm {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.circle-lg {
  width: 38rem;
  height: 38rem;
  top: -12rem;
  left: -8rem;
  animation: rotateSlow 40s linear infinite;
}

.circle-sm {
  width: 24rem;
  height: 24rem;
  bottom: -6rem;
  right: -4rem;
  animation: rotateSlowReverse 30s linear infinite;
}

.hero-content { 
  position: relative; 
  z-index: 2; 
  padding: 0 1.5rem; 
  max-width: 58rem; 
}

.hero-pill {
  display: inline-block; 
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem; 
  font-weight: 700; 
  letter-spacing: 0.22em; 
  text-transform: uppercase;
  color: #ffffff; 
  border: 1px solid rgba(255, 255, 255, 1);
  padding: 0.45rem 1.35rem; 
  border-radius: 2rem; 
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
  white-space: nowrap; /* Garantisce il non andamento a capo su mobile */
}

.hero-star {
  font-size: 1.25em;
  vertical-align: middle;
  letter-spacing: normal;
  margin: 0 0.15em;
  color: #fff; /* Elegant white stars for rating kicker */
}

.hero-h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 4rem;
  font-weight: 700; 
  letter-spacing: 0.02em; 
  text-transform: uppercase;
  line-height: 1; 
  margin-bottom: 1.75rem; 
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-sub { 
  font-size: 1.18rem; 
  line-height: 1.65; 
  color: rgba(255, 255, 255, 0.9); 
  max-width: 54ch; 
  margin: 0 auto; 
}

.hero-widget-wrap {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.hero-widget-wrap .roi-engine-container {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  text-align: center;
}

/* Forza gli elementi generati dallo script (come roi-search-engine) al centro */
.hero-widget-wrap .roi-engine-container > * {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

/* Sovrascrive left e transform iniettati dal CSS del widget di terze parti */
.hero-widget-wrap .roi-search-engine,
#roi-search-engine,
.roi-search-engine {
  left: auto !important;
  transform: none !important;
}
/* ─── TRUST BAR ─────────────────────────────── */
.trust-bar { 
  background: var(--cream); 
  padding: 2.25rem 0; 
}

.trust-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  max-width: 55rem; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
}

.trust-item { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 0.65rem; 
  padding: 0.5rem 1.25rem; 
  text-align: center; 
}

.trust-item + .trust-item { 
  border-left: none; 
}

.trust-icon {
  font-size: 2.5rem; /* Ingrandito del 25% */
  color: var(--teal); /* Turchese del brand */
  transition: var(--transition-fast);
}

.trust-item:hover .trust-icon {
  transform: translateY(-3px) scale(1.1);
}

.trust-lbl { 
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.72rem; 
  font-weight: 700; 
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
  color: var(--ink); 
  line-height: 1.45; 
}

.desktop-only {
  display: inline;
}

/* ─── SECTION 2A: POSIZIONE ─── */
.map-box {
  border-radius: 1.25rem; 
  height: 26.5rem; 
  overflow: hidden; 
  position: relative;
  background: linear-gradient(145deg, #d3eff0 0%, #8ed6d1 40%, #4bc2b7 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.map-grid {
  position: absolute; 
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.24) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1.5px, transparent 1.5px);
  background-size: 2.5rem 2.5rem;
}

.map-compass {
  position: absolute; 
  top: 1rem; 
  right: 1rem; 
  width: 2.25rem; 
  height: 2.25rem;
  background: #ffffff; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.8rem; 
  font-weight: 700; 
  color: var(--teal);
  box-shadow: var(--shadow-sm);
  animation: compassSpin 25s linear infinite;
}

.map-pin {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -68%);
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 0.35rem;
  animation: pinBounce 2s ease-in-out infinite;
}

.map-pin-lbl {
  background: #ffffff; 
  color: var(--ink);
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.6875rem; 
  font-weight: 700;
  letter-spacing: 0.08em; 
  text-transform: uppercase;
  padding: 0.35rem 0.75rem; 
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md); 
  white-space: nowrap;
}

.map-water {
  position: absolute; 
  bottom: -0.125rem; 
  left: 0; 
  width: 100%; 
  height: 3.75rem;
}

/* ─── DISTANCE LIST ─────────────────────────────── */
.dist-list { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 1.125rem; 
  margin-top: 1.75rem; 
}

.dist-item { 
  display: flex; 
  align-items: flex-start; 
  gap: 0.75rem; 
  font-size: 0.9375rem; 
  line-height: 1.6; 
  color: var(--mid); 
}

.dist-icon {
  flex-shrink: 0; 
  margin-top: 0.125rem;
  font-size: 25px; /* Ingrandito del 25% */
  color: var(--teal); /* Turchese del brand */
  display: inline-block;
  vertical-align: middle;
}

.dist-item strong { 
  color: var(--ink); 
  font-weight: 600; 
}

/* ─── SECTION 2B: CAMERE ─── */
.sec-intro { 
  text-align: center; 
  margin-bottom: 3rem; 
}

.sec-intro p { 
  color: var(--mid); 
  margin: 0 auto; 
  max-width: 58ch; 
  font-size: 1.0625rem;
}

/* Nav Tabs */
.tabs-nav { 
  display: flex; 
  border-bottom: 2px solid rgba(77, 191, 179, 0.2); 
  flex-wrap: wrap; 
  justify-content: center; 
  margin-bottom: 3rem; 
  gap: 0.5rem;
}

.tab-btn {
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.75rem; 
  font-weight: 700;
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
  color: #888888; 
  background: none;
  border: none; 
  border-bottom: 2.5px solid transparent; 
  padding: 0.75rem 1rem;
  cursor: pointer; 
  margin-bottom: -2.5px; 
  transition: var(--transition-fast); 
  white-space: nowrap;
}

.tab-btn:hover { 
  color: var(--teal); 
}

.tab-btn.act { 
  color: var(--teal); 
  border-bottom-color: var(--teal); 
}

/* Room Panel Layout */
.room-layout { 
  display: grid; 
  grid-template-columns: 1.15fr 0.85fr; 
  gap: 4rem; 
  align-items: start; 
  transition: opacity 0.35s ease;
}

.room-car {
  border-radius: 1.25rem; 
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; 
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
  touch-action: pan-y;
}

.car-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-out;
  z-index: 0;
}

.car-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(0.2) contrast(1.02) saturate(0.95);
  transition: var(--transition);
}

.map-iframe:hover {
  filter: none; /* Dynamic colored visual on hover/focus */
}

.car-lbl {
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.875rem; 
  font-weight: 700;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9); 
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.9);
  position: relative; 
  z-index: 2;
}

.car-ctrl { 
  position: absolute; 
  inset: 0;
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  padding: 0 1rem;
  z-index: 4; 
  pointer-events: none;
}

.car-btn {
  background: none; 
  border: none; 
  color: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; 
  pointer-events: auto;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.car-btn:hover { 
  transform: scale(1.15);
}

.car-btn-icon {
  font-size: 3rem; /* Ingrandito per essere visibile senza sfondo */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}



.car-dots, .bf-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
  pointer-events: auto;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  padding: 0;
  border: none;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background: #ffffff;
  transform: scale(1.4);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.room-decor-icon {
  position: absolute;
  bottom: 1.125rem;
  right: 1.125rem;
  font-size: 90px; /* Ingrandito del 25% */
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

.meta-icon {
  font-size: 22.5px; /* Ingrandito del 25% */
  color: var(--teal);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.amenity-icon {
  font-size: 15px; /* Ingrandito del 25% */
  color: var(--teal);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.room-meta { 
  display: flex; 
  gap: 1.25rem; 
  flex-wrap: wrap; 
  margin: 0.75rem 0 1.25rem; 
}

.meta-item { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  font-size: 0.9rem; 
  color: var(--mid); 
  font-weight: 500;
}

.room-desc {
  line-height: 1.7;
  color: var(--mid);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.amenities { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem; 
  margin: 1.25rem 0 1.75rem; 
  list-style: none; 
}

.amenity {
  display: flex; 
  align-items: center; 
  gap: 0.4rem;
  background: rgba(77, 191, 179, 0.06); 
  border: 1px solid rgba(77, 191, 179, 0.18);
  border-radius: 1.5rem; 
  padding: 0.25rem 0.8125rem;
  font-size: 0.72rem; 
  color: var(--ink); 
  font-weight: 600;
  transition: var(--transition-fast);
}

.amenity:hover {
  background: rgba(77, 191, 179, 0.12);
  transform: scale(1.02);
}

.micro-cta {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  font-size: 0.9375rem; 
  font-weight: 700; 
  color: var(--teal); /* Messa in turchese del brand */
  cursor: pointer; 
  background: none; 
  border: none; 
  padding: 0;
  transition: var(--transition-fast); 
  font-family: 'Raleway', sans-serif;
  outline: none;
  text-decoration: none;
}

.cta-arrow {
  transition: var(--transition-fast);
  font-size: 19px; /* Ingrandito del 25% */
  display: inline-block;
  vertical-align: middle;
}

.micro-cta:hover {
  color: var(--teal-dk); /* Hover in turchese scuro */
}

.micro-cta:hover .cta-arrow { 
  transform: scale(1.15) rotate(-5deg); 
}

/* ─── SECTION 3: COLAZIONE & B&B ─── */
.col-inner { 
  display: grid; 
  grid-template-columns: 0.95fr 1.05fr; 
  gap: 4.5rem; 
  align-items: start; 
}

.img-ph {
  border-radius: 1.25rem; 
  height: 24.5rem; 
  overflow: hidden; 
  position: relative;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
  gap: 1rem;
  background: linear-gradient(135deg, #fff7dc 0%, #ffe494 40%, #ffcf40 100%);
  box-shadow: 0 1.25rem 3.5rem rgba(255, 204, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.img-ph-glow {
  position: absolute; 
  inset: 0;
  background: 
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255, 160, 0, 0.2) 0%, transparent 50%);
}

.img-ph-txt {
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.8125rem; 
  font-weight: 700;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  color: rgba(140, 93, 0, 0.85); 
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
  position: relative; 
  z-index: 1;
}

.badge-row {
  display: flex; 
  align-items: center; 
  gap: 0.75rem;
  background: rgba(77, 191, 179, 0.06); 
  border: 1px solid rgba(77, 191, 179, 0.18);
  border-radius: 0.625rem; 
  padding: 0.75rem 1rem;
  margin-top: 1.5rem; 
  font-size: 0.85rem; 
  color: var(--mid); 
  line-height: 1.55; 
}

.freedom-box {
  margin-top: 2.75rem; 
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-left: 5px solid var(--teal); 
  background: #ffffff; 
  border-radius: 0 1rem 1rem 0;
  box-shadow: var(--shadow-sm);
}

.freedom-h {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem); 
  font-weight: 700;
  letter-spacing: 0.02em; 
  text-transform: uppercase; 
  line-height: 1.35;
  margin-bottom: 0.75rem; 
  color: var(--mid);
}

.freedom-p {
  line-height: 1.65;
  color: var(--mid);
  font-size: 0.9375rem;
}

.breakfast-decor-icon {
  font-size: 80px; /* Ingrandito del 25% */
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
}

.badge-icon {
  font-size: 25px; /* Ingrandito del 25% */
  color: var(--teal);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ─── FAQ ACCORDION ─────────────────────────────── */
.acc { 
  max-width: 44rem; 
  margin: 0 auto; 
}

.acc-item { 
  border-bottom: 1.5px solid rgba(77, 191, 179, 0.18); 
  transition: var(--transition-fast);
}

.acc-trigger { 
  display: flex; 
  align-items: center; 
  width: 100%; 
  background: none; 
  border: none; 
  padding: 1.35rem 0.5rem; 
  gap: 1rem; 
  cursor: pointer; 
  outline: none;
}

.faq-icon {
  font-size: 27.5px; /* Ingrandito del 25% */
  color: var(--teal); /* Turchese del brand */
  flex-shrink: 0;
}

.acc-title { 
  flex: 1; 
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.875rem; 
  font-weight: 700; 
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
  color: var(--mid); 
  text-align: left; 
  transition: var(--transition-fast);
}

.faq-toggle-icon {
  font-size: 25px; /* Ingrandito del 25% */
  color: #888;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.acc-trigger:hover .acc-title {
  color: var(--teal);
}

.acc-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--teal); /* Cambiato stroke a color per font icon */
}

.acc-body { 
  overflow: hidden; 
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
}

.acc-item.open .acc-body {
  opacity: 1;
}

.acc-inner { 
  padding: 0 0.5rem 1.35rem 3rem; 
  font-size: 0.9375rem; 
  line-height: 1.65; 
  color: var(--mid); 
}

.acc-inner strong { 
  color: var(--ink); 
  font-weight: 600; 
}

/* ─── SEZIONE FINAL CTA ─────────────────────────────── */
.cta-box { 
  text-align: center; 
  max-width: 44rem; 
  margin: 0 auto; 
}

.cta-h { 
  font-family: 'Josefin Sans', sans-serif; 
  font-size: clamp(2.25rem, 4.5vw, 4.5rem); 
  font-weight: 700; 
  letter-spacing: 0.02em; 
  text-transform: uppercase; 
  line-height: 1.1; 
  color: var(--teal); 
  margin-bottom: 1.25rem; 
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cta-p { 
  font-size: 1.1rem; 
  color: var(--mid); 
  margin: 0 auto 2.5rem; 
  text-align: center; 
  line-height: 1.65; 
  max-width: 48ch;
}

.btn-mg-lg {
  background: var(--magenta); 
  color: #ffffff;
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.9rem; 
  font-weight: 700;
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  border: none; 
  border-radius: 0.5rem;
  padding: 1.25rem 3rem; 
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.3);
}

.btn-mg-lg:hover { 
  background: var(--mg-dk); 
  transform: translateY(-2px); 
  box-shadow: 0 14px 35px rgba(233, 30, 99, 0.38);
}

.btn-mg-lg:active {
  transform: translateY(0);
}

.trust-note { 
  margin-top: 1.5rem; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.45rem; 
  font-size: 0.75rem; 
  color: #888888; 
  font-weight: 500;
}

/* ─── FOOTER PREMIUM ─────────────────────────────── */
.footer { 
  background: var(--dark); 
  padding: 4.5rem 0 2rem; 
  color: #dddddd;
  border-top: 2px solid rgba(77, 191, 179, 0.15);
}

.ftr-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 3.5rem; 
  margin-bottom: 3.5rem; 
}

.ftr-logo { 
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 1.15rem; 
  font-weight: 700; 
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
  color: var(--teal); 
  margin-bottom: 0.75rem; 
}

.footer-logo-img {
  height: 2.8125rem; /* Ingrandito del 25% */
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.trust-note-icon {
  font-size: 17.5px; /* Ingrandito del 25% */
  color: var(--teal);
  display: inline-block;
  vertical-align: middle;
}

.ftr-addr { 
  font-style: normal; 
  font-size: 0.875rem; 
  line-height: 1.8; 
  color: #bbbbbb; 
}

.ftr-email {
  color: #bbbbbb;
  text-decoration: none;
  display: block;
  margin-top: 0.25rem;
  transition: var(--transition-fast);
}

.ftr-email:hover {
  color: var(--teal);
}

.ftr-title { 
  font-family: 'Josefin Sans', sans-serif; 
  font-size: 0.65rem; 
  font-weight: 700; 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  color: rgba(255, 255, 255, 0.35); 
  margin-bottom: 0.75rem; 
}

.ftr-p { 
  font-size: 0.875rem; 
  color: #bbbbbb; 
  margin-bottom: 0.25rem; 
  line-height: 1.6;
}

.ftr-links-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.ftr-link { 
  display: inline-block; 
  font-size: 0.8125rem; 
  color: #bbbbbb; 
  transition: var(--transition-fast); 
  text-decoration: none; 
}

.ftr-link:hover { 
  color: var(--teal); 
}

.ftr-div { 
  border: none; 
  border-top: 1px solid rgba(255, 255, 255, 0.08); 
  margin-bottom: 1.5rem; 
}

.ftr-bottom { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 0.75rem; 
}

.ftr-copy { 
  font-size: 0.6875rem; 
  color: rgba(255, 255, 255, 0.3); 
}

/* ─── SCROLL REVEAL ANIMATIONS (Intersection Observer) ─────────────────────────────── */
.fade-up { 
  opacity: 0; 
  transform: translateY(2rem); 
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
  will-change: transform, opacity;
}

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

.style-delay-1 { transition-delay: 0.15s; }
.style-delay-2 { transition-delay: 0.3s; }
.style-delay-3 { transition-delay: 0.45s; }

/* ─── KEYFRAMES DI ANIMAZIONE ─────────────────────────────── */
@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -68%); }
  50%      { transform: translate(-50%, -84%); }
}

@keyframes compassSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateSlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateSlowReverse {
  0%   { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* ─── ADATTAMENTI RESPONSIVE ─────────────────────────────── */
@media (max-width: 60rem) {
  .split, .room-layout, .col-inner { 
    grid-template-columns: 1fr; 
    gap: 3.5rem; 
  }
  
  .bw { 
    display: none; /* Il booking widget sul mobile passa a scroll-to o menu mobile */
  }
  
  .map-box { 
    height: 18rem; 
  }
  
  .img-ph {
    height: 18rem;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 48rem) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }

  .ftr-grid { 
    grid-template-columns: 1fr; 
    gap: 2.25rem; 
  }
  
  .trust-grid { 
    grid-template-columns: repeat(3, 1fr); 
    max-width: 100%;
    gap: 0.25rem;
    padding: 0 0.5rem;
  }
  
  .trust-item {
    padding: 0.5rem 0.25rem;
    gap: 0.4rem;
  }
  
  .trust-icon {
    font-size: 1.75rem; /* Icona riscalata per mobile */
  }
  
  .trust-lbl {
    font-size: 0.58rem; /* Testo compattato per prevenire wrap eccessivi */
    letter-spacing: 0.05em;
    line-height: 1.35;
  }
  
  .trust-item + .trust-item { 
    border-left: none; 
    border-top: none;
    padding-top: 0.5rem;
  }
  
  .nav-list { 
    display: none; /* Navigazione classica collassata su mobile */
  }
  
  .sec {
    padding: 4.5rem 0;
  }
  
  .sec-sm {
    padding: 3.5rem 0;
  }

  .hero-pill {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    padding: 0.4rem 1.15rem;
  }

  /* Rende i tab navigabili con swipe su mobile */
  .tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1rem; /* Aumentata la distanza tra le voci */
  }
  
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  /* Allinea a sinistra la prima voce senza rientro */
  .tab-btn:first-child {
    padding-left: 0;
  }

  /* Regola le dimensioni dei tab in modo coerente su tutti i device mobile (<=48rem) */
  .tab-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.4rem;
  }

  /* Allinea a sinistra l'introduzione delle sezioni (es. "87 camere...") su mobile */
  .sec-intro {
    text-align: left;
  }

  .sec-intro p {
    margin-left: 0;
    margin-right: auto;
  }

  /* Allinea a sinistra tutti i testi dell'ultimo blocco (final CTA) su mobile */
  .cta-box {
    text-align: left;
  }
  .cta-p {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
  .trust-note {
    justify-content: flex-start;
    text-align: left;
  }


}

@media (max-width: 30rem) {

  
  .hero-h1 {
    font-size: 2.64rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
  
  .btn-mg-lg {
    padding: 1rem 2rem;
    font-size: 0.8rem;
  }
}

/* ─── MAPPA MAGENTA MARKER & CAROSELLO COLAZIONE ─── */
.leaflet-custom-marker {
  background: none !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.map-magenta-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.marker-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--magenta);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(233, 30, 99, 0.8);
  position: absolute;
}

.marker-pulse {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--magenta);
  border-radius: 50%;
  position: absolute;
  animation: markerPulsing 1.8s ease-out infinite;
  opacity: 0;
}

@keyframes markerPulsing {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.bf-car {
  border-radius: 1.25rem; 
  height: 24.5rem; 
  overflow: hidden; 
  position: relative;
  box-shadow: 0 1.25rem 3.5rem rgba(77, 191, 179, 0.08);
  touch-action: pan-y;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.bf-slide {
  width: 100%; 
  height: 100%; 
  position: relative;
  background: #ffffff;
}



.bf-ctrl { 
  position: absolute; 
  inset: 0;
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  padding: 0 1rem;
  z-index: 4; 
  pointer-events: none;
}

.bf-btn {
  background: none; 
  border: none; 
  color: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; 
  pointer-events: auto;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.bf-btn:hover {
  transform: scale(1.15);
}

.bf-btn-icon {
  font-size: 3rem; /* Ingrandito */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

@media (max-width: 60rem) {
  .bf-car {
    height: 18rem;
  }
}

@media (min-width: 1063px) {
  .hero-content {
    max-width: 47rem;
  }
}

/* ─── GALLERY CAROUSEL (INTERNI ED ESTERNI) ─── */
.gallery-section {
  padding: 4rem 0;
  overflow: hidden;
  background: var(--cream);
}
.gallery-header {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-header h2 {
  text-align: left;
  margin-bottom: 0;
}
.gallery-car-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.gallery-track {
  display: flex;
  gap: 1rem;
  padding: 0 1.5rem;
  will-change: transform;
  touch-action: pan-y;
}
.gallery-item {
  flex: 0 0 auto;
  width: calc(100vw / 1.5);
  display: flex;
  flex-direction: column;
}
.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.05);
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
  padding-top: 0.75rem;
  margin-top: auto;
}

.gallery-ctrl {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.gallery-btn {
  background: var(--teal);
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: background var(--transition-fast);
}
.gallery-btn:hover {
  background: var(--teal-dk);
}
.gallery-btn .material-icons,
.gallery-btn svg {
  font-size: 2rem;
  filter: none;
}

@media (min-width: 48rem) {
  .gallery-item {
    width: calc(100vw / 2.5);
  }
}

@media (min-width: 66rem) {
  .gallery-item {
    width: calc(100vw / 3.5);
  }
}

/* ─── COOKIE POLICY MODAL ─────────────────────────────── */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal-content {
  background: #fff;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.cookie-modal-overlay.open .cookie-modal-content {
  transform: translateY(0);
}

.cookie-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s;
  z-index: 10;
}

.cookie-modal-close:hover {
  background: rgba(0,0,0,0.1);
}

body.no-scroll {
  overflow: hidden;
}

/* ─── COOKIEBOT POP-UP OVERRIDES ─────────────────────────────── */
#CybotCookiebotDialog {
  font-family: 'Raleway', sans-serif !important;
  border-radius: 1rem !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
  border: none !important;
}

#CybotCookiebotDialogBodyContentTitle {
  font-family: 'Josefin Sans', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

#CybotCookiebotDialogBodyContentText {
  color: var(--mid) !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}

.CybotCookiebotDialogBodyButton {
  font-family: 'Josefin Sans', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
}

/* Primary Button (Accept) */
#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll {
  background-color: var(--teal) !important;
  color: #ffffff !important;
  border: none !important;
}

#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll:hover {
  background-color: var(--teal-dk) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(77, 191, 179, 0.3) !important;
}

/* Secondary and Decline Buttons */
#CybotCookiebotDialogBodyButtonDecline,
#CybotCookiebotDialogBodyLevelButtonCustomize,
#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection,
#CybotCookiebotDialogBodyButtonDetails {
  background-color: transparent !important;
  color: var(--mid) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
}

#CybotCookiebotDialogBodyButtonDecline:hover,
#CybotCookiebotDialogBodyLevelButtonCustomize:hover,
#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection:hover,
#CybotCookiebotDialogBodyButtonDetails:hover {
  background-color: rgba(0,0,0,0.05) !important;
  color: var(--ink) !important;
}

/* Tabs/Navigation */
#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink {
  color: var(--mid) !important;
  font-family: 'Josefin Sans', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink.CybotCookiebotDialogActive {
  color: var(--teal) !important;
  border-bottom-color: var(--teal) !important;
}

/* Switches / Checkboxes */
#CybotCookiebotDialog .CybotCookiebotDialogBodyLevelButtonSlider {
  background-color: #ccc !important;
}

#CybotCookiebotDialog input:checked + .CybotCookiebotDialogBodyLevelButtonSlider {
  background-color: var(--teal) !important;
}

/* Remove Cookiebot generic blue links and icons */
#CybotCookiebotDialog a,
#CybotCookiebotDialog .CybotCookiebotDialogDetailBulkSelection {
  color: var(--teal) !important;
}

#CybotCookiebotDialog svg path,
#CybotCookiebotDialog svg polygon,
#CybotCookiebotDialog svg rect {
  fill: var(--teal) !important;
}

#CybotCookiebotDialog input:focus + .CybotCookiebotDialogBodyLevelButtonSlider {
  box-shadow: 0 0 1px var(--teal) !important;
}

/* ─── BOTTONI GENERALI / WIDGET BORDER RADIUS ─── */
:root {
  /* Assumiamo 4px come default del roi-widget */
  --widget-radius: 4px;
}

/* Forza lo stesso border-radius su tutti i bottoni/input rilevanti per coerenza col widget */
button:not(.gallery-btn):not(.bf-btn):not(.nav-btn):not(.dot),
.btn-teal,
.btn-primary,
.roi-search-engine__field,
.roi-search-engine__field--action {
  border-radius: var(--widget-radius) !important;
}

/* ─── CTA TURCHESE (SPIAGGIA) ─── */
.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--teal);
  color: #ffffff !important;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-teal:hover {
  background-color: var(--teal-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #ffffff !important;
}

/* ─── RESPONSIVE HERO FIX (<= 768px) ─────────────────────────────── */
@media (max-width: 768px) {
  .hero-h1 {
    font-size: 2.2rem !important;
  }
  
  .hero {
    height: auto !important;
    min-height: 100vh !important;
    justify-content: flex-start !important;
    padding-top: 25vh !important;
    padding-bottom: 2rem !important;
  }
  
  .hero-content {
    margin-bottom: 2rem !important;
  }
  
  .hero-widget-wrap {
    position: relative !important;
    margin-top: auto !important;
  }
}
