/* ---------- 0) RESET BASE ---------- */
html, body {
  margin: 0;
  padding: 0;
}

* { box-sizing: border-box; }

/* ---------- 1) HEADER / MENU (layout + stati colore) ---------- */
:root{
  /* stato HERO (in alto) */
  --header-h: 100px;          /* header alto quanto il logo */
  --logo-h: 100px;            /* logo grande */

  /* stato COMPACT (scroll / menu aperto) */
  --header-h-compact: 76px;
  --logo-h-compact: 66px;

  --header-pad: 16px;
  --header-pad-compact: 12px;
}

/* header per home */
#site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 var(--header-pad);
  background: transparent;
  transition: height 320ms ease, padding 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

/* header 1 per altre pagine */
#site-header-1{
  /* forza lo stato compact anche per le variabili condivise */
  --header-h: var(--header-h-compact);
  --logo-h: var(--logo-h-compact);

  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 var(--header-pad-compact);

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

#site-header.header-scrolled{
  --header-h: var(--header-h-compact);
  --logo-h: var(--logo-h-compact);

  height: var(--header-h-compact);
  padding: 0 var(--header-pad-compact);

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

#site-header.menu-open{
  --header-h: var(--header-h-compact);
  --logo-h: var(--logo-h-compact);

  height: var(--header-h-compact);
  padding: 0 var(--header-pad-compact);

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* LOGO home */
#site-logo{
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1002;
}

/* LOGO altre pagine */
#site-logo-1 img{
  height: var(--logo-h);
  width: auto;
  display: block;
}

#site-logo img{
  height: var(--logo-h);
  width: auto;
  display: block;
  transition: height 320ms ease, transform 320ms ease;
}

/* MENU container a destra */
#app-menu{
  margin-left: auto;
  z-index: 1002;
}

#app-menu nav[aria-label="Menu"]{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------- HAMBURGER ---------- */
.menu-toggle{
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span{
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}
.menu-toggle span:nth-child(1){ top: 13px; }
.menu-toggle span:nth-child(2){ top: 20px; }
.menu-toggle span:nth-child(3){ top: 27px; }

/* X quando aperto */
.menu-toggle[aria-expanded="true"] span:nth-child(1){ top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ top: 20px; transform: rotate(-45deg); }

/* stato "bianco": icone scure + bottone chiaro */
#site-header.header-scrolled .menu-toggle,
#site-header.menu-open .menu-toggle{
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.10);
}
#site-header.header-scrolled .menu-toggle span,
#site-header.menu-open .menu-toggle span{
  background: #111;
}

/* LOGO: bianco su hero, normale su header bianco */
#site-header:not(.header-scrolled):not(.menu-open) #site-logo img{
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
#site-header.header-scrolled #site-logo img,
#site-header.menu-open #site-logo img{
  filter: none;
}

/* ---------- 1.2) MENU PANEL (overlay, zero gap dalla barra) ---------- */
#menu-panel{
  position: fixed;

  /* ATTACCATO all’header: niente spazi */
  top: var(--header-h);
  left: 0;
  right: 0;

  padding: 12px;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.18);

  max-height: calc(100vh - var(--header-h));
  overflow: auto;

  z-index: 1001;
}

/* ---------- MENU LIST: grande, centrato, senza pallini ---------- */
#menu-panel ul{
  list-style: none;
  margin: 14px 0 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 10px;

  align-items: center;
  text-align: center;
}

#menu-panel li{
  width: 100%;
}

#menu-panel a{
  display: block;
  width: 100%;

  padding: 14px 14px;
  border-radius: 14px;

  font-size: 20px;
  font-weight: 700;
  text-decoration: none;

  color: #111;
  background: rgba(0,0,0,0.03);

  transition: transform 160ms ease, background 160ms ease;
}

#menu-panel a:hover{
  background: rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* ---------- LINGUE (collaps stile menu) ---------- */
.menu-lang{
  margin-top: 6px;
}

.menu-lang-toggle{
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;

  padding: 14px 14px;
  border-radius: 14px;

  font-size: 18px;
  font-weight: 800;

  color: #111;
  background: rgba(0,0,0,0.06);
  border: 0;

  cursor: pointer;
}

.menu-lang-value{
  opacity: 0.7;
  font-weight: 900;
  margin-left: 8px;
}

.menu-lang-panel{
  margin-top: 10px;
}

.menu-lang-list{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 10px;

  align-items: center;
  text-align: center;
}

.menu-lang-item{
  width: 100%;
  max-width: 520px;

  padding: 14px 14px;
  border-radius: 14px;

  font-size: 18px;
  font-weight: 700;

  color: #111;
  background: rgba(0,0,0,0.03);
  border: 0;

  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.menu-lang-item:hover{
  background: rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* header fisso: evita che il contenuto finisca sotto */
#territory-page-title,
#accommodations-page-title,
#services-page-title,
#map-page-title,
#contacts-title,
#booking-title{
  padding-top: var(--header-h-compact);
}


/* =====      ===== */
/* =====   tutte le regole sono sono state importate da home e sono state gia testate  ===== */
/* =====      ===== */


/* =====   nuova sezione 2 copiata da home da testare ===== */
/* ---------- 2) HERO (full screen, top 0, zero bordi) ---------- */
#hero{
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* overlay per leggibilità testo */
#hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.25) 45%,
    rgba(0,0,0,0.05) 100%
  );
  z-index: 1;
}

/* contenuto hero sopra video+overlay */
/* contenuto hero: in basso */
#hero-content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;
  text-align: center;

  padding: 22px 16px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  color: #fff;
}

/* fade lento per rotazione hero */
#hero-title,
#hero-subtitle{
  transition: opacity 650ms ease;
}

#hero-title.is-fading,
#hero-subtitle.is-fading{
  opacity: 0;
}

/* HERO text: centrato e responsive */
#hero-title{
  margin: 0 0 12px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;

  font-weight: 800;
  line-height: 1.15;
  text-align: center;

  /* font che si RIDUCE automaticamente */
  font-size: clamp(28px, 4.5vw, 56px);
}

/* sottotitolo: cresce con lo schermo (clamp) */
#hero-subtitle{
  margin: 0;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;

  line-height: 1.35;
  text-align: center;
  opacity: 0.95;

  font-size: clamp(15px, 2.2vw, 20px);
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}


/* =====   fine  sezione 2 copiata da home da testare ===== */
/* =====      ===== */

/* ===== Territory overlay (MIN) ===== */
.t-overlay[hidden] { display: none !important; }

.t-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.t-overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}

.t-overlay-panel{
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 24px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}


.t-overlay-figure img{
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px){
  .t-overlay-panel{
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .t-overlay-body{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }
}

.t-card-media{
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  display: block;
  cursor: pointer;
}

/* ===== Overlay FIX (layout) ===== */
.t-overlay-panel{
  position: relative;           /* per ancorare la X dentro il pannello */
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}

.t-overlay-figure{
  margin: 0;                    /* reset figure default */
}

.t-overlay-figure img{
  width: 100%;
  height: auto;
  display: block;
}

.t-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.t-overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}

.t-overlay-panel{
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 24px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.t-overlay-close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: rgba(0,0,0,.65);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
}

.t-overlay-figure img{
  display: block;
  width: 100%;
  height: auto;
}

.t-overlay-body{ 
  padding: 14px 16px 18px; 
  overflow: auto;               /* se testo lungo, scrolla qui */
  -webkit-overflow-scrolling: touch;
}

.t-overlay-meta{ 
  opacity:.7; font-size: 14px; margin-bottom: 6px; 
}

.t-overlay-title{ 
  margin: 0 0 10px; 
}

.t-overlay-text{ 
  margin: 0; line-height: 1.45; 
}

#accommodations-overlay .t-overlay-body{
  /* roba tua già presente... */
  display: flex;
  flex-direction: column;
}

/* ===== Accommodations overlay: image fit ===== */
#accommodations-overlay .t-overlay-figure img,
#accommodations-overlay-plan-wrap img{
  max-width: 100%;
  height: auto;
}

/* Hero (foto grande): occupa lo spazio senza uscire dal pannello */
#accommodations-overlay .t-overlay-figure{
  max-height: 42vh;
  overflow: hidden;
}
#accommodations-overlay .t-overlay-figure img{
  width: 100%;
  height: 42vh;
  object-fit: cover; /* foto: riempie bene */
}

/* Planimetria: deve stare "contenuta" e leggibile */
#accommodations-overlay-plan-wrap{
  margin-top: 12px;
}
#accommodations-overlay-plan-wrap img{
  width: 100%;
  max-height: 55vh;
  object-fit: contain; /* planimetria: non taglia */
  background: #fff;
}

/* Thumbs gallery */
#accommodations-overlay-gallery{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}
#accommodations-overlay-gallery .t-thumb{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
#accommodations-overlay-gallery .t-thumb-img{
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ========== ACCOMMODATIONS: immagini lista ========== */
.t-card-img{
  width: 100%;
  display: block;
  height: clamp(160px, 28vh, 260px);
  object-fit: cover;   /* in lista: riempie bene la card */
  border-radius: 10px;
}

/* ========== ACCOMMODATIONS: overlay immagini ========== */
#accommodations-overlay-img,
#accommodations-overlay-plan{
  width: 100%;
  height: auto;
  max-height: 60vh;     /* si adatta all'altezza finestra */
  object-fit: contain;  /* in overlay: non taglia */
  display: block;
}

/* thumbs overlay: già ok, ma manteniamo coerente */
#accommodations-overlay-gallery .t-thumb-img{
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.t-overlay-extra { 
  margin-top: 10px; 
}

.t-extra-row { 
  display:flex; gap:10px; padding:6px 0; border-top:1px solid rgba(255,255,255,.08); 
}

.t-extra-label { 
  min-width:120px; opacity:.75; 
}

.t-extra-val { 
  flex:1; 
}

.t-extra-row-block { 
  align-items:flex-start; 
}

.t-chip { 
  display:inline-block; 
  padding:2px 8px; 
  margin:2px 6px 2px 0; 
  border-radius:999px; 
  border:1px solid rgba(255,255,255,.14); 
  font-size:.9em; 
}

/* Overlay: aumenta altezza riquadro immagine (senza toccare le foto) */
#accommodations-overlay .t-overlay-figure,
#accommodations-overlay figure.t-overlay-figure {
  height: 360px;        /* prova 320/360/420 */
  max-height: 50vh;     /* evita che su schermi piccoli diventi enorme */
}


/* HERO full-screen */
#hero{
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* video sempre full */
#hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay leggero per leggibilità */
#hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.20) 35%,
    rgba(0,0,0,0.00) 70%
  );
  pointer-events:none;
}

/* TESTO IN BASSO (sopra il video) */
#hero-content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 22px 16px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));

  color: #fff;
  z-index: 2;
}

/* opzionale: contenitore “pulito” e leggibile */
#hero-title{
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* ===== Overlay Accordion (base) ===== */
.ov-sec{
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 8px;
}

.ov-sec__head{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 10px 0;
  text-align: left;
}

.ov-sec__title{
  font-weight: 600;
}

.ov-sec__chev{
  display: inline-block;
  transform: rotate(0deg);
  transition: transform .18s ease;
}

/* Ruota quando aperto */
.ov-sec__head[aria-expanded="true"] .ov-sec__chev{
  transform: rotate(90deg);
}

/* Panel base (chiuso) */
.ov-sec__body{
  padding-bottom: 6px;
}


/* ===== Fullscreen Image Viewer ===== */
.img-viewer{
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.img-viewer[hidden]{ display:none; }

.img-viewer-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.85);
}

.img-viewer-figure{
  position:relative;
  max-width:96vw;
  max-height:96vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.img-viewer-figure img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* X ancorata all'immagine, mai fuori schermo */
.img-viewer-close{
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  border-radius:999px;
  font-size:30px;
  line-height:44px;
  text-align:center;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.35);
  color:#fff;
  cursor:pointer;
  z-index:2;
}

.img-viewer-prev,
.img-viewer-next{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  font-size:34px;
  line-height:44px;
  text-align:center;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.25);
  color:#fff;
  cursor:pointer;
  z-index:2;
  user-select:none;
}

.img-viewer-prev{ 
  left:-12px; 
}

.img-viewer-next{ 
  right:-12px; 
}

.t-prices-table{ 
  width:100%; 
  border-collapse:collapse; 
  font-size:14px; 
}

.t-prices-table th, 
.t-prices-table td{ 
  padding:8px; 
  border-bottom:1px solid rgba(0,0,0,.08); 
  text-align:center; 
}

.t-prices-table th:first-child, 
.t-prices-table td:first-child{ 
  text-align:left; 
  font-weight:600; }


.ov-cta{
  bottom: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 10px;
  margin-top: auto;
}

.ov-cta__btn{
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
}


/* ===== GRID LISTE (accommodations + territory) ===== */
.territory-grid{
  display: grid;
  gap: 18px;
  padding: 12px 16px 28px;
  grid-template-columns: 1fr; /* mobile */
}

@media (min-width: 720px){
  .territory-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* tablet */
  }
}

@media (min-width: 1100px){
  .territory-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* desktop */
  }
}

/* --- CARD UNIFICATA (Accommodations + Territory) --- */
.t-card{
  background:#fff;
  border-radius: 16px;
  overflow: hidden;
}

.t-card-media{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  text-align:left;
}

.t-card-media img{
  display:block;
  width:100%;
  height:auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.t-card-body{
  padding: 12px 14px 16px;
}

.t-card-kpis{
  font-size: 12px;
  opacity: .75;
  margin-bottom: 6px;
}

.t-card-title{
  margin: 0 0 6px;
}

.t-muted{
  margin: 0 0 10px;
  opacity: .8;
}

.t-card-cta{
  display:inline;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  text-decoration: underline;
  font: inherit;
}

/* ----------da home sezione 3 inizio---------- */
/* ---------- 3) SEZIONI SOTTO (placeholder, minimo) ---------- */
/*#highlights, #services, #territory-teaser, #map-teaser, #contacts{
  padding: 28px 16px;
}
*/
.teaser-media img{
  display: block;
  width: 100%;
  height: 240px;      /* puoi cambiare */
  object-fit: cover;
}

/* ====== HIGHLIGHTS (3 card) ====== */
#highlights{
  padding: 28px 16px;
}

#highlights-title{
  margin: 0 0 14px;
  text-align: center;
}

.highlights-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.hl-card{
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  background: #fff;
  transform: translateZ(0);
}

.hl-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.hl-body{
  padding: 14px 14px 16px;
}

.hl-title{
  margin: 0 0 6px;
  font-weight: 800;
}

.hl-sub{
  margin: 0;
  opacity: 0.85;
}

/* Mobile: una sotto l’altra */
@media (max-width: 860px){
  .highlights-grid{
    grid-template-columns: 1fr;
  }
  .hl-img{
    height: 200px;
  }
}

/* ---------- HOME CARDS (3 in riga, responsive) ---------- */

.home-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* su schermi piccoli: una sotto l'altra */
@media (max-width: 900px){
  .home-cards{
    grid-template-columns: 1fr;
  }
}

/* card base */
.home-card{
  border-radius: 18px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* se la card è un <a> */
.home-card--link{
  display: block;
  color: inherit;
  text-decoration: none;
}

/* media + testo overlay (stile “territory”) */
.home-card__media{
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* placeholder servizi: finché non hai foto */
.home-card__media--services{
  background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}

.home-card__body{
  padding: 12px 14px;
}

.home-card__title{
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.home-card__sub{
  margin: 6px 0 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

.home-card h3{
  margin: 0;
  padding: 12px 14px 10px;
  font-size: 1.1rem;
  line-height: 1.2;
  text-align: center;
}

.home-card__cta{
  padding: 10px 14px 14px;
}

/* griglia 3 card: una riga su desktop, in colonna su mobile */
.highlights-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

/* card cliccabile (a) */
.teaser-card-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ----------da home sezione 3 fine ---------- */

/* ==============================
   TERRITORY = ACCOMMODATION LAYOUT  test
   ============================== */

/* fallback reale */
.teaser-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* media */
.teaser-media {
  all: unset;
  display: block;
  cursor: pointer;
}

.teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* body */
.teaser-body {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* meta / kpi */
.teaser-meta {
  display: flex;
  gap: 6px;
}

.teaser-meta .badge {
  font-size: 12px;
  opacity: 0.8;
}

/* title */
.teaser-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* text */
.teaser-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* link -> CTA stile accommodation */
.teaser-link {
  margin-top: auto;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   MAPPA PAGINA
========================================================= */

/* ====================
   MODULO MAPPA CAMPEGGIO SVG
   ==================== */

/* 📌 Impedisce la barra di scorrimento orizzontale */
body {
    overflow-x: hidden !important; 
    margin: 0;
    padding: 0;
}

/* 📌 Assicura che il contenitore della mappa non causi overflow */
.camping-map-container {
	width: 100%; /* Adatta il contenitore alla larghezza della pagina */
    max-width: 100vw; /* Non superare mai la larghezza dello schermo */
    height: auto; /* Altezza dinamica basata sull'immagine */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    margin: 0 auto; /* Centra il contenitore */
}
.camping-map-container {
    min-height: 400px; /* Aumenta se necessario */
    height: auto;
    position: relative;
}

#mappa-campeggio {
    width: 100%;
    min-height: 400px !important;
    height: auto !important;
}

/* Controlli zoom rimangono invariati */
.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zoom-controls button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: white;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.zoom-controls button:hover {
    background: #ddd;
}
/* Stile per la mini mappa */
#mini-map-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 160px;
    height: 110px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 5px;
    display: none; /* Nascondiamo finché non è pronta */
}

/* Stile per l'info box */
#info-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border: 1px solid #ccc;
    display: none;
    z-index: 1000;
}

/* Cambia il cursore su hover */
.livello {
    cursor: pointer;
}

/* ===========================
   PRENOTA (booking.html)
   =========================== */

/* Spazio e gerarchia header pagina */
.page-header{
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 0 18px;
}
#booking-title{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  margin: 0 0 10px;
}
#booking-subtitle{
  font-size: clamp(14px, 1.5vw, 18px);
  opacity: .85;
  margin: 0;
}

/* “Full screen” area form */
.book_container{
  min-height: calc(100vh - 240px); /* lascia respiro per header + footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 44px;
}

/* Card grande */
.book_container .cx{
  width: min(980px, 100%);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Griglia form: 2 colonne desktop, 1 mobile */
#search_parameters{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

/* Righe */
#search_parameters .form-book{
  margin: 0; /* neutralizza eventuali margini vecchi */
}

/* Input / Select — grandi e moderni */
#search_parameters input[type="text"],
#search_parameters select.form-select{
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

/* Focus */
#search_parameters input[type="text"]:focus,
#search_parameters select.form-select:focus{
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

/* Placeholder più “soft” */
#search_parameters input::placeholder{
  opacity: .7;
}

/* Select: togli look “vecchio” se il tuo CSS lo forza */
#search_parameters .input-group{
  width: 100%;
}

/* Submit: full width e più grande */
#search_parameters .form-book.last{
  grid-column: 1 / -1;
  margin-top: 6px;
}

#btn-submit{
  width: 100%;
  height: 60px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

#btn-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.18);
}
#btn-submit:active{
  transform: translateY(0px);
  opacity: .92;
}

/* Mobile */
@media (max-width: 720px){
  #search_parameters{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .book_container{
    min-height: auto;
    padding: 16px 14px 26px;
  }
  .book_container .cx{
    border-radius: 18px;
  }
}

/* Header prenota centrato */
.page-header{
  text-align: center;
}

/* subtitle vicino alla card */
#booking-subtitle{
  margin: 8px auto 0;
  max-width: 860px;
}

/* Avvicina card al testo (non più centro verticale) */
.book_container{
  min-height: auto;            /* prima: calc(100vh - 240px) */
  align-items: flex-start;     /* prima: center */
  padding-top: 10px;           /* meno aria sopra */
}

/* spazio tra subtitle e card */
.book_container .cx{
  margin-top: 14px;
}

/* Icona calendario (usa ID reali: #arrivo #partenza) */
#arrivo,
#partenza{
  padding-left: 52px;
  background-repeat: no-repeat;
  background-position: 16px 50%;
  background-size: 18px 18px;
  cursor: pointer;
}

/* ===== Datepicker JS (booking.js) ===== */
#nb-datepicker{
  font-family: inherit;
}

#nb-datepicker button{
  font-family: inherit;
}

/* giorno hover */
#nb-datepicker button:not([disabled]):hover{
  background: rgba(0,0,0,0.08);
}

/* giorno selezionato */
#nb-datepicker button[style*="background: rgba(0,0,0,.10)"],
#nb-datepicker button[style*="background: rgba(0,0,0,.16)"]{
  background: rgba(0,0,0,0.14) !important;
}

/* pulsanti header (mese avanti/indietro) */
#nb-datepicker button{
  transition: background .15s ease, transform .1s ease;
}
#nb-datepicker button:active{
  transform: scale(0.96);
}

#arrivo{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2399A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

#partenza{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2399A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}




/* =========================================================
   CONTACTS (pulito, prima del footer)
========================================================= */

/* ===========================
   CONTATTI (contacts.html)
   =========================== */

/* riusa header look di booking */
#contacts-title{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  margin: 0 0 10px;
}
#contacts-subtitle{
  font-size: clamp(14px, 1.5vw, 18px);
  opacity: .85;
  margin: 0;
  text-align: center;
}

/* area full + card (uguale booking) */
.contact_container{
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 18px 44px;
}
.contact_container .cx{
  width: min(980px, 100%);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: 14px;
}

/* form: 1 colonna, pulito */
#contact_form,
#contact-form,
#contact_parameters{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}

/* input + textarea grandi e coerenti */
#contact_form input[type="text"],
#contact-form input[type="text"],
#contact_parameters input[type="text"],
#contact_form textarea,
#contact-form textarea,
#contact_parameters textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

/* input */
#contact_form input[type="text"],
#contact-form input[type="text"],
#contact_parameters input[type="text"]{
  height: 56px;
  padding: 0 16px;
}

/* textarea */
#contact_form textarea,
#contact-form textarea,
#contact_parameters textarea{
  min-height: 160px;
  padding: 14px 16px;
  resize: vertical;
}

/* focus */
#contact_form input[type="text"]:focus,
#contact-form input[type="text"]:focus,
#contact_parameters input[type="text"]:focus,
#contact_form textarea:focus,
#contact-form textarea:focus,
#contact_parameters textarea:focus{
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

/* placeholder soft */
#contact_form input::placeholder,
#contact-form input::placeholder,
#contact_parameters input::placeholder,
#contact_form textarea::placeholder,
#contact-form textarea::placeholder,
#contact_parameters textarea::placeholder{
  opacity: .7;
}

/* riga bottoni: 2 colonne su desktop */
.contact-actions,
#contact-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

/* bottoni */
.contact-actions button,
#contact-actions button,
#btn-email,
#btn-whatsapp{
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.contact-actions button:hover,
#contact-actions button:hover,
#btn-email:hover,
#btn-whatsapp:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.18);
}
.contact-actions button:active,
#contact-actions button:active,
#btn-email:active,
#btn-whatsapp:active{
  transform: translateY(0px);
  opacity: .92;
}

/* mobile */
@media (max-width: 720px){
  .contact_container{
    padding: 16px 14px 26px;
  }
  .contact_container .cx{
    border-radius: 18px;
  }
  .contact-actions,
  #contact-actions{
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   FOOTER (MINIMALE) — sito
========================================================= */

#site-footer{
  margin-top: 0px;
  padding: 22px 16px;
  background: #0f1115;              /* scuro elegante */
  color: rgba(255,255,255,0.92);
}

#app-footer{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* testo footer */
#app-footer p{
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
  opacity: 0.92;
  text-align: center;
}

/* spazio tra le righe (tranne l’ultima) */
#app-footer p + p{
  margin-top: 8px;
}

/* eventuali link se in futuro li metti nel JSON */
#app-footer a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

#app-footer a:hover{
  border-bottom-color: rgba(255,255,255,0.55);
}

.footer-inner { 
  max-width: 900px; margin: 0 auto;
}
.footer-copy { 
  margin-top: 14px; opacity: .7; 
}

.notranslate { translate: no; }
